.npr-ranking-wrapper,
.npr-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 1.5em auto;
}

/* ===== DARK CALCULATOR TABLE ===== */

.npr-calculator-wrapper {
    max-width: 1040px;
}

.npr-calculator-wrapper .npr-table-scroll {
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 22%, rgba(52, 152, 219, 0.18), transparent 32%),
        linear-gradient(135deg, #062447 0%, #08345f 48%, #06213f 100%);
    padding: 10px;
    box-shadow: 0 16px 40px rgba(6, 36, 71, 0.22);
}

.npr-calc-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #fff;
    background: rgba(5, 31, 58, 0.58);
    border-radius: 8px;
    overflow: hidden;
}

.npr-calc-table th {
    background: rgba(4, 23, 45, 0.94);
    color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.65em 0.55em;
    text-align: center;
}

.npr-calc-table th.npr-col-team {
    text-align: left;
}

.npr-calc-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0.45em 0.5em;
    background: rgba(10, 54, 94, 0.48);
}

.npr-calc-table tbody tr:hover {
    background: transparent;
}

.npr-calc-table tbody tr:hover td {
    background: rgba(15, 76, 129, 0.62);
}

.npr-calc-table .npr-col-calc-pos {
    width: 42px;
    min-width: 42px;
    text-align: center;
}

.npr-calc-pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, #2f8cff 0%, #1662d3 100%);
    color: #fff;
    font-weight: 900;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 4px 10px rgba(22, 98, 211, 0.28);
}

.npr-calc-table .npr-col-team {
    min-width: 132px;
    color: #fff;
    font-weight: 600;
}

.npr-calc-table .npr-team-inner {
    gap: 9px;
}

.npr-calc-table .npr-team-crest {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.24));
}

.npr-calc-table .npr-team-name,
.npr-calc-table .npr-team-shortname {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 650;
}

.npr-calc-table .npr-team-name {
    display: none;
}

.npr-calc-table .npr-team-shortname {
    display: inline;
}

.npr-calc-table .npr-prob-cell {
    width: 82px;
    min-width: 76px;
    padding: 0.42em 0.34em;
    font-size: 1em;
    font-weight: 800;
}

.npr-calc-table .npr-rss-cell {
    width: 58px;
    min-width: 54px;
    max-width: 62px;
    padding: 0.42em 0.32em !important;
}

.npr-calc-table .npr-rss-bar-wrap {
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.npr-calc-table .npr-rss-center {
    background: rgba(255, 255, 255, 0.32);
}

.npr-calc-table .npr-rss-fill {
    top: 4px;
    bottom: 4px;
    border-radius: 3px;
}

.npr-calc-table .npr-rss-fill-hard {
    background: linear-gradient(90deg, rgba(255, 85, 72, 0.82), rgba(255, 59, 48, 0.95));
}

.npr-calc-table .npr-rss-fill-easy {
    background: linear-gradient(90deg, rgba(67, 211, 95, 0.95), rgba(38, 176, 93, 0.82));
}

.npr-calc-table .npr-prob-track {
    position: relative;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.npr-calc-table .npr-prob-bg {
    opacity: 1;
    border-radius: 4px;
    background: currentColor;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 0 14px rgba(255, 255, 255, 0.06);
}

.npr-calc-table .npr-prob-val {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-size: 1em;
    font-weight: 950;
    letter-spacing: -0.01em;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.72),
        0 0 6px rgba(0, 0, 0, 0.38);
}

.npr-calc-table .npr-prob-m .npr-prob-bg,
.npr-calc-table .npr-prob-lm .npr-prob-bg {
    background: linear-gradient(90deg, #37d65f 0%, #7fe15c 100%) !important;
}

.npr-calc-table .npr-prob-le .npr-prob-bg {
    background: linear-gradient(90deg, #f59e0b 0%, #ffcc4d 100%) !important;
}

.npr-calc-table .npr-prob-lk .npr-prob-bg {
    background: linear-gradient(90deg, #0867ff 0%, #10a4ff 100%) !important;
}

.npr-calc-table .npr-prob-cups .npr-prob-bg {
    background: linear-gradient(90deg, #6336ff 0%, #bb5cff 100%) !important;
}

.npr-calc-table .npr-prob-drop .npr-prob-bg {
    background: linear-gradient(90deg, #ff342f 0%, #ff6b3a 100%) !important;
}

.npr-calc-table .npr-prob-low,
.npr-calc-table .npr-prob-medium,
.npr-calc-table .npr-prob-high {
    color: #fff;
}

@media (max-width: 720px) {
    .npr-calculator-wrapper {
        max-width: 100%;
    }

    .npr-calculator-wrapper .npr-table-scroll {
        padding: 6px;
        overflow-x: hidden;
    }

    .npr-calc-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
        font-size: 0.74em;
    }

    .npr-calc-table th {
        padding: 0.5em 0.18em;
        font-size: 0.62em;
    }

    .npr-calc-table td {
        padding: 0.32em 0.18em;
    }

    .npr-calc-table th:nth-child(1),
    .npr-calc-table td.npr-col-calc-pos,
    .npr-calc-table th:nth-child(6),
    .npr-calc-table td.npr-prob-le,
    .npr-calc-table th:nth-child(7),
    .npr-calc-table td.npr-prob-lk {
        display: none;
    }

    .npr-calc-table th:nth-child(2),
    .npr-calc-table td.npr-col-team {
        width: 31%;
    }

    .npr-calc-table th:nth-child(3),
    .npr-calc-table td.npr-rss-cell {
        width: 11%;
    }

    .npr-calc-table th:nth-child(4),
    .npr-calc-table td.npr-prob-m,
    .npr-calc-table th:nth-child(5),
    .npr-calc-table td.npr-prob-lm {
        width: 13%;
    }

    .npr-calc-table th:nth-child(8),
    .npr-calc-table td.npr-prob-cups {
        width: 18%;
    }

    .npr-calc-table th:nth-child(9),
    .npr-calc-table td.npr-prob-drop {
        width: 14%;
    }

    .npr-calc-table .npr-col-team {
        min-width: 0;
        padding-left: 0.28em;
    }

    .npr-calc-table .npr-team-inner {
        gap: 5px;
    }

    .npr-calc-table .npr-team-crest {
        width: 20px;
        height: 20px;
    }

    .npr-calc-table .npr-team-shortname {
        font-size: 0.86em;
        line-height: 1.08;
    }

    .npr-calc-table .npr-prob-cell {
        width: auto;
        min-width: 0;
        font-size: 0.94em;
        padding-left: 0.16em;
        padding-right: 0.16em;
    }

    .npr-calc-table .npr-rss-cell {
        min-width: 0;
        max-width: none;
        padding: 0.32em 0.14em !important;
    }

    .npr-calc-table .npr-rss-bar-wrap {
        height: 22px;
    }

    .npr-calc-table .npr-prob-track {
        height: 22px;
    }

    .npr-calc-table .npr-prob-val {
        font-size: 0.95em;
        text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.76),
            0 0 5px rgba(0, 0, 0, 0.42);
    }
}

.npr-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75em;
    flex-wrap: wrap;
    gap: 0.5em;
}

.npr-title {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
}

.npr-meta {
    font-size: 0.85em;
    color: #666;
}

.npr-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.npr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.4;
}

.npr-table th {
    background: #1a1a2e;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 0.6em 0.75em;
    white-space: nowrap;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.npr-table td {
    padding: 0.5em 0.75em;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
}

.npr-table tbody tr:hover {
    background: #f5f7fa;
}

/* Zone colors */
.npr-zone-champion { border-left: 4px solid #ffd700; }
.npr-zone-second { border-left: 4px solid #3498db; }
.npr-zone-european { border-left: 4px solid #2ecc71; }
.npr-zone-mid { border-left: 4px solid transparent; }
.npr-zone-relegation { border-left: 4px solid #e74c3c; }

/* Position column */
.npr-col-pos {
    text-align: center;
    font-weight: 700;
    width: 2em;
}

.npr-col-trend {
    text-align: center;
    width: 2.5em;
}

.npr-col-team {
    font-weight: 400;
    color: #333;
    min-width: 160px;
}

/* Team crest & name layout */
.npr-col-team td,
td.npr-col-team {
    display: table-cell; /* zachowanie tabeli */
}

.npr-team-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.npr-team-crest {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: contain;
}

.npr-team-name,
.npr-team-shortname {
    line-height: 1.2;
}

.npr-team-shortname {
    display: none;
}

.npr-col-score { min-width: 140px; }
.npr-table th.npr-col-prw,
.npr-table td.npr-col-prw,
.npr-table th.npr-col-prq,
.npr-table td.npr-col-prq,
.npr-table th.npr-col-pts,
.npr-table td.npr-col-pts,
.npr-table th.npr-col-form,
.npr-table td.npr-col-form { text-align: center; }

/* Sortable headers */
.npr-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}

.npr-sortable:hover {
    background: #2a2a4e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.npr-sort-icon {
    font-size: 0.7em;
    margin-left: 0.25em;
    opacity: 0.5;
}

.npr-sort-active .npr-sort-icon {
    opacity: 1;
}

th.npr-sortable[title] {
    border-bottom: 2px solid transparent;
}

th.npr-sort-active {
    border-bottom: 2px solid #3498db;
}

/* Power Score bar */
.npr-score-bar {
    position: relative;
    background: #e8e8e8;
    border-radius: 4px;
    height: 22px;
    overflow: hidden;
}

.npr-score-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #1a1a2e 0%, #3498db 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.npr-score-value {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 0.5em;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Trend arrows */
.npr-trend { font-size: 0.8em; font-weight: 700; }
.npr-trend-up { color: #2ecc71; }
.npr-trend-down { color: #e74c3c; }
.npr-trend-same { color: #999; }

/* Form dots */
.npr-form-dot {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 700;
    color: #fff;
    margin-right: 2px;
}

.npr-form-w { background: #2ecc71; }
.npr-form-d { background: #f39c12; }
.npr-form-l { background: #e74c3c; }


/* Notice */
.npr-notice {
    padding: 1em;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #666;
    text-align: center;
}

/* ===== CALCULATOR TABLE ===== */

.npr-calc-table th,
.npr-calc-table td {
    text-align: center;
}

.npr-calc-table .npr-col-team {
    text-align: left;
}

.npr-prob-cell {
    position: relative;
    font-weight: 600;
    font-size: 0.85em;
}

.npr-prob-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0.15;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.npr-prob-val {
    position: relative;
    z-index: 1;
}

.npr-prob-high { color: #1a7a1a; }
.npr-prob-medium { color: #6b6b00; }
.npr-prob-low { color: #999; }

/* RSS diverging bar */
.npr-rss-cell {
    width: 64px;
    min-width: 64px;
    max-width: 72px;
    padding: 0.35em 0.3em !important;
}

.npr-rss-bar-wrap {
    position: relative;
    height: 20px;
    background: #f0f0f0;
    border-radius: 3px;
}

.npr-rss-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #bbb;
    z-index: 1;
}

.npr-rss-fill {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 2px;
}

.npr-rss-fill-hard {
    left: 50%;
    background: rgba(231, 76, 60, 0.55);
}

.npr-rss-fill-easy {
    right: 50%;
    background: rgba(46, 204, 113, 0.55);
}

/* RSS tooltip */
.npr-has-tooltip {
    cursor: pointer;
}

.npr-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #eee;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82em;
    white-space: nowrap;
    z-index: 200;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    line-height: 1.6;
    text-align: left;
}

.npr-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #1a1a2e;
}

.npr-tooltip-above .npr-tooltip {
    top: auto;
    bottom: calc(100% + 6px);
}

.npr-tooltip-above .npr-tooltip::after {
    bottom: auto;
    top: 100%;
    border-bottom-color: transparent;
    border-top-color: #1a1a2e;
}

.npr-has-tooltip:hover .npr-tooltip,
.npr-has-tooltip.npr-tooltip-open .npr-tooltip {
    display: block;
}

.npr-tooltip-hdr {
    font-weight: 700;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.npr-tooltip-row {
    padding: 1px 0;
}

.npr-tooltip-ha {
    display: inline-block;
    width: 1.4em;
    text-align: center;
}

.npr-pr-hard { color: #e74c3c; font-weight: 600; }
.npr-pr-mid  { color: #f39c12; font-weight: 600; }
.npr-pr-easy { color: #2ecc71; font-weight: 600; }

/* ===== H2H EKSTRAKLASA ===== */
.npr-h2h-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 1.5em auto;
}

.npr-h2h-lead {
    margin: 0.25em 0 0;
    color: #666;
    font-size: 0.92em;
}

.npr-h2h-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8em;
    padding: 0.9em;
    margin-bottom: 0.8em;
    background: #f7f9fc;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
}

.npr-h2h-select-panel {
    display: none;
    flex-basis: 100%;
    order: 10;
    padding-top: 0.75em;
    border-top: 1px solid #e5e9f0;
}

.npr-h2h-select-panel.is-visible {
    display: block;
}

.npr-h2h-select-title {
    margin-bottom: 0.55em;
    color: #666;
    font-size: 0.82em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.npr-h2h-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.45em;
}

.npr-h2h-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.55em !important;
    min-width: 0 !important;
    padding: 0.55em 0.65em;
    border: 1px solid #dce3ee;
    border-radius: 9px;
    background: #fff;
    color: #1a1a2e !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.9em !important;
    font-weight: 700 !important;
    user-select: none;
}

.npr-h2h-check:hover {
    border-color: #1e3d59;
    background: #f4f8fc;
}

.npr-h2h-check input {
    width: 18px;
    height: 18px;
    accent-color: #1e3d59;
    flex-shrink: 0;
}

.npr-h2h-check img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.npr-h2h-check span {
    line-height: 1.2;
}

.npr-h2h-controls label {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    min-width: 190px;
    font-size: 0.82em;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.npr-h2h-controls select {
    border: 1px solid #d6dce6;
    border-radius: 8px;
    padding: 0.55em 0.7em;
    background: #fff;
    color: #1a1a2e;
    font-size: 1rem;
    min-height: 40px;
}

.npr-h2h-wrapper .npr-h2h-controls button[type="submit"] {
    border: 0;
    border-radius: 8px;
    background: #1e3d59 !important;
    color: #fff !important;
    padding: 0.72em 1.25em;
    min-height: 40px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: none;
}

.npr-h2h-wrapper .npr-h2h-controls button[type="submit"]:hover,
.npr-h2h-wrapper .npr-h2h-controls button[type="submit"]:focus {
    background: #1e3d59 !important;
    color: #fff !important;
    filter: brightness(0.95);
}

.npr-h2h-tabs {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.npr-h2h-tab {
    border: 1px solid #d8deea;
    background: #fff;
    color: #1a1a2e;
    border-radius: 999px;
    padding: 0.55em 0.9em;
    cursor: pointer;
    font-weight: 700;
}

.npr-h2h-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7em;
    margin-left: 0.35em;
    padding: 0.05em 0.4em;
    border-radius: 999px;
    background: #eef2f8;
    font-size: 0.82em;
}

.npr-h2h-tab.active {
    background: #1e3d59;
    border-color: #1e3d59;
    color: #fff;
}

.npr-h2h-tab.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.npr-h2h-panel { display: none; }
.npr-h2h-panel.active { display: block; }

.npr-h2h-bucket {
    margin-bottom: 1.2em;
}

.npr-h2h-bucket h4,
.npr-h2h-bucket summary {
    margin: 0 0 0.7em;
    font-size: 0.95em;
    color: #333;
    font-weight: 800;
}

.npr-h2h-bucket summary {
    cursor: pointer;
    padding: 0.7em 0.9em;
    background: #f5f7fa;
    border-radius: 8px;
}

.npr-h2h-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 320px));
    gap: 0.9em;
    justify-content: start;
}

.npr-h2h-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 12px;
    padding: 0.9em;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.07);
    overflow: hidden;
}

.npr-h2h-focus-first { border-top: 4px solid #2ecc71; }
.npr-h2h-focus-middle { border-top: 4px solid #f39c12; }
.npr-h2h-focus-last { border-top: 4px solid #e74c3c; }

.npr-h2h-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.7em;
    margin-bottom: 0.75em;
}

.npr-h2h-card-title {
    font-weight: 800;
    color: #1a1a2e;
    font-size: 0.95em;
    line-height: 1.25;
}

.npr-h2h-crest-line {
    display: flex;
    align-items: center;
    gap: 0.35em;
    min-height: 24px;
}

.npr-h2h-card-crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 2px;
}

.npr-h2h-card-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8eef5;
    color: #1e3d59;
    font-size: 0.68em;
    font-weight: 900;
}

.npr-h2h-card-sub {
    margin-top: 0.2em;
    color: #777;
    font-size: 0.82em;
}

.npr-h2h-likelihood {
    flex-shrink: 0;
    color: #888;
    font-size: 0.76em;
    font-weight: 600;
    white-space: nowrap;
}

.npr-h2h-incomplete {
    margin: 0.55em 0 0;
    padding: 0.45em 0.6em;
    border-radius: 7px;
    background: #fff4df;
    color: #8a5a00;
    font-size: 0.78em;
    font-weight: 700;
}

.npr-h2h-mini-wrap {
    overflow-x: auto;
    margin-bottom: 0.7em;
}

.npr-h2h-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78em;
}

.npr-h2h-mini th {
    background: #1e3d59;
    color: #fff;
    padding: 0.35em 0.45em;
    text-align: center;
    white-space: nowrap;
}

.npr-h2h-mini th:nth-child(2),
.npr-h2h-mini td.team {
    text-align: left;
}

.npr-h2h-mini td {
    border-bottom: 1px solid #eef1f5;
    padding: 0.35em 0.45em;
    text-align: center;
    white-space: nowrap;
}

.npr-h2h-mini tr.is-focus {
    background: #eef5ff;
    font-weight: 800;
}

.npr-h2h-matches {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.npr-h2h-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.45em;
    align-items: center;
    padding: 0.42em 0.55em;
    border-radius: 8px;
    border: 1px solid #edf0f5;
    font-size: 0.8em;
}

.npr-h2h-match.has-focus {
    background: #f5f8ff;
    border-color: #dbe6fb;
}

.npr-h2h-match strong {
    color: #1a1a2e;
}

.npr-h2h-match span:last-child {
    text-align: right;
}

.npr-h2h-match .win {
    font-weight: 800;
    color: #333;
}

.npr-h2h-match .draw {
    color: #846000;
}

.npr-h2h-match.is-future {
    background: #fbfcfe;
    border-style: dashed;
    color: #6f7785;
}

.npr-h2h-match.is-future strong {
    color: #1e3d59;
    background: #e8eef5;
    border-radius: 999px;
    padding: 0.12em 0.45em;
}

/* ===== QUADRANT ===== */

.npr-quadrant-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
    margin: 1.5em auto;
}

.npr-quadrant-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.npr-q-tooltip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    color: #eee;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.82em;
    line-height: 1.7;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    white-space: nowrap;
}

.npr-q-tooltip strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.95em;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.npr-q-tooltip span {
    display: block;
    color: #ccc;
}

/* ===== MOBILE DETAIL SHEET ===== */
.npr-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
}

.npr-detail-overlay.npr-detail-open {
    display: flex;
}

.npr-detail-sheet {
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 0 1.2em 2.5em;
    width: 100%;
    max-width: 520px;
    animation: npr-slide-up 0.22s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

@keyframes npr-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.npr-detail-handle {
    width: 36px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0.7em auto 1em;
}

.npr-detail-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1em;
}

.npr-detail-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

.npr-detail-name {
    font-weight: 700;
    font-size: 1.1em;
    flex: 1;
}

.npr-detail-pos {
    font-size: 0.85em;
    color: #888;
    font-weight: 600;
}

.npr-detail-close {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.15em;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.npr-detail-score {
    margin-bottom: 1em;
}

.npr-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6em;
}

.npr-detail-item {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 0.55em 0.8em;
}

.npr-detail-label {
    font-size: 0.72em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    font-weight: 500;
}

.npr-detail-value {
    font-weight: 700;
    font-size: 1em;
    color: #1a1a2e;
}

/* Position number — reset theme overrides */
.npr-pos-num {
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline;
}

/* Trend inline (mobile only, hidden by default) */
.npr-trend-mobile {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .npr-table { font-size: 0.8em; }
    .npr-header { flex-direction: column; }

    /* Ukryte kolumny na mobile */
    .npr-col-prw,
    .npr-col-prq,
    .npr-col-pts,
    .npr-col-form,
    .npr-col-trend,
    .npr-col-avg-pos,
    .npr-col-avg-pts { display: none; }

    /* Nazwy drużyn */
    .npr-team-name { display: none; }
    .npr-team-shortname { display: inline; }

    /* Szerokości kolumn */
    .npr-col-pos { width: 3em; }
    .npr-col-team { min-width: 95px; }
    .npr-col-score { min-width: 110px; }

    /* Mniejszy padding komórek — więcej miejsca na kolumny */
    .npr-table th,
    .npr-table td { padding: 0.4em 0.4em; }
    .npr-rss-cell { padding: 0.3em 0.2em !important; }

    /* Większe i bardziej widoczne cyfry w kalkulatorze */
    .npr-prob-cell { font-size: 1em; font-weight: 700; }

    /* Tap feedback */
    .npr-ranking-table tbody tr { cursor: pointer; }
    .npr-ranking-table tbody tr:active { background: #edf2f7; }

    /* H2H mobile */
    .npr-h2h-wrapper {
        margin: 1em auto;
    }

    .npr-h2h-controls {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7em;
        padding: 0.8em;
    }

    .npr-h2h-controls label {
        min-width: 0;
        width: 100%;
    }

    .npr-h2h-controls button {
        width: 100%;
    }

    .npr-h2h-select-panel {
        max-height: 46vh;
        overflow-y: auto;
        padding-right: 0.15em;
        -webkit-overflow-scrolling: touch;
    }

    .npr-h2h-check-grid {
        grid-template-columns: 1fr;
        gap: 0.45em;
    }

    .npr-h2h-check {
        min-height: 44px;
        padding: 0.65em 0.75em;
    }

    .npr-h2h-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.35em;
        position: sticky;
        top: 0;
        z-index: 5;
        background: #fff;
        padding: 0.35em 0;
    }

    .npr-h2h-tab {
        border-radius: 8px;
        padding: 0.55em 0.35em;
        font-size: 0.78em;
    }

    .npr-h2h-grid {
        grid-template-columns: 1fr;
        gap: 0.75em;
    }

    .npr-h2h-card {
        padding: 0.75em;
        border-radius: 10px;
    }

    .npr-h2h-card-head {
        flex-direction: row;
        align-items: center;
        gap: 0.45em;
        margin-bottom: 0.55em;
    }

    .npr-h2h-likelihood {
        font-size: 0.72em;
    }

    .npr-h2h-crest-line {
        min-height: 22px;
    }

    .npr-h2h-card-crest {
        width: 21px;
        height: 21px;
    }

    .npr-h2h-mini {
        font-size: 0.74em;
    }

    .npr-h2h-mini th,
    .npr-h2h-mini td {
        padding: 0.32em 0.38em;
    }

    .npr-h2h-match {
        font-size: 0.76em;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
}
