.sa-lvl--hi   { background: #007c23; }
.sa-lvl--mid  { background: #0b4c86; }
.sa-lvl--low  { background: #a9821c; }
.sa-lvl--vlow { background: #8496ab; }

.sa-txt--hi   { color: #007c23; }
.sa-txt--mid  { color: #0b4c86; }
.sa-txt--low  { color: #856013; }
.sa-txt--vlow { color: #5b6e85; }

.sa-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sa-title.iddaa-title {
    margin: 0;
    flex: 1 1 520px;
    width: auto;
    min-width: 0;
    background-color: transparent;
    padding: 0 !important;
    font-family: var(--iot-font-heading);
    font-size: 29px !important;
    font-weight: 700 !important;
    line-height: 1.15;
    color: #152943;
    letter-spacing: -.01em;
}

.sa-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007c23;
    color: #fff;
    font-family: var(--iot-font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 8px;
    min-height: 44px;
    box-sizing: border-box;
}

.sa-cta:hover,
.sa-cta:focus {
    background: #00641c;
    color: #fff;
    text-decoration: none;
}

.sa-ad {
    margin-top: 14px;
}

.sa-ad--mid {
    margin-top: 14px;
}

.sa-intro.iot-article {
    margin-top: 14px;
    padding: 20px 24px 22px;
    display: block;
}

.sa-intro .iot-article__body > h2:first-child,
.sa-intro .iot-article__body > h1:first-child {
    margin-top: 0;
}

.sa-panel-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.sa-panel-note {
    margin: 0;
    font-size: 12.5px;
    color: #5b6e85;
}

.sa-hist-panel,
.sa-list,
.sa-leagues,
.sa-markets {
    margin-top: 14px;
}

.sa-hist {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 14px;
    height: 120px;
}

.sa-hist__col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    height: 100%;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.sa-hist__count {
    font-size: 11px;
    font-weight: 700;
    color: #5b6e85;
    font-variant-numeric: tabular-nums;
}

.sa-hist__bar {
    width: 100%;
    height: var(--h, 4px);
    border-radius: 5px 5px 0 0;
}

.sa-hist__label,
.sa-hist__short {
    font-size: 11px;
    color: #5b6e85;
    font-variant-numeric: tabular-nums;
}

.sa-hist__short { display: none; }

.sa-hist__col[aria-pressed="true"] .sa-hist__bar {
    background: #152943;
    box-shadow: 0 0 0 2px var(--iot-blue-accent);
}

.sa-hist__col[aria-pressed="true"] .sa-hist__count,
.sa-hist__col[aria-pressed="true"] .sa-hist__label,
.sa-hist__col[aria-pressed="true"] .sa-hist__short {
    color: #152943;
    font-weight: 700;
}

.sa-list__head {
    padding: 17px 22px 0;
}

.sa-list__head .iot-panel__title {
    font-size: 19px;
}

.sa-list__head .sa-panel-note {
    margin-top: 4px;
}

.sa-dates {
    display: flex;
    gap: 6px;
    padding: 13px 22px 0;
    overflow-x: auto;
}

.sa-date {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #4d5f74;
    font: inherit;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
}

.sa-date__label {
    font-size: 13px;
    font-weight: 700;
}

.sa-date__count {
    font-size: 10.5px;
    color: #5b6e85;
    font-variant-numeric: tabular-nums;
}

.sa-date.is-active {
    background: #152943;
    border-color: #152943;
    color: #fff;
}

.sa-date.is-active .sa-date__count { color: #c3d2e4; }

.sa-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    flex-wrap: wrap;
}

.sa-search {
    position: relative;
    flex: 1 1 250px;
    min-width: 210px;
}

.sa-search__icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #5b6e85;
    pointer-events: none;
}

.sa-search__input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    border: 1px solid var(--iot-border-strong);
    border-radius: 8px;
    padding: 0 12px 0 34px;
    font: inherit;
    font-size: 13.5px;
    color: #152943;
    background: var(--iot-bg-panel-alt);
}

.sa-field {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 12.5px;
    color: #4d5f74;
    font-weight: 400;
}

.sa-field__label { white-space: nowrap; }

.sa-select {
    height: 40px;
    max-width: 210px;
    border: 1px solid var(--iot-border-strong);
    border-radius: 8px;
    padding: 0 8px;
    font: inherit;
    font-size: 13px;
    color: #152943;
    background: var(--iot-bg-panel-alt);
    cursor: pointer;
}

.sa-range {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 12.5px;
    color: #4d5f74;
    white-space: nowrap;
    font-weight: 400;
}

.sa-range strong {
    color: #152943;
    font-variant-numeric: tabular-nums;
    min-width: 34px;
}

.sa-range input {
    width: 120px;
    accent-color: #0b4c86;
}

.sa-toggles {
    display: contents;
}

.sa-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #4d5f74;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 40px;
}

.sa-toggle__box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid #c3ccd8;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
    color: #fff;
    line-height: 1;
}

.sa-toggle__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a3b0c0;
}

.sa-toggle__count { font-variant-numeric: tabular-nums; }

#saValueOnly[aria-pressed="true"] {
    background: #e6f6ea;
    border-color: #b9e2c4;
    color: #00641c;
}

#saValueOnly[aria-pressed="true"] .sa-toggle__box {
    background: #007c23;
    border-color: #007c23;
}

#saValueOnly[aria-pressed="true"] .sa-toggle__box::after {
    content: "\2713";
}

#saSoonOnly[aria-pressed="true"] {
    background: #fdefe6;
    border-color: #f2cdb4;
    color: #8a3410;
}

#saSoonOnly[aria-pressed="true"] .sa-toggle__dot {
    background: #d1521f;
    animation: saPulse 1.6s ease-in-out infinite;
}

#saStarOnly[aria-pressed="true"] {
    background: #fff8e0;
    border-color: #e8d38a;
    color: #7a5c00;
}

@keyframes saPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}

.sa-reset {
    border: 0;
    background: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #0b4c86;
    cursor: pointer;
    text-decoration: underline;
    min-height: 40px;
}

.sa-sort-row {
    display: none;
    gap: 6px;
    padding: 0 13px 11px;
}

.sa-sort-select {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #152943;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 0 8px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 42px;
}

.sa-sort-dir {
    flex: none;
    width: 42px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #152943;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    min-height: 42px;
    padding: 0;
}

.sa-sort-dir[aria-pressed="true"] {
    background: #152943;
    border-color: #152943;
    color: #fff;
}

.sa-sort-reset {
    flex: none;
    border: 1px solid var(--iot-border-strong);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #0b4c86;
    padding: 10px 13px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 42px;
}

.sa-table-wrap {
    overflow-x: auto;
}

.sa-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 880px;
    margin: 0;
}

.sa-table thead tr {
    background: var(--iot-bg-panel);
    text-align: left;
}

.sa-table th {
    padding: 0;
    box-sizing: border-box;
    font-weight: 700;
}

.sa-table th.sa-c-time   { width: 98px; }
.sa-table th.sa-c-league { width: 158px; }
.sa-table th.sa-c-pct    { width: 186px; }
.sa-table th.sa-c-odd    { width: 86px; }
.sa-table th.sa-c-star   { width: 52px; padding: 11px 22px 11px 8px; text-align: right; font-size: 11px; letter-spacing: .06em; color: #4d5f74; }

.sa-sort {
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #4d5f74;
    padding: 11px 8px;
    cursor: pointer;
    text-transform: uppercase;
}

.sa-table th.sa-c-time .sa-sort { padding-left: 22px; }
.sa-table th.sa-c-odd .sa-sort  { text-align: right; }

.sa-sort.is-active { color: #152943; }

.sa-row {
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.sa-row--value { background: #fbfdf9; }
.sa-row.is-starred { background: #fffdf3; }
.sa-row:hover { background: #f4f9fd; }

.sa-row td {
    padding: 9px 8px;
    vertical-align: top;
}

.sa-row td.sa-c-time { padding-left: 22px; }
.sa-row td.sa-c-star { padding-right: 22px; text-align: right; }
.sa-row td.sa-c-odd {
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13.5px;
    font-weight: 700;
    color: #152943;
    font-variant-numeric: tabular-nums;
}

.sa-hour {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #152943;
    font-variant-numeric: tabular-nums;
}

.sa-date-txt {
    display: block;
    font-size: 11px;
    color: #5b6e85;
    font-variant-numeric: tabular-nums;
}

.sa-league-btn {
    max-width: 100%;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 12.5px;
    color: #0b4c86;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.sa-league-btn:hover { text-decoration: underline; }

.sa-match {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b4c86;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-pct-line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sa-bar {
    flex: 1;
    min-width: 0;
    height: 8px;
    border-radius: 4px;
    background: #eef2f6;
    overflow: hidden;
    display: block;
}

.sa-bar__fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    width: var(--pct, 0%);
}

.sa-pct {
    flex: none;
    min-width: 38px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sa-tag {
    display: inline-block;
    margin-top: 3px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 4px;
    padding: 2px 5px;
}

.sa-tag--value {
    color: #00641c;
    background: #e6f6ea;
    border: 1px solid #b9e2c4;
}

.sa-tag--soon {
    color: #8a3410;
    background: #fdefe6;
    border: 1px solid #f2cdb4;
    letter-spacing: .05em;
    font-size: 10px;
}

.sa-star {
    width: 30px;
    height: 30px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: #a3b0c0;
    padding: 0;
}

.sa-star[aria-pressed="true"] { color: #b58a00; }

.sa-row--over,
.sa-row.sa-hidden { display: none; }

.sa-empty {
    margin: 0;
    padding: 30px 22px;
    text-align: center;
    font-size: 13.5px;
    color: #5b6e85;
}

.sa-empty__reset {
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #0b4c86;
    cursor: pointer;
    text-decoration: underline;
}

.sa-more {
    width: 100%;
    border: 0;
    border-top: 1px solid #eef2f6;
    background: var(--iot-bg-panel-alt);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b4c86;
    padding: 14px;
    cursor: pointer;
    min-height: 48px;
}

.sa-lg-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 18px;
    margin-top: 13px;
}

.sa-lg {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #f1f4f8;
    background: none;
    padding: 9px 2px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    min-height: 44px;
}

.sa-lg:hover { background: var(--iot-bg-panel-alt); }

.sa-lg__name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #0b4c86;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-bar--mini {
    flex: none;
    width: 54px;
    height: 7px;
}

.sa-lg__avg {
    flex: none;
    min-width: 34px;
    text-align: right;
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sa-lg__count {
    flex: none;
    min-width: 28px;
    text-align: right;
    font-size: 11.5px;
    color: #5b6e85;
    font-variant-numeric: tabular-nums;
}

.sa-markets__title {
    margin: 0 0 4px;
    font-family: var(--iot-font-heading);
    font-size: 20px;
    line-height: 1.3;
    color: #152943;
}

.sa-market-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.sa-market {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 13px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #0b4c86;
    border-radius: var(--iot-radius-pill);
    font-size: 12.5px;
    font-weight: 700;
}

.sa-market:hover {
    text-decoration: none;
    border-color: #0b4c86;
    color: #0b4c86;
}

.sa-market.is-active {
    background: #152943;
    border-color: #152943;
    color: #fff;
}

.sa-market--over { display: none; }

.sa-markets.is-expanded .sa-market--over { display: block; }

.sa-markets__toggle {
    margin-top: 13px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #0b4c86;
    padding: 11px 18px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
}

.sa-list + .share-widget,
.sa-markets + .share-widget {
    margin-top: 14px;
}

@media (max-width: 991.98px) {
    .sa-head {
        gap: 8px;
    }

    .sa-title.iddaa-title {
        flex: 1 1 100%;
        font-size: 20px !important;
        line-height: 1.22;
    }

    .sa-cta {
        flex: 1 1 100%;
        justify-content: center;
        font-size: 15px;
        padding: 12px;
        min-height: 46px;
    }

    .sa-intro.iot-article {
        margin-top: 11px;
        padding: 14px 13px 16px;
    }

    .sa-hist-panel,
    .sa-list,
    .sa-leagues,
    .sa-markets {
        margin-top: 11px;
    }

    .sa-hist {
        gap: 4px;
        margin-top: 11px;
        height: 92px;
    }

    .sa-hist__count { font-size: 9.5px; }

    .sa-hist__label { display: none; }

    .sa-hist__short {
        display: block;
        font-size: 9px;
    }

    .sa-list__head {
        padding: 13px 13px 0;
    }

    .sa-list__head .iot-panel__title { font-size: 16px; }

    .sa-dates {
        padding: 11px 13px 0;
    }

    .sa-lg-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 9px;
    }

    .sa-markets__title { font-size: 17px; }

    .sa-markets__toggle {
        width: 100%;
        margin-top: 11px;
    }
}

@media (max-width: 767.98px) {
    .sa-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        padding: 11px 13px;
    }

    .sa-search,
    .sa-field,
    .sa-range {
        flex: 1 1 auto;
        min-width: 0;
    }

    .sa-search__input { height: 42px; }

    .sa-field { display: block; }

    .sa-field__label {
        display: block;
        margin-bottom: 4px;
    }

    .sa-select {
        width: 100%;
        max-width: none;
        height: 42px;
    }

    .sa-range input { flex: 1; width: auto; }

    .sa-toggles {
        display: flex;
        gap: 6px;
    }

    .sa-toggle {
        flex: 1;
        min-width: 0;
        justify-content: center;
        gap: 6px;
        padding: 10px 6px;
        font-size: 11.5px;
        min-height: 44px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .sa-reset { display: none; }

    .sa-sort-row { display: flex; }

    .sa-table-wrap { overflow-x: visible; }

    .sa-table {
        min-width: 0;
        table-layout: auto;
        display: block;
    }

    .sa-table thead { display: none; }

    .sa-table tbody { display: block; }

    .sa-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "time  league odd   star"
            "match match  match match"
            "pct   pct    pct   pct";
        align-items: center;
        gap: 2px 8px;
        padding: 10px 13px;
    }

    .sa-row td {
        display: block;
        padding: 0;
        min-width: 0;
    }

    .sa-row td.sa-c-time   { grid-area: time; padding-left: 0; }
    .sa-row td.sa-c-league { grid-area: league; }
    .sa-row td.sa-c-match  { grid-area: match; }
    .sa-row td.sa-c-pct    { grid-area: pct; }
    .sa-row td.sa-c-odd    { grid-area: odd; }
    .sa-row td.sa-c-star   { grid-area: star; padding-right: 0; }

    .sa-hour {
        display: inline;
        font-size: 11.5px;
    }

    .sa-date-txt { display: none; }

    .sa-league-btn { font-size: 10.5px; }

    .sa-row td.sa-c-odd { font-size: 12.5px; }

    .sa-match {
        margin-top: 3px;
        font-size: 13.5px;
    }

    .sa-pct-line { margin-top: 5px; }

    .sa-bar { height: 7px; }

    .sa-pct {
        min-width: 34px;
        font-size: 12.5px;
    }

    .sa-star {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .sa-empty { padding: 26px 13px; }

    .sa-more {
        font-size: 13px;
        padding: 13px;
        min-height: 46px;
    }
}
