.stx-page {
    --stx-bg: #080101;
    --stx-panel: #150404;
    --stx-panel-2: #210706;
    --stx-red: #bf0d16;
    --stx-red-dark: #76070c;
    --stx-gold: #f5c451;
    --stx-gold-light: #ffe6a2;
    --stx-text: #fff8e8;
    --stx-muted: #cbbda2;
    --stx-line: rgba(245, 196, 81, .16);
    --stx-soft: rgba(245, 196, 81, .065);
    --stx-green: #55dc88;
    --stx-blue: #72b7ff;
    inline-size: min(100%, 1420px);
    margin-inline: auto;
    padding-inline-start: max(12px, env(safe-area-inset-left));
    padding-inline-end: max(12px, env(safe-area-inset-right));
    padding-block-end: max(28px, env(safe-area-inset-bottom));
    color: var(--stx-text);
    direction: rtl;
}
.stx-page,
.stx-page * {
    box-sizing: border-box;
    min-inline-size: 0;
}
.stx-page a {
    color: inherit;
    text-decoration: none;
}
.stx-layout {
    display: grid;
    gap: clamp(14px, 2vw, 24px);
}
.stx-hero,
.stx-filters,
.stx-overview-card,
.stx-panel,
.stx-empty {
    border: 1px solid var(--stx-line);
    box-shadow: 0 24px 62px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.stx-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: stretch;
    gap: 24px;
    min-height: 290px;
    padding: clamp(22px, 4vw, 48px);
    border-radius: clamp(23px, 3vw, 36px);
    background:
        radial-gradient(circle at 12% 5%, rgba(245, 196, 81, .20), transparent 28%),
        radial-gradient(circle at 88% 6%, rgba(191, 13, 22, .34), transparent 34%),
        linear-gradient(135deg, #300909 0%, #160303 55%, #080101 100%);
}
.stx-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .32;
    background-image:
        linear-gradient(rgba(245, 196, 81, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 196, 81, .06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to left, #000, transparent 76%);
}
.stx-hero-copy {
    align-self: center;
}
.stx-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-end: 18px;
    color: var(--stx-muted);
    font-size: .76rem;
    font-weight: 700;
}
.stx-breadcrumbs a {
    color: var(--stx-gold);
}
.stx-kicker,
.stx-status,
.stx-table-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(245, 196, 81, .22);
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
}
.stx-kicker {
    color: #251300;
    border: 0;
    background: linear-gradient(135deg, #ffe7a4, var(--stx-gold) 62%, #b86f0c);
}
.stx-title {
    margin: 15px 0 0;
    color: var(--stx-text);
    font-size: clamp(2rem, 5.4vw, 4.8rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}
.stx-title span {
    color: var(--stx-gold);
}
.stx-subtitle {
    max-width: 760px;
    margin: 15px 0 0;
    color: var(--stx-muted);
    font-size: clamp(.9rem, 1.3vw, 1.04rem);
    line-height: 1.85;
}
.stx-season-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 18px;
}
.stx-status {
    color: var(--stx-muted);
    background: rgba(0, 0, 0, .22);
}
.stx-status.is-active {
    color: #dffde9;
    border-color: rgba(85, 220, 136, .32);
    background: rgba(85, 220, 136, .10);
}
.stx-status.is-upcoming {
    color: #e1efff;
    border-color: rgba(114, 183, 255, .32);
    background: rgba(114, 183, 255, .10);
}
.stx-status.is-completed,
.stx-status.is-archived {
    color: var(--stx-gold-light);
    background: rgba(245, 196, 81, .08);
}
.stx-feature {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 13px;
    padding: 24px;
    border: 1px solid rgba(245, 196, 81, .25);
    border-radius: 28px;
    text-align: center;
    background: linear-gradient(145deg, rgba(245, 196, 81, .12), rgba(191, 13, 22, .13) 52%, rgba(0, 0, 0, .24));
    backdrop-filter: blur(12px);
}
.stx-feature-label {
    color: var(--stx-gold-light);
    font-size: .72rem;
    font-weight: 800;
}
.stx-logo {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    inline-size: 90px;
    block-size: 90px;
    border: 1px solid rgba(245, 196, 81, .20);
    border-radius: 25px;
    color: var(--stx-gold);
    background: radial-gradient(circle at 50% 12%, rgba(245, 196, 81, .16), transparent 62%), rgba(0, 0, 0, .22);
    font-size: 1.75rem;
    font-weight: 800;
}
.stx-logo img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    padding: 10px;
    object-fit: contain;
    background: #150404;
}
.stx-feature strong {
    color: var(--stx-text);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}
.stx-feature small {
    color: var(--stx-muted);
    font-size: .78rem;
    font-weight: 800;
}
.stx-filters {
    padding: clamp(15px, 2.4vw, 24px);
    border-radius: clamp(20px, 2.7vw, 30px);
    background: linear-gradient(145deg, rgba(29, 7, 7, .98), rgba(9, 1, 1, .99));
}
.stx-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-block-end: 16px;
}
.stx-filter-head h2 {
    margin: 0;
    color: var(--stx-gold);
    font-size: 1rem;
    font-weight: 800;
}
.stx-reset-top {
    color: var(--stx-muted);
    font-size: .75rem;
    font-weight: 700;
}
.stx-filter-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.stx-field {
    grid-column: span 3;
}
.stx-field-search {
    grid-column: span 4;
}
.stx-field label {
    display: block;
    margin-block-end: 7px;
    color: var(--stx-gold-light);
    font-size: .75rem;
    font-weight: 800;
}
.stx-control {
    display: block;
    inline-size: 100%;
    min-height: 49px;
    padding: 10px 13px;
    border: 1px solid rgba(245, 196, 81, .20);
    border-radius: 15px;
    outline: 0;
    color: var(--stx-text);
    background: rgba(5, 1, 1, .56);
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.stx-control:focus {
    border-color: rgba(245, 196, 81, .62);
    background: rgba(16, 3, 3, .85);
    box-shadow: 0 0 0 4px rgba(245, 196, 81, .09);
}
.stx-control::placeholder {
    color: rgba(203, 189, 162, .54);
}
.stx-control option,
.stx-control optgroup {
    color: var(--stx-text);
    background: #160404;
}
.stx-actions {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr;
}
.stx-submit,
.stx-reset,
.stx-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 10px 16px;
    border-radius: 15px;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.stx-submit {
    border: 0;
    color: #251300;
    background: linear-gradient(135deg, #ffe7a4, var(--stx-gold) 60%, #b56c0b);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}
.stx-reset,
.stx-tab {
    border: 1px solid var(--stx-line);
    color: var(--stx-text);
    background: var(--stx-soft);
}
.stx-submit:hover,
.stx-reset:hover,
.stx-tab:hover {
    transform: translateY(-1px);
}
.stx-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 13px;
}
.stx-tab {
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--stx-muted);
    font-size: .73rem;
}
.stx-tab.is-active {
    color: #251300;
    border-color: transparent;
    background: linear-gradient(135deg, #ffe7a4, var(--stx-gold) 60%, #b56c0b);
}
.stx-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.stx-overview-card {
    overflow: hidden;
    display: grid;
    gap: 8px;
    min-height: 116px;
    padding: 17px;
    border-radius: 21px;
    background:
        radial-gradient(circle at 90% 0%, rgba(245, 196, 81, .10), transparent 42%),
        linear-gradient(145deg, rgba(31, 7, 7, .96), rgba(10, 2, 2, .99));
}
.stx-overview-card span {
    color: var(--stx-muted);
    font-size: .73rem;
    font-weight: 700;
}
.stx-overview-card strong {
    overflow: hidden;
    color: var(--stx-gold-light);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stx-overview-card small {
    color: var(--stx-muted);
    font-size: .7rem;
    font-weight: 750;
}
.stx-panel {
    overflow: hidden;
    border-radius: clamp(20px, 2.7vw, 30px);
    background: linear-gradient(145deg, rgba(25, 6, 6, .98), rgba(8, 1, 1, .99));
}
.stx-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 70px;
    padding: 14px clamp(15px, 2.4vw, 24px);
    border-block-end: 1px solid var(--stx-line);
    background: rgba(0, 0, 0, .15);
}
.stx-panel-head h2 {
    margin: 0;
    color: var(--stx-gold);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 800;
}
.stx-panel-head small {
    color: var(--stx-muted);
    font-size: .7rem;
    font-weight: 800;
}
.stx-table-state {
    color: var(--stx-gold-light);
    background: rgba(245, 196, 81, .07);
}
.stx-table-wrap {
    position: relative;
    overflow-x: auto;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.stx-table-wrap::before {
    content: "موقع أحباب المريخ الرياضي";
    position: absolute;
    z-index: 0;
    inset: 50% auto auto 50%;
    width: max-content;
    max-width: 86%;
    color: rgba(245, 196, 81, .045);
    font-size: clamp(1.7rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-13deg);
    pointer-events: none;
}
.stx-table {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--stx-text);
}
.stx-table th,
.stx-table td {
    padding: 13px 10px;
    border-block-end: 1px solid rgba(245, 196, 81, .09);
    text-align: center;
    vertical-align: middle;
}
.stx-table th {
    position: sticky;
    top: 0;
    z-index: 4;
    color: var(--stx-muted);
    background: #100303;
    font-size: .69rem;
    font-weight: 800;
    white-space: nowrap;
}
.stx-table tbody tr {
    transition: background .2s ease, box-shadow .2s ease;
}
.stx-table tbody tr:hover {
    background: rgba(245, 196, 81, .045);
}
.stx-table tbody tr.is-merrikh {
    background: linear-gradient(90deg, rgba(191, 13, 22, .12), rgba(245, 196, 81, .075), rgba(191, 13, 22, .08));
    box-shadow: inset -4px 0 0 var(--stx-gold);
}
.stx-rank {
    color: var(--stx-gold-light);
    font-size: 1rem;
    font-weight: 800;
}
.stx-rank-badge {
    display: inline-grid;
    place-items: center;
    inline-size: 34px;
    block-size: 34px;
    border: 1px solid rgba(245, 196, 81, .16);
    border-radius: 12px;
    background: rgba(245, 196, 81, .06);
}
.stx-rank-badge.is-podium {
    color: #251300;
    border-color: transparent;
    background: linear-gradient(135deg, #ffe7a4, var(--stx-gold) 60%, #b56c0b);
}
.stx-team-cell {
    min-width: 235px;
    text-align: start !important;
}
.stx-team-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}
.stx-team-logo {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border: 1px solid rgba(245, 196, 81, .16);
    border-radius: 14px;
    color: var(--stx-gold);
    background: rgba(245, 196, 81, .055);
    font-size: .95rem;
    font-weight: 800;
}
.stx-team-logo img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    padding: 5px;
    object-fit: contain;
    background: #150404;
}
.stx-team-text {
    overflow: hidden;
    display: grid;
    gap: 3px;
}
.stx-team-text strong {
    overflow: hidden;
    color: var(--stx-text);
    font-size: .86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stx-team-text small {
    color: var(--stx-muted);
    font-size: .65rem;
    font-weight: 750;
}
.stx-number {
    color: #eadfc8;
    font-size: .79rem;
    font-weight: 700;
}
.stx-points {
    color: var(--stx-gold-light);
    font-size: 1rem;
    font-weight: 800;
}
.stx-diff.is-positive {
    color: var(--stx-green);
}
.stx-diff.is-negative {
    color: #ff9898;
}
.stx-diff.is-neutral {
    color: var(--stx-muted);
}
.stx-form {
    display: inline-flex;
    justify-content: center;
    gap: 4px;
    direction: rtl;
}
.stx-form-item {
    display: inline-grid;
    place-items: center;
    inline-size: 25px;
    block-size: 25px;
    border-radius: 8px;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
}
.stx-form-item.is-win {
    background: #168445;
}
.stx-form-item.is-draw {
    background: #8e721b;
}
.stx-form-item.is-loss {
    background: #a42b32;
}
.stx-scorers {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
}
.stx-top-scorer {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    min-height: 360px;
    padding: 22px;
    border: 1px solid rgba(245, 196, 81, .23);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 196, 81, .18), transparent 42%),
        linear-gradient(145deg, rgba(54, 13, 11, .95), rgba(15, 3, 3, .99));
}
.stx-top-photo {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: .54;
    filter: saturate(.82) contrast(1.04);
}
.stx-top-scorer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0c0202 8%, rgba(12, 2, 2, .77) 40%, transparent 80%);
}
.stx-top-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 7px;
}
.stx-top-content span {
    color: var(--stx-gold);
    font-size: .72rem;
    font-weight: 800;
}
.stx-top-content strong {
    color: var(--stx-text);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}
.stx-top-team {
    color: var(--stx-muted);
    font-size: .77rem;
    font-weight: 800;
}
.stx-goal-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-block-start: 7px;
}
.stx-goal-total b {
    color: var(--stx-gold-light);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
}
.stx-goal-total small {
    color: var(--stx-muted);
    font-size: .75rem;
    font-weight: 700;
}
.stx-scorer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-content: start;
}
.stx-scorer-card {
    display: grid;
    grid-template-columns: auto 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 84px;
    padding: 10px;
    border: 1px solid rgba(245, 196, 81, .12);
    border-radius: 18px;
    background: rgba(245, 196, 81, .035);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.stx-scorer-card:hover {
    transform: translateY(-1px);
    border-color: rgba(245, 196, 81, .30);
    background: rgba(245, 196, 81, .06);
}
.stx-scorer-rank {
    display: grid;
    place-items: center;
    inline-size: 30px;
    block-size: 30px;
    border-radius: 10px;
    color: var(--stx-gold-light);
    background: rgba(245, 196, 81, .08);
    font-size: .75rem;
    font-weight: 800;
}
.stx-player-photo {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    inline-size: 54px;
    block-size: 54px;
    border: 1px solid rgba(245, 196, 81, .15);
    border-radius: 16px;
    color: var(--stx-gold);
    background: rgba(245, 196, 81, .055);
    font-size: 1rem;
    font-weight: 800;
}
.stx-player-photo img {
    position: absolute;
    inset: 0;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center top;
    background: #150404;
}
.stx-scorer-info {
    overflow: hidden;
    display: grid;
    gap: 4px;
}
.stx-scorer-info strong {
    overflow: hidden;
    color: var(--stx-text);
    font-size: .8rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stx-scorer-info span {
    overflow: hidden;
    color: var(--stx-muted);
    font-size: .65rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stx-scorer-goals {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 44px;
}
.stx-scorer-goals strong {
    color: var(--stx-gold-light);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}
.stx-scorer-goals small {
    color: var(--stx-muted);
    font-size: .6rem;
    font-weight: 800;
}
.stx-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: clamp(38px, 8vw, 78px) 18px;
    border-radius: clamp(22px, 3vw, 32px);
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 196, 81, .10), transparent 38%),
        linear-gradient(145deg, rgba(25, 6, 6, .98), rgba(8, 1, 1, .99));
}
.stx-empty h2 {
    margin: 0;
    color: var(--stx-gold);
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 800;
}
.stx-empty p {
    max-width: 600px;
    margin: 0;
    color: var(--stx-muted);
    font-size: .83rem;
    line-height: 1.8;
}
.stx-empty-panel {
    padding: 34px 16px;
    color: var(--stx-muted);
    text-align: center;
    font-size: .82rem;
    font-weight: 800;
}
.stx-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--stx-muted);
    font-size: .69rem;
    font-weight: 600;
}
.stx-page :where(a, button, input, select):focus-visible {
    outline: 3px solid rgba(245, 196, 81, .55);
    outline-offset: 3px;
}
@media (max-width: 1199.98px) {
    .stx-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stx-field,
    .stx-field-search,
    .stx-actions {
        grid-column: auto;
    }
    .stx-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stx-scorer-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 899.98px) {
    .stx-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .stx-feature {
        min-height: 230px;
    }
    .stx-scorers {
        grid-template-columns: 1fr;
    }
    .stx-top-scorer {
        min-height: 310px;
    }
}
@media (max-width: 767.98px) {
    .stx-table-wrap {
        overflow: visible;
        padding: 10px;
    }
    .stx-table {
        display: block;
        min-width: 0;
    }
    .stx-table thead {
        display: none;
    }
    .stx-table tbody {
        display: grid;
        gap: 10px;
    }
    .stx-table tr {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid rgba(245, 196, 81, .13);
        border-radius: 18px;
        background: rgba(245, 196, 81, .025);
    }
    .stx-table th,
    .stx-table td {
        border: 0;
    }
    .stx-table td {
        display: grid;
        justify-items: center;
        gap: 5px;
        padding: 10px 6px;
        border-block-start: 1px solid rgba(245, 196, 81, .07);
    }
    .stx-table td::before {
        content: attr(data-label);
        color: var(--stx-muted);
        font-size: .58rem;
        font-weight: 800;
    }
    .stx-rank-cell {
        grid-column: span 1;
        align-content: center;
        border-block-start: 0 !important;
    }
    .stx-rank-cell::before,
    .stx-team-cell::before {
        display: none;
    }
    .stx-team-cell {
        grid-column: span 3;
        min-width: 0;
        border-block-start: 0 !important;
        text-align: start !important;
    }
    .stx-team-link {
        inline-size: 100%;
    }
    .stx-form-cell {
        grid-column: 1 / -1;
    }
    .stx-table-wrap::before {
        position: absolute;
        max-width: 80%;
        white-space: normal;
        text-align: center;
    }
}
@media (max-width: 639.98px) {
    .stx-page {
        padding-inline-start: max(9px, env(safe-area-inset-left));
        padding-inline-end: max(9px, env(safe-area-inset-right));
    }
    .stx-hero {
        padding: 20px 16px;
        border-radius: 22px;
    }
    .stx-title {
        font-size: clamp(1.9rem, 12vw, 2.8rem);
    }
    .stx-filters,
    .stx-panel,
    .stx-empty {
        border-radius: 21px;
    }
    .stx-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .stx-filter-grid {
        grid-template-columns: 1fr;
    }
    .stx-overview {
        grid-template-columns: 1fr;
    }
    .stx-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .stx-scorers {
        padding: 9px;
    }
    .stx-scorer-card {
        grid-template-columns: auto 48px minmax(0, 1fr) auto;
    }
    .stx-player-photo {
        inline-size: 48px;
        block-size: 48px;
        border-radius: 14px;
    }
}
@media (max-width: 379.98px) {
    .stx-table tr {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .stx-rank-cell {
        grid-column: span 1;
    }
    .stx-team-cell {
        grid-column: span 2;
    }
    .stx-scorer-card {
        grid-template-columns: auto 44px minmax(0, 1fr);
    }
    .stx-scorer-goals {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
    }
}
@media (hover: none) {
    .stx-submit:hover,
    .stx-reset:hover,
    .stx-tab:hover,
    .stx-scorer-card:hover {
        transform: none;
    }
}
@media (pointer: coarse) {
    .stx-submit,
    .stx-reset,
    .stx-tab {
        min-height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .stx-page *,
    .stx-page *::before,
    .stx-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


.stx-league-switcher {
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    padding: 4px 1px 7px;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}
.stx-league-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(245, 196, 81, .14);
    border-radius: 999px;
    color: var(--stx-muted);
    background: rgba(245, 196, 81, .035);
    font-size: .75rem;
    font-weight: 800;
    transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
    white-space: nowrap;
}
.stx-league-chip:hover {
    transform: translateY(-1px);
    color: var(--stx-text);
    border-color: rgba(245, 196, 81, .34);
    background: rgba(245, 196, 81, .075);
}
.stx-league-chip.is-active {
    color: #251300;
    border-color: transparent;
    background: linear-gradient(135deg, #ffe7a4, var(--stx-gold) 60%, #b56c0b);
}
.stx-league-chip small {
    color: inherit;
    opacity: .75;
    font-size: .62rem;
    font-weight: 700;
}
.stx-league-strip {
    display: grid;
    gap: 9px;
    padding: 14px 16px;
    border: 1px solid var(--stx-line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(25, 6, 6, .88), rgba(8, 1, 1, .94));
}
.stx-league-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--stx-muted);
    font-size: .7rem;
    font-weight: 700;
}
.stx-league-strip-head strong {
    color: var(--stx-gold-light);
    font-size: .78rem;
    font-weight: 800;
}
.stx-filter-context {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-block-start: 11px;
    color: var(--stx-muted);
    font-size: .69rem;
    font-weight: 800;
}
.stx-filter-context b {
    color: var(--stx-gold-light);
    font-weight: 800;
}
.stx-season-count {
    display: inline-grid;
    place-items: center;
    min-inline-size: 24px;
    block-size: 24px;
    padding-inline: 7px;
    border-radius: 999px;
    color: var(--stx-gold-light);
    background: rgba(245, 196, 81, .08);
    font-size: .65rem;
    font-weight: 800;
}
@media (max-width: 639.98px) {
    .stx-league-strip { padding: 12px; border-radius: 18px; }
    .stx-league-strip-head { align-items: flex-start; flex-direction: column; }
}


body.standings-page { background: #0c0507; }
.stx-page { padding-block-start: 24px; font-family: inherit; }
.stx-page [hidden] { display: none !important; }
.stx-page .stx-title { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.stx-page .stx-hero { min-height: 245px; }
.stx-page .stx-number, .stx-page .stx-points, .stx-page .stx-rank, .stx-page .stx-scorer-goals { font-variant-numeric: tabular-nums; }
.stx-page .stx-number bdi { unicode-bidi: isolate; direction: ltr; }
.stx-page .stx-table-wrap:focus-visible { outline: 3px solid var(--stx-gold); outline-offset: -3px; }
.stx-page .stx-refresh { border: 1px solid var(--stx-line); background: var(--stx-soft); color: var(--stx-text); font: inherit; font-size: .8rem; border-radius: 12px; min-height: 44px; padding: 9px 16px; cursor: pointer; }
.stx-page .stx-refresh.is-new { color: #231608; background: var(--stx-gold); }
.stx-page .stx-refresh-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.stx-page .stx-refresh-note { color: var(--stx-muted); font-size: .78rem; }
.stx-page .stx-panel-state { padding: 12px 20px; margin: 0; color: var(--stx-gold-light); font-size: .8rem; background: rgba(245,196,81,.05); }
.stx-page .stx-pagination { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 18px; border-top: 1px solid var(--stx-line); font-size: .83rem; color: var(--stx-muted); }
.stx-page .stx-pagination a { padding: 12px 18px; border: 1px solid var(--stx-line); border-radius: 12px; color: var(--stx-gold-light); }
.stx-page .stx-scorers.is-filtered { grid-template-columns: 1fr; }
.stx-page .stx-scorer-card:not(a) { cursor: default; }
.stx-page .stx-scorer-info strong, .stx-page .stx-scorer-info span { white-space: normal; overflow-wrap: anywhere; }
.stx-page .stx-overview-card strong { white-space: normal; }
.stx-page .stx-empty-panel a { color: var(--stx-gold); text-decoration: underline; }
.stx-page .stx-rank-badge.is-podium .stx-rank { color: #281505; }
.stx-page .stx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767.98px) {
    .stx-page .stx-table-wrap { overflow-x: auto; padding: 0; }
    .stx-page .stx-table { display: table; min-width: 890px; }
    .stx-page .stx-table thead { display: table-header-group; }
    .stx-page .stx-table tbody { display: table-row-group; }
    .stx-page .stx-table tr { display: table-row; background: transparent; }
    .stx-page .stx-table th, .stx-page .stx-table td { display: table-cell; padding: 12px 8px; border-bottom: 1px solid var(--stx-line); }
    .stx-page .stx-table td::before { display: none; }
    .stx-page .stx-table th:first-child, .stx-page .stx-table td:first-child { position: sticky; right: 0; width: 48px; min-width: 48px; z-index: 3; background: #180708; }
    .stx-page .stx-table th:nth-child(2), .stx-page .stx-table td:nth-child(2) { position: sticky; right: 48px; width: 170px; min-width: 170px; max-width: 170px; z-index: 3; background: #180708; box-shadow: -5px 0 7px rgba(0,0,0,.15); }
    .stx-page .stx-table tr.is-merrikh td:first-child, .stx-page .stx-table tr.is-merrikh td:nth-child(2) { background: #392019; }
    .stx-page .stx-table thead th:first-child, .stx-page .stx-table thead th:nth-child(2) { z-index: 4; }
    .stx-page .stx-team-logo { width: 32px; height: 32px; border-radius: 10px; }
    .stx-page .stx-team-link { gap: 7px; }
    .stx-page .stx-team-text strong { font-size: .75rem; }
    .stx-page .stx-team-text small { font-size: .6rem; }
    .stx-page .stx-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stx-page .stx-overview-card { padding: 13px; min-height: 112px; }
    .stx-page .stx-feature { min-height: 100px; grid-template-columns: 64px 1fr; gap: 5px 14px; padding: 16px; text-align: start; justify-items: start; border-radius: 18px; }
    .stx-page .stx-feature .stx-logo { grid-column: 1; grid-row: 1 / 4; width: 64px; height: 64px; border-radius: 18px; align-self: center; }
    .stx-page .stx-feature-label, .stx-page .stx-feature strong, .stx-page .stx-feature small { grid-column: 2; }
    .stx-page .stx-title { font-size: clamp(1.65rem, 7.3vw, 2rem); }
    .stx-page .stx-hero { gap: 16px; }
    .stx-page .stx-top-scorer { min-height: 240px; }
    .stx-page .stx-team-text strong { white-space: normal; overflow-wrap: anywhere; }
}
@media print {
    body.standings-page { background: white; }
    .stx-page { color: black; width: 100%; padding: 0; }
    .stx-page .stx-filters, .stx-page .stx-refresh-row, .stx-page .stx-league-strip, .stx-page .stx-pagination { display: none; }
    .stx-page .stx-panel, .stx-page .stx-hero, .stx-page .stx-overview-card { background: white; color: black; box-shadow: none; border-color: #aaa; }
    .stx-page .stx-table { min-width: 0; font-size: 9pt; }
    .stx-page .stx-table-wrap { overflow: visible; }
    .stx-page .stx-table tr { break-inside: avoid; }
    .stx-page .stx-table th, .stx-page .stx-table td, .stx-page .stx-team-text strong, .stx-page .stx-title, .stx-page .stx-title span, .stx-page .stx-panel-head h2 { color: black; background: white; }
}

.stx-page .stx-table-wrap {
    max-inline-size: 100%;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 48px;
}
.stx-page .stx-filters,
.stx-page .stx-filter-grid,
.stx-page .stx-layout,
.stx-page .stx-panel {
    min-inline-size: 0;
}
.stx-page .stx-field :where(input, select),
.stx-page .stx-filter-grid > * {
    min-inline-size: 0;
    max-inline-size: 100%;
}
.stx-page .stx-pagination,
.stx-page .stx-season-meta {
    flex-wrap: wrap;
}
.stx-page :where(.stx-team-text strong, .stx-title, .stx-subtitle) {
    overflow-wrap: anywhere;
}
@media (max-width: 430px) {
    .stx-page .stx-hero {
        padding-inline: 16px;
    }
    .stx-page .stx-table-wrap {
        scroll-snap-type: none;
    }
}
