.sp-teams-page {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    padding-bottom: 40px;
}

.sp-teams-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-gradient-teams-hero);
    box-shadow: var(--sp-shadow-soft);
}

.sp-teams-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    pointer-events: none;
}

.sp-teams-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-accent-alpha-08);
    color: var(--sp-accent-text);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-button);
}

.sp-teams-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: var(--sp-fs-teams-title);
    line-height: .95;
    letter-spacing: -.065em;
}

.sp-teams-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--sp-text-soft);
    font-size: var(--sp-fs-body);
}

.sp-teams-filter {
    position: sticky;
    top: calc(var(--sp-header-height) + 12px);
    z-index: 20;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;

    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-glass-dark-78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--sp-shadow-soft);

    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.sp-teams-filter::-webkit-scrollbar {
    display: none;
}

.sp-teams-filter__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: var(--sp-filter-button-min-height);
    padding: var(--sp-filter-button-padding);
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-045);
    color: var(--sp-text-soft);
    font-weight: var(--sp-fw-heavy);
    line-height: 1;
    white-space: nowrap;
    transition:
        transform var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast),
        color var(--sp-transition-fast);
}

.sp-teams-filter__button:hover {
    transform: translateY(-1px);
    border-color: var(--sp-card-border-hover);
    background: var(--sp-white-075);
    color: var(--sp-text);
}

.sp-teams-filter__button.is-active {
    border-color: transparent;
    background: var(--sp-gradient-accent);
    color: var(--sp-accent-contrast);
    box-shadow: var(--sp-shadow-filter-active);
}

.sp-teams-sections {
    display: grid;
    gap: clamp(30px, 4vw, 52px);
}

.sp-teams-league {
    display: grid;
    gap: 18px;
}

.sp-teams-league[hidden] {
    display: none !important;
}

.sp-teams-league__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sp-card-border);
}

.sp-teams-league__label {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--sp-accent);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-black);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sp-teams-league h2 {
    margin: 0;
    font-size: var(--sp-fs-teams-section-title);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.sp-teams-league__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-045);
    color: var(--sp-muted);
    font-weight: var(--sp-fw-black);
}

.sp-teams-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sp-teams-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: var(--sp-team-card-min-height);
    padding: 18px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-gradient-team-card);
    box-shadow: var(--sp-shadow-soft);
    transition:
        transform var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-teams-card:hover {
    transform: translateY(-3px);
    border-color: var(--sp-card-border-hover);
    background: var(--sp-gradient-team-card-hover);
}

.sp-teams-card__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-cookie);
    background: var(--sp-white-055);
}

.sp-teams-card__logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.sp-teams-card__logo.sp-team-logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: var(--sp-radius-card-small);
    background: var(--sp-gradient-accent);
    color: var(--sp-accent-contrast);
    font-weight: var(--sp-fw-black);
}

.sp-teams-card__body {
    min-width: 0;
}

.sp-teams-card__title {
    margin: 0;
    color: var(--sp-text);
    font-size: var(--sp-fs-team-card-title);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.sp-teams-card__meta {
    display: block;
    margin-top: 7px;
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-medium);
}

.sp-teams-card__arena {
    display: block;
    margin-top: 4px;
    color: var(--sp-muted-2);
    font-size: var(--sp-fs-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-teams-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    color: var(--sp-accent);
    background: var(--sp-white-04);
    font-weight: var(--sp-fw-black);
    transition:
        transform var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-teams-card:hover .sp-teams-card__arrow {
    transform: translateX(2px);
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-08);
}

@media (max-width: 1024px) {
    .sp-teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sp-teams-page {
        gap: 24px;
    }

    .sp-teams-hero {
        padding: 26px 20px;
    }

    .sp-teams-filter {
        top: calc(var(--sp-header-height) + 8px);
        border-radius: var(--sp-radius-mobile);
        margin-inline: -4px;
    }

    .sp-teams-filter__button {
        flex: 0 0 auto;
    }

    .sp-teams-grid {
        grid-template-columns: 1fr;
    }

    .sp-teams-league__head {
        align-items: start;
    }

    .sp-teams-card {
        min-height: var(--sp-team-card-mobile-min-height);
        padding: 16px;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sp-teams-card__arrow {
        display: none;
    }

    .sp-teams-card__logo-wrap {
        width: 58px;
        height: 58px;
        border-radius: var(--sp-radius-map-popup);
    }

    .sp-teams-card__logo {
        width: 48px;
        height: 48px;
    }
}








.sp-teams-map-section {
    display: grid;
    gap: 18px;
    padding-top: clamp(8px, 2vw, 20px);
}

.sp-teams-map-section[hidden] {
    display: none !important;
}

.sp-teams-map-section__head {
    display: grid;
    gap: 8px;
    max-width: 820px;
}

.sp-teams-map-section__head h2 {
    margin: 0;
    font-size: var(--sp-fs-map-title);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.sp-teams-map-section__head p {
    margin: 0;
    color: var(--sp-text-soft);
    font-size: var(--sp-fs-base);
    line-height: 1.65;
}

.sp-teams-map-wrap {
    position: relative;
    overflow: hidden;
    min-height: var(--sp-map-min-height);
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-gradient-map-wrap);
    box-shadow: var(--sp-shadow-soft);
}

.sp-teams-map {
    width: 100%;
    height: calc(var(--sp-map-min-height) + 40px);
    min-height: var(--sp-map-min-height);
    background: var(--sp-surface-map);
}

.sp-teams-map-empty {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 500;
    padding: 14px 16px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-card-small);
    background: var(--sp-glass-dark-88);
    color: var(--sp-text-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--sp-shadow-soft);
}

.sp-teams-map-empty[hidden] {
    display: none !important;
}

/* Leaflet внутри тёмного дизайна */

.sp-teams-map .leaflet-control-zoom {
    overflow: hidden;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-map-control);
    background: var(--sp-glass-dark-84);
    box-shadow: var(--sp-shadow-map-control);
}

.sp-teams-map .leaflet-control-zoom a {
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--sp-glass-dark-92);
    color: var(--sp-white);
    line-height: 38px;
}

.sp-teams-map .leaflet-control-zoom a:hover {
    background: var(--sp-accent-alpha-18);
    color: var(--sp-white);
}

.sp-teams-map .leaflet-control-attribution {
    border-radius: var(--sp-radius-control) 0 0 0;
    background: var(--sp-glass-dark-72);
    color: var(--sp-white-70);
    font-size: var(--sp-fs-xxs);
}

.sp-teams-map .leaflet-control-attribution a {
    color: var(--sp-accent);
}

.sp-teams-map .leaflet-popup-content-wrapper {
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-map-popup);
    background: var(--sp-glass-dark-96);
    color: var(--sp-text);
    box-shadow: var(--sp-shadow-popup);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sp-teams-map .leaflet-popup-content {
    margin: 16px;
}

.sp-teams-map .leaflet-popup-tip {
    background: var(--sp-glass-dark-96);
}

.sp-teams-map .leaflet-popup-close-button {
    top: 8px;
    right: 8px;
    color: var(--sp-white-72);
}

.sp-teams-map .leaflet-popup-close-button:hover {
    color: var(--sp-white);
}

/* Маркер */

.sp-team-map-marker {
    background: transparent;
    border: 0;
}

.sp-team-map-marker__pin {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--sp-card-border);
    border-radius: var(--sp-radius-marker);
    background: var(--sp-gradient-accent);
    box-shadow: var(--sp-shadow-marker);
    transform: rotate(-45deg);
}

.sp-team-map-marker__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: var(--sp-radius-pill);
    background: var(--sp-accent-contrast);
    transform: translate(-50%, -50%);
}

.sp-team-map-marker--logo {
    background: transparent;
    border: 0;
}

.sp-team-map-marker__logo-pin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--sp-card-border);
    border-radius: 18px;
    background: var(--sp-glass-dark-92);
    box-shadow: var(--sp-shadow-marker);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sp-team-map-marker__logo-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    border-right: 2px solid var(--sp-card-border);
    border-bottom: 2px solid var(--sp-card-border);
    background: var(--sp-glass-dark-92);
    transform: translateX(-50%) rotate(45deg);
}

.sp-team-map-marker__logo-pin img {
    position: relative;
    z-index: 2;
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.sp-team-map-popup {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.sp-team-map-popup__title {
    padding-right: 18px;
    font-size: var(--sp-fs-map-popup-title);
    font-weight: var(--sp-fw-black);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.sp-team-map-popup__meta {
    color: var(--sp-accent);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-button);
}

.sp-team-map-popup__row {
    color: var(--sp-text-soft);
    font-size: var(--sp-fs-xs);
    line-height: 1.45;
}

.sp-team-map-popup__row strong {
    color: var(--sp-text);
}

.sp-team-map-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.sp-team-map-popup__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--sp-popup-button-min-height);
    padding: var(--sp-popup-button-padding);
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-accent-alpha-09);
    color: var(--sp-accent-text);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-button);
}

.sp-team-map-popup__actions a:hover {
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-16);
    color: var(--sp-white);
}

/* Когда нажата кнопка Карта */

.sp-teams-page.is-map-only .sp-teams-map-section {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .sp-teams-map-wrap {
        min-height: var(--sp-map-tablet-min-height);
    }

    .sp-teams-map {
        height: calc(var(--sp-map-tablet-min-height) + 20px);
        min-height: var(--sp-map-tablet-min-height);
    }
}

@media (max-width: 767px) {
    .sp-teams-map-wrap {
        min-height: var(--sp-map-mobile-min-height);
        border-radius: var(--sp-radius-mobile);
    }

    .sp-teams-map {
        height: calc(var(--sp-map-mobile-min-height) + 20px);
        min-height: var(--sp-map-mobile-min-height);
    }

    .sp-teams-map-section__head p {
        font-size: var(--sp-fs-mobile-body);
    }

    .sp-teams-map-empty {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: var(--sp-fs-sm);
    }
}












/* Ссылки на автоматические страницы лиг */
.sp-teams-hero__eyebrow a,
.sp-teams-league__label--link,
.sp-teams-league__title-link {
    color: inherit;
    text-decoration: none;
}

.sp-teams-hero__eyebrow a:hover,
.sp-teams-league__label--link:hover,
.sp-teams-league__title-link:hover {
    color: var(--sp-accent);
}

.sp-teams-league__title-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color var(--sp-transition-fast);
}

.sp-teams-league__title-link::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    color: var(--sp-accent);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-black);
    transition:
        transform var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-teams-league__title-link:hover::after {
    transform: translateX(2px);
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-08);
}

.sp-teams-page--league .sp-teams-hero__eyebrow,
.sp-matches-page--league .sp-teams-hero__eyebrow {
    gap: 8px;
}

.sp-teams-filter--links .sp-teams-filter__button {
    text-decoration: none;
}

.sp-teams-filter--links .sp-teams-filter__button[aria-current="page"] {
    border-color: transparent;
    background: var(--sp-gradient-accent);
    color: var(--sp-accent-contrast);
    box-shadow: var(--sp-shadow-filter-active);
}

.sp-teams-league--single,
.sp-matches-league--single {
    margin-top: 4px;
}

.sp-season-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 14px 0 24px;
    padding: 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-white-035);
}

.sp-season-filter__label {
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-season-filter__select {
    min-height: 44px;
    min-width: min(320px, 100%);
    padding: 0 42px 0 14px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-bg-soft);
    color: var(--sp-text);
    font: inherit;
    font-weight: var(--sp-fw-bold);
    outline: none;
}

.sp-season-filter__select:focus {
    border-color: var(--sp-card-border-hover);
    box-shadow: 0 0 0 3px var(--sp-accent-alpha-14);
}

.sp-matches-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sp-matches-page .sp-team-match-card {
    width: 100%;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

.sp-matches-archive-note {
    margin-top: -8px;
}

.sp-matches-league__meta {
    margin: 6px 0 0;
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-matches-date-groups {
    display: grid;
    gap: 24px;
}

.sp-matches-date-group {
    display: grid;
    gap: 12px;
}

.sp-matches-date-heading {
    margin: 0;
    color: var(--sp-text);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: var(--sp-fw-black);
    letter-spacing: -.02em;
}


@media (max-width: 1100px) {
    .sp-matches-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sp-matches-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .sp-teams-league__title-link {
        align-items: flex-start;
    }

    .sp-teams-league__title-link::after {
        width: 28px;
        height: 28px;
        flex: 0 0 auto;
    }
}




.sp-matches-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 24px;
}

.sp-matches-filter-form .sp-season-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-white-035);
}

.sp-matches-filter-form .sp-season-filter__label {
    flex: 0 0 auto;
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-matches-filter-form .sp-season-filter__select {
    flex: 1 1 220px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-bg-soft);
    color: var(--sp-text);
    font: inherit;
    font-weight: var(--sp-fw-bold);
    outline: none;
}

.sp-matches-filter-form .sp-season-filter__select:focus {
    border-color: var(--sp-card-border-hover);
    box-shadow: 0 0 0 3px var(--sp-accent-alpha-14);
}

.sp-matches-filter-form noscript {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .sp-matches-filter-form {
        grid-template-columns: 1fr;
    }

    .sp-matches-filter-form .sp-season-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-matches-filter-form .sp-season-filter__select {
        flex-basis: auto;
        width: 100%;
    }
}










.sp-tournaments-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sp-tournament-card {
    min-width: 0;
}

.sp-tournament-card__link {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background:
        radial-gradient(circle at 20% 0%, var(--sp-accent-alpha-14), transparent 34%),
        var(--sp-white-035);
    color: var(--sp-text);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sp-tournament-card__link:hover {
    transform: translateY(-2px);
    border-color: var(--sp-card-border-hover);
    background:
        radial-gradient(circle at 20% 0%, var(--sp-accent-alpha-18), transparent 38%),
        var(--sp-white-05);
}

.sp-tournament-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp-tournament-card h2 {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.08;
}

.sp-tournament-card__meta {
    color: var(--sp-accent);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-tournament-card__text {
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    line-height: 1.55;
}

.sp-tournament-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.sp-tournament-card__stats span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-bg-soft);
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
}

.sp-tournament-card__stats strong {
    color: var(--sp-text);
    font-size: 20px;
    line-height: 1;
}

.sp-tournament-card__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 2px;
    border-radius: var(--sp-radius-pill);
    background: var(--sp-accent);
    color: var(--sp-on-accent);
    font-weight: var(--sp-fw-bold);
}

.sp-tournament-summary {
    display: grid;
    gap: 16px;
    margin: 22px 0;
}

.sp-tournament-summary__main {
    display: block;
    padding: 18px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-white-035);
}

.sp-tournament-summary__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--sp-radius-md);
}

.sp-tournament-description {
    color: var(--sp-muted);
    line-height: 1.65;
}

.sp-tournament-description p:first-child {
    margin-top: 0;
}

.sp-tournament-description p:last-child {
    margin-bottom: 0;
}

.sp-tournament-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
}

.sp-tournament-facts div,
.sp-tournament-stats div {
    padding: 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-bg-soft);
}

.sp-tournament-facts dt {
    margin: 0 0 4px;
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp-tournament-facts dd {
    margin: 0;
    color: var(--sp-text);
    font-weight: var(--sp-fw-bold);
}

.sp-tournament-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sp-tournament-stats strong {
    display: block;
    color: var(--sp-text);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1;
}

.sp-tournament-stats span {
    display: block;
    margin-top: 5px;
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-tournament-teams,
.sp-tournament-matches {
    margin-top: 22px;
}

.sp-tournament-teams__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.sp-tournament-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-white-035);
    color: var(--sp-text);
    text-decoration: none;
}

.sp-tournament-team:hover {
    border-color: var(--sp-card-border-hover);
}

.sp-tournament-team__logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    border-radius: 50%;
}

.sp-tournament-team span {
    min-width: 0;
    overflow: hidden;
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .sp-tournaments-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-tournaments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-tournament-summary__main {
        grid-template-columns: 1fr;
    }

    .sp-tournament-facts,
    .sp-tournament-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-tournament-teams__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sp-tournaments-filter-form,
    .sp-tournaments-grid,
    .sp-tournament-facts,
    .sp-tournament-stats,
    .sp-tournament-teams__grid {
        grid-template-columns: 1fr;
    }

    .sp-tournament-card__stats {
        grid-template-columns: 1fr;
    }

    .sp-tournament-summary__main {
        padding: 14px;
    }
}






@media (max-width: 1100px) {
    .sp-tournament-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sp-tournament-facts {
        grid-template-columns: 1fr;
    }
}





/* Турниры: приводим карточки к общему стилю сайта */
.sp-tournament-card__link {
    border-color: var(--sp-card-border);
    background:
        radial-gradient(320px 150px at 10% 0%, var(--sp-accent-2-alpha-09), transparent 62%),
        var(--sp-gradient-card);
    box-shadow: var(--sp-shadow-soft);
}

.sp-tournament-card__link:hover {
    transform: translateY(-3px);
    border-color: var(--sp-card-border-hover);
    background:
        radial-gradient(340px 170px at 10% 0%, var(--sp-accent-alpha-12), transparent 64%),
        var(--sp-gradient-card-hover);
}

/* Кнопка "Открыть турнир" — в стиле кнопок на главной в блоке лиг */
.sp-tournament-card__more {
    display: inline-flex;
    width: fit-content;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 8px 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    color: var(--sp-text-soft);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition:
        transform var(--sp-transition-fast),
        color var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-tournament-card__link:hover .sp-tournament-card__more {
    transform: translateY(-1px);
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-08);
    color: var(--sp-accent);
}

/* Карточки клубов на странице конкретного турнира */
.sp-tournament-team {
    border-color: var(--sp-card-border);
    background:
        radial-gradient(260px 120px at 10% 0%, var(--sp-accent-2-alpha-09), transparent 62%),
        var(--sp-gradient-card);
    box-shadow: var(--sp-shadow-soft);
    transition:
        transform var(--sp-transition-fast),
        color var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-tournament-team:hover {
    transform: translateY(-2px);
    border-color: var(--sp-card-border-hover);
    background:
        radial-gradient(280px 140px at 10% 0%, var(--sp-accent-alpha-12), transparent 64%),
        var(--sp-gradient-card-hover);
    color: var(--sp-accent);
}

.sp-tournament-team__logo {
    background: var(--sp-white-04);
}





/* Лиги: общая страница и страница конкретной лиги */
.sp-leagues-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

.sp-leagues-stats div {
    padding: 16px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background:
        radial-gradient(260px 120px at 10% 0%, var(--sp-accent-2-alpha-09), transparent 62%),
        var(--sp-gradient-card);
    box-shadow: var(--sp-shadow-soft);
}

.sp-leagues-stats strong {
    display: block;
    color: var(--sp-text);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
}

.sp-leagues-stats span {
    display: block;
    margin-top: 6px;
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-leagues-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sp-league-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background:
        radial-gradient(320px 150px at 10% 0%, var(--sp-accent-2-alpha-09), transparent 62%),
        var(--sp-gradient-card);
    box-shadow: var(--sp-shadow-soft);
    overflow: hidden;
    transition:
        transform var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-league-card:hover {
    transform: translateY(-3px);
    border-color: var(--sp-card-border-hover);
    background:
        radial-gradient(340px 170px at 10% 0%, var(--sp-accent-alpha-12), transparent 64%),
        var(--sp-gradient-card-hover);
}

.sp-league-card__main {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    color: var(--sp-text);
    text-decoration: none;
}

.sp-league-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-bg-soft);
}

.sp-league-card__image {
    display: block;
    max-width: 68px;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sp-league-card__mark {
    color: var(--sp-accent);
    font-size: 34px;
    font-weight: var(--sp-fw-black);
    line-height: 1;
}

.sp-league-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sp-league-card__eyebrow {
    color: var(--sp-accent);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sp-league-card__title {
    color: var(--sp-text);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: var(--sp-fw-black);
    line-height: 1.08;
}

.sp-league-card__text {
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    line-height: 1.5;
}

.sp-league-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 18px 18px;
}

.sp-league-card__stats span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-bg-soft);
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
}

.sp-league-card__stats strong {
    color: var(--sp-text);
    font-size: 20px;
    line-height: 1;
}

.sp-league-card__links,
.sp-league-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-league-card__links {
    margin-top: auto;
    padding: 0 18px 18px;
}

.sp-league-card__links a,
.sp-league-quick-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    color: var(--sp-text-soft);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition:
        transform var(--sp-transition-fast),
        color var(--sp-transition-fast),
        border-color var(--sp-transition-fast),
        background var(--sp-transition-fast);
}

.sp-league-card__links a:hover,
.sp-league-quick-links a:hover {
    transform: translateY(-1px);
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-08);
    color: var(--sp-accent);
}

.sp-league-quick-links {
    margin: 14px 0 18px;
}

.sp-league-description {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-white-035);
    color: var(--sp-muted);
    line-height: 1.65;
}

.sp-league-description p:first-child {
    margin-top: 0;
}

.sp-league-description p:last-child {
    margin-bottom: 0;
}

.sp-league-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sp-league-tournament-card .sp-tournament-card__link h3 {
    margin: 0;
    color: var(--sp-text);
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.08;
}

.sp-league-teams-section,
.sp-league-matches-section,
.sp-league-tournaments-section {
    margin-top: 24px;
}

.sp-league-season-filter {
    grid-template-columns: minmax(0, 1fr);
}

.sp-league-matches-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .sp-leagues-grid,
    .sp-league-tournaments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-leagues-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sp-leagues-grid,
    .sp-league-tournaments-grid,
    .sp-leagues-stats,
    .sp-league-matches-filter {
        grid-template-columns: 1fr;
    }

    .sp-league-card__main {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .sp-league-card__media {
        width: 64px;
        height: 64px;
    }

    .sp-league-card__image {
        max-width: 52px;
        max-height: 52px;
    }

    .sp-league-card__stats {
        grid-template-columns: 1fr;
        padding: 0 14px 14px;
    }

    .sp-league-card__links {
        padding: 0 14px 14px;
    }

    .sp-league-quick-links {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .sp-league-quick-links::-webkit-scrollbar {
        display: none;
    }
}



.sp-tournament-standings,
.sp-tournament-playoff {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 22px;
}

.sp-standings-guide {
    margin: 12px 0 14px;
    padding: 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-white-035);
}

.sp-standings-guide summary {
    cursor: pointer;
    color: var(--sp-text);
    font-size: var(--sp-fs-sm);
    font-weight: var(--sp-fw-bold);
}

.sp-standings-guide__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.sp-standings-guide__grid div {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-sm);
    background: var(--sp-bg-soft);
}

.sp-standings-guide__grid strong {
    color: var(--sp-accent);
    font-weight: var(--sp-fw-black);
}

.sp-standings-guide__grid span {
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
}

.sp-standings-tabs,
.sp-playoff-stage-nav {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 12px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-standings-tabs::-webkit-scrollbar,
.sp-playoff-stage-nav::-webkit-scrollbar {
    display: none;
}

.sp-standings-tabs__button,
.sp-playoff-stage-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    color: var(--sp-text-soft);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    white-space: nowrap;
    text-decoration: none;
}

.sp-standings-tabs__button:hover,
.sp-standings-tabs__button.is-active,
.sp-playoff-stage-nav a:hover {
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-08);
    color: var(--sp-accent);
}

.sp-standings-block,
.sp-playoff-round {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    scroll-margin-top: 96px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-gradient-card);
    box-shadow: var(--sp-shadow-soft);
}

.sp-standings-block__title,
.sp-playoff-round__title {
    margin: 0;
    color: var(--sp-text);
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.15;
}

.sp-standings-block__hint,
.sp-playoff-intro {
    margin: 8px 0 14px;
    color: var(--sp-muted);
    font-size: var(--sp-fs-sm);
    line-height: 1.5;
}

.sp-standings-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-bg-soft);
    -webkit-overflow-scrolling: touch;
}

.sp-standings-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
}

.sp-standings-table th,
.sp-standings-table td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--sp-card-border);
    color: var(--sp-text);
    font-size: var(--sp-fs-sm);
    text-align: center;
    vertical-align: middle;
}

.sp-standings-table th {
    position: relative;
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: help;
}

.sp-standings-table th[title] {
    text-decoration: underline dotted var(--sp-accent-alpha-34);
    text-underline-offset: 4px;
}

.sp-standings-table tbody tr:hover {
    background: var(--sp-white-04);
}

.sp-standings-table__num {
    color: var(--sp-muted);
    font-weight: var(--sp-fw-bold);
}

.sp-standings-table__team {
    min-width: 230px;
    text-align: left !important;
}

.sp-standings-table__team a,
.sp-standings-table__team > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--sp-text);
    text-decoration: none;
}

.sp-standings-table__team a:hover {
    color: var(--sp-accent);
}

.sp-standings-table__logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}

.sp-standings-table__team span span,
.sp-standings-table__team a span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-standings-table__team em {
    color: var(--sp-accent);
    font-size: var(--sp-fs-xs);
    font-style: normal;
    font-weight: var(--sp-fw-bold);
}

.sp-playoff-round__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sp-playoff-round__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--sp-accent);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sp-playoff-round__count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
    white-space: nowrap;
}

.sp-playoff-series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sp-playoff-series {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-lg);
    background: var(--sp-gradient-card);
    box-shadow: var(--sp-shadow-soft);
}

.sp-playoff-series__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sp-card-border);
}

.sp-playoff-series__teams {
    display: grid;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
}

.sp-playoff-series__team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--sp-muted);
    font-weight: var(--sp-fw-bold);
}

.sp-playoff-series__team a,
.sp-playoff-series__team span {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-playoff-series__team a:hover {
    color: var(--sp-accent);
}

.sp-playoff-series__team.is-winner {
    color: var(--sp-text);
}

.sp-playoff-series__team strong {
    color: var(--sp-text);
}

.sp-playoff-series__score {
    display: grid;
    place-items: center;
    min-width: 70px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-accent-alpha-08);
    color: var(--sp-accent);
}

.sp-playoff-series__score span {
    color: var(--sp-muted);
    font-size: var(--sp-fs-xxs, 11px);
    font-weight: var(--sp-fw-bold);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sp-playoff-series__score strong {
    color: var(--sp-accent);
    font-size: 18px;
    font-weight: var(--sp-fw-black);
}

.sp-playoff-series__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.sp-playoff-series__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-pill);
    background: var(--sp-white-04);
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
}

.sp-playoff-series__meta strong {
    margin-left: 4px;
    color: var(--sp-text);
}

.sp-playoff-games {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.sp-playoff-game {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 74px auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--sp-card-border);
    border-radius: var(--sp-radius-md);
    background: var(--sp-bg-soft);
    color: var(--sp-text);
    text-decoration: none;
}

.sp-playoff-game:hover {
    border-color: var(--sp-card-border-hover);
    background: var(--sp-accent-alpha-08);
}

.sp-playoff-game--disabled {
    opacity: .65;
}

.sp-playoff-game__num {
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    font-weight: var(--sp-fw-bold);
}

.sp-playoff-game__teams {
    min-width: 0;
    overflow: hidden;
    font-size: var(--sp-fs-sm);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-playoff-game__date {
    color: var(--sp-muted);
    font-size: var(--sp-fs-xs);
    text-align: right;
    white-space: nowrap;
}

.sp-playoff-game strong {
    font-weight: var(--sp-fw-black);
    white-space: nowrap;
}

.sp-playoff-game em {
    margin-left: 4px;
    color: var(--sp-accent);
    font-size: var(--sp-fs-xs);
    font-style: normal;
}

@media (max-width: 1100px) {
    .sp-playoff-series-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .sp-standings-guide__grid {
        grid-template-columns: 1fr;
    }

    .sp-standings-block,
    .sp-playoff-round,
    .sp-playoff-series {
        padding: 12px;
    }

    .sp-standings-table-wrap {
        width: calc(100% + 24px);
        max-width: calc(100% + 24px);
        margin-right: -12px;
        margin-left: -12px;
        overflow-x: auto;
        overflow-y: visible;
        border: 1px solid var(--sp-card-border);
        border-radius: var(--sp-radius-md);
        background: var(--sp-bg-soft);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .sp-standings-table {
        display: table;
        width: max-content;
        min-width: 920px;
        border-collapse: separate;
        border-spacing: 0;
    }

    .sp-standings-table thead {
        display: table-header-group;
    }

    .sp-standings-table tbody {
        display: table-row-group;
    }

    .sp-standings-table tr {
        display: table-row;
    }

    .sp-standings-table th,
    .sp-standings-table td {
        display: table-cell;
        width: auto;
        padding: 9px 8px;
        border-bottom: 1px solid var(--sp-card-border);
        font-size: 13px;
        line-height: 1.25;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
    }

    .sp-standings-table td::before {
        content: none !important;
    }

    .sp-standings-table th:first-child,
    .sp-standings-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 4;
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        background: var(--sp-bg-soft);
    }

    .sp-standings-table th:nth-child(2),
    .sp-standings-table td:nth-child(2) {
        position: sticky;
        left: 42px;
        z-index: 4;
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        background: var(--sp-bg-soft);
        box-shadow: 10px 0 18px rgba(0, 0, 0, .24);
    }

    .sp-standings-table thead th:first-child,
    .sp-standings-table thead th:nth-child(2) {
        z-index: 6;
    }

    .sp-standings-table__team {
        text-align: left !important;
    }

    .sp-standings-table__team a,
    .sp-standings-table__team > span {
        max-width: 170px;
        gap: 7px;
    }

    .sp-standings-table__logo {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .sp-standings-table__team strong {
        display: block;
        max-width: 130px;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sp-standings-table__team em {
        display: block;
        max-width: 130px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sp-playoff-round__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-playoff-series__head {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-playoff-series__score {
        width: 100%;
    }

    .sp-playoff-game {
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
    }

    .sp-playoff-game__num {
        grid-column: 1 / 2;
    }

    .sp-playoff-game__date {
        grid-column: 2 / 3;
    }

    .sp-playoff-game__teams {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .sp-playoff-game strong {
        grid-column: 1 / -1;
        justify-self: start;
    }
}




/* Компактный блок информации о турнире на мобильных */
@media (max-width: 767px) {
    .sp-tournament-summary {
        gap: 10px;
        margin: 14px 0;
    }

    .sp-tournament-summary__main {
        padding: 12px;
    }

    .sp-tournament-description {
        margin-bottom: 10px;
        font-size: var(--sp-fs-sm);
        line-height: 1.45;
    }

    .sp-tournament-facts {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px;
        max-width: 100%;
        margin: 0;
        padding-bottom: 2px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sp-tournament-facts::-webkit-scrollbar {
        display: none;
    }

    .sp-tournament-facts div {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 6px;
        min-height: 34px;
        padding: 7px 10px;
        border-radius: var(--sp-radius-pill);
        white-space: nowrap;
    }

    .sp-tournament-facts dt {
        margin: 0;
        font-size: 10px;
        line-height: 1;
    }

    .sp-tournament-facts dd {
        margin: 0;
        font-size: 12px;
        line-height: 1;
    }

    .sp-tournament-stats {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 7px;
    }

    .sp-tournament-stats div {
        padding: 8px 5px;
        text-align: center;
        border-radius: var(--sp-radius-md);
    }

    .sp-tournament-stats strong {
        font-size: 19px;
        line-height: 1;
    }

    .sp-tournament-stats span {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.15;
    }
}
/* =========================================================
   ShaibaPRO: fix mobile overflow on tournament pages
   Added after inspecting theme 0906-2.
   Keeps tournament tables as horizontal-scroll tables on phones,
   without cutting the right edge of the block.
   ========================================================= */
@media (max-width: 767px) {
    .sp-tournament-single-page,
    .sp-tournament-single-page * {
        box-sizing: border-box;
    }

    .sp-tournament-single-page {
        max-width: 100%;
        overflow-x: clip;
    }

    .sp-tournament-summary,
    .sp-tournament-summary__main,
    .sp-tournament-summary__content,
    .sp-tournament-standings,
    .sp-tournament-playoff,
    .sp-standings-block,
    .sp-playoff-round,
    .sp-playoff-series {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .sp-tournament-summary__main,
    .sp-standings-block,
    .sp-playoff-round,
    .sp-playoff-series {
        overflow: hidden;
    }

    .sp-tournament-facts,
    .sp-standings-tabs,
    .sp-playoff-stage-nav {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .sp-tournament-facts div {
        max-width: 82vw;
    }

    .sp-tournament-facts dd {
        max-width: 62vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sp-tournament-stats {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .sp-tournament-stats div {
        min-width: 0;
    }

    .sp-standings-table-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-right: 0;
        margin-left: 0;
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid var(--sp-card-border);
        border-radius: var(--sp-radius-md);
        background: var(--sp-bg-soft);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .sp-standings-table {
        width: max-content;
        min-width: 820px;
        max-width: none;
    }

    .sp-standings-table th,
    .sp-standings-table td {
        padding: 8px 7px;
    }

    .sp-standings-table th:first-child,
    .sp-standings-table td:first-child {
        left: 0;
        width: 38px;
        min-width: 38px;
        max-width: 38px;
    }

    .sp-standings-table th:nth-child(2),
    .sp-standings-table td:nth-child(2) {
        left: 38px;
        width: 158px;
        min-width: 158px;
        max-width: 158px;
        box-shadow: 8px 0 14px rgba(0, 0, 0, .22);
    }

    .sp-standings-table__team a,
    .sp-standings-table__team > span {
        max-width: 148px;
    }

    .sp-standings-table__team strong,
    .sp-standings-table__team em {
        max-width: 108px;
    }

    .sp-playoff-games,
    .sp-playoff-game,
    .sp-playoff-game__teams {
        min-width: 0;
        max-width: 100%;
    }
}

/* =========================================================
   ShaibaPRO: финальная очистка визуальных блоков турнира
   ========================================================= */
.sp-tournament-summary__main,
.sp-standings-block {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sp-tournament-summary__main {
    margin: 0 !important;
}

.sp-standings-block {
    margin-top: 22px !important;
}

.sp-standings-block__title {
    margin: 0 0 12px !important;
}

@media (max-width: 767px) {
    .sp-tournament-summary__main,
    .sp-standings-block {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .sp-standings-block {
        margin-top: 18px !important;
    }
}

/* =========================================================
   ShaibaPRO: фильтры матчей и турниров в одну строку
   ========================================================= */
.sp-matches-filter-form,
.sp-tournaments-filter-form {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-template-columns: none !important;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 14px 0 24px;
}

.sp-matches-filter-form .sp-season-filter,
.sp-tournaments-filter-form .sp-season-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.sp-matches-filter-form .sp-season-filter__label,
.sp-tournaments-filter-form .sp-season-filter__label {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sp-matches-filter-form .sp-season-filter__select,
.sp-tournaments-filter-form .sp-season-filter__select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

/* =========================================================
   ShaibaPRO: статистика карточки турнира всегда в одну строку
   ========================================================= */
.sp-tournament-card__stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
}

.sp-tournament-card__stats span {
    min-width: 0;
}

@media (max-width: 767px) {
    .sp-matches-filter-form,
    .sp-tournaments-filter-form {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(0, 1fr) !important;
        grid-template-columns: none !important;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 8px 0 14px;
    }

    .sp-matches-filter-form .sp-season-filter,
    .sp-tournaments-filter-form .sp-season-filter {
        display: block !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .sp-matches-filter-form .sp-season-filter__label,
    .sp-tournaments-filter-form .sp-season-filter__label {
        display: none !important;
    }

    .sp-matches-filter-form .sp-season-filter__select,
    .sp-tournaments-filter-form .sp-season-filter__select {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 36px;
        padding: 0 24px 0 8px;
        border-radius: var(--sp-radius-pill);
        font-size: 13px;
        line-height: 1.1;
        font-weight: var(--sp-fw-bold);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .sp-tournament-card__stats {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px;
    }

    .sp-tournament-card__stats span {
        min-width: 0;
        padding: 7px 4px;
        border-radius: var(--sp-radius-sm);
        text-align: center;
    }

    .sp-tournament-card__stats strong {
        font-size: 17px;
        line-height: 1;
    }

    .sp-tournament-card__stats span {
        font-size: 10px;
        line-height: 1.12;
    }
}

/* =========================================================
   Touch devices: prevent sticky hover transforms after tap
   ========================================================= */
@media (hover:none), (pointer:coarse) {
    .sp-teams-filter__button:hover,
    .sp-teams-card:hover,
    .sp-tournament-card__link:hover,
    .sp-tournament-card__link:hover .sp-tournament-card__more,
    .sp-tournament-team:hover,
    .sp-league-card:hover,
    .sp-league-card__links a:hover,
    .sp-league-quick-links a:hover {
        transform: none;
    }
}
