/* ==========================================================================
   Nitro Simracing - Tournament Standings
   ========================================================================== */

.tor-standings--v2 {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 17, 8, 0.18), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(30, 76, 168, 0.24), transparent 28%),
        linear-gradient(155deg, rgba(8, 13, 24, 0.96), rgba(10, 16, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 56px rgba(0, 0, 0, 0.42);
}

.tor-standings--v2::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
    opacity: 0.95;
}

.tor-standings-header {
    display: grid;
    gap: 8px;
}

.tor-standings-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    width: fit-content;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(209, 17, 8, 0.28);
    background: rgba(209, 17, 8, 0.12);
    color: #ffb7b2;
    font: 800 0.78rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tor-standings-title {
    margin: 0;
    color: #f7fbff;
    font: 800 clamp(1.7rem, 2.6vw, 2.35rem)/0.96 "Akshar", var(--sn-font-sans, system-ui);
    text-transform: uppercase;
}

.tor-standings-subtitle {
    max-width: 760px;
    margin: 0;
    color: rgba(221, 231, 247, 0.72);
    font: 500 1rem/1.45 var(--sn-font-sans, system-ui);
}

.tor-standings--v2 [data-sn-tabs="standings"] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tor-standings--v2 [data-sn-tabs="standings"] .sn-tab {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #dfe8f8;
    font: 800 0.94rem/1 var(--sn-font-sans, system-ui);
}

.tor-standings--v2 [data-sn-tabs="standings"] .sn-tab.on,
.tor-standings--v2 [data-sn-tabs="standings"] .sn-tab.active {
    border-color: rgba(209, 17, 8, 0.4);
    background: linear-gradient(180deg, rgba(209, 17, 8, 0.2), rgba(209, 17, 8, 0.12));
    color: #fff;
    box-shadow: 0 8px 20px rgba(209, 17, 8, 0.16);
}

.tor-standings--v2 .tor-standings-content {
    margin-top: 0;
}

.tor-standings--v2 .tor-std-table-wrap {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        linear-gradient(155deg, rgba(11, 17, 30, 0.98), rgba(15, 22, 38, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 18px 34px rgba(0, 0, 0, 0.22);
}

.tor-standings--v2 .tor-std-dim {
    padding: 18px;
}

.tor-standings--v2 .tor-std-dim + .tor-std-dim {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tor-standings--v2 .tor-std-dim-title {
    margin: 0 0 14px;
    padding-bottom: 0;
    border-bottom: 0;
}

.tor-standings--v2 .tor-std-dim-title span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: #dfe8f8;
}

.tor-standings--v2 .tor-std-group-head {
    margin: 0 0 12px;
}

.tor-standings--v2 .tor-std-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(82, 21, 22, 0.72), rgba(56, 14, 15, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f8ff;
    font: 800 0.78rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tor-standings--v2 .tor-std-group-badge i {
    color: #ff5243;
}

.tor-standings--v2 .tor-std-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 0.9rem;
    border-radius: 18px;
    overflow: hidden;
}

.tor-standings--v2 .tor-std-table th,
.tor-standings--v2 .tor-std-table td {
    display: table-cell;
    vertical-align: middle;
}

.tor-standings--v2 .tor-std-table thead th {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 13, 24, 0.8);
    color: #aebdd6;
    font: 800 0.74rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.tor-standings--v2 .tor-std-table thead th:nth-child(2),
.tor-standings--v2 .tor-std-table thead th:nth-child(3) {
    text-align: left;
}

.tor-standings--v2 .tor-std-table tbody tr {
    transition: background 0.18s ease;
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(odd),
.tor-standings--v2 .tor-std-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.012);
}

.tor-standings--v2 .tor-std-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.028);
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(1) {
    background:
        linear-gradient(90deg, rgba(255, 208, 74, 0.08), transparent 22%),
        rgba(255, 255, 255, 0.018);
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(2) {
    background:
        linear-gradient(90deg, rgba(175, 189, 214, 0.08), transparent 22%),
        rgba(255, 255, 255, 0.015);
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(3) {
    background:
        linear-gradient(90deg, rgba(196, 124, 74, 0.09), transparent 22%),
        rgba(255, 255, 255, 0.015);
}

.tor-standings--v2 .tor-std-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #eef4ff;
    text-align: center;
}

.tor-standings--v2 .tor-std-table tbody tr:last-child td {
    border-bottom: 0;
}

.tor-standings--v2 .tor-std-pos {
    color: #f7fbff;
    font: 900 1.05rem/1 var(--sn-font-sans, system-ui);
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(1) .tor-std-pos {
    color: #ffd95c;
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(2) .tor-std-pos {
    color: #d7e1f0;
}

.tor-standings--v2 .tor-std-table tbody tr:nth-child(3) .tor-std-pos {
    color: #efb286;
}

.tor-standings--v2 .tor-td-num {
    color: #eef4ff;
    font: 800 0.95rem/1.1 var(--sn-font-sans, system-ui);
    font-variant-numeric: tabular-nums;
}

.tor-standings--v2 .tor-std-total {
    background: rgba(255, 255, 255, 0.04);
    color: #eef4ff;
    font-size: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.tor-standings--v2 .tor-std-penal {
    background: rgba(90, 18, 24, 0.44);
    color: #ffd2d7;
}

.tor-standings--v2 .tor-std-piloto,
.tor-standings--v2 .tor-std-car {
    display: table-cell !important;
    text-align: left;
    vertical-align: middle;
}

.tor-standings--v2 .tor-std-pilot-identity {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tor-standings--v2 .tor-std-avatar,
.tor-standings--v2 .tor-std-pilot-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.tor-standings--v2 .tor-std-pilot-meta {
    min-width: 0;
}

.tor-standings--v2 .tor-std-pilot-meta .sn-pilot-meta-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tor-standings--v2 .tor-std-pilot-meta .sn-pilot-link,
.tor-standings--v2 .tor-std-pilot-meta .sn-pilot-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 1.02rem;
}

.tor-standings--v2 .tor-std-pilot-meta .sn-pilot-link span,
.tor-standings--v2 .tor-std-pilot-meta .sn-pilot-label span {
    display: inline !important;
    max-width: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tor-standings--v2 .tor-std-pilot-identity .sn-pilot-team {
    margin-top: 4px;
}

.tor-standings--v2 .tor-std-car-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.tor-standings--v2 .tor-std-car-img {
    width: 56px;
    height: 34px;
    border-radius: 12px;
}

.tor-standings--v2 .tor-std-car-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
}

.tor-standings--v2 .tor-std-car-empty {
    color: rgba(223, 234, 248, 0.5);
    font: 700 0.85rem/1 var(--sn-font-sans, system-ui);
}

.tor-standings--v2 .tor-std-actions {
    text-align: right;
    white-space: nowrap;
}

.tor-standings--v2 .tor-std-actions .sn-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(209, 17, 8, 0.36);
    background: linear-gradient(180deg, #d5140b, #9a0904);
    color: #fff;
    font: 800 0.88rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.03em;
    box-shadow: 0 14px 28px rgba(140, 13, 7, 0.22);
}

.tor-standings--v2 .tor-std-actions .sn-btn:hover {
    background: linear-gradient(180deg, #e1190f, #aa0b05);
    border-color: rgba(255, 103, 79, 0.45);
    transform: translateY(-1px);
}

.tor-standings--v2 .tor-std-actions .sn-btn i {
    color: currentColor;
}

.tor-std-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.tor-std-modal {
    position: relative;
    width: min(1100px, 96vw);
    max-height: 86vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 17, 8, 0.16), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(30, 76, 168, 0.2), transparent 28%),
        linear-gradient(155deg, rgba(8, 13, 24, 0.96), rgba(10, 16, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.tor-std-overlay.force-center .tor-std-modal,
.tor-std-modal.force-center {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

.tor-std-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.028);
}

.tor-std-head h4 {
    margin: 0;
    color: #fff;
    font: 800 1.3rem/1 "Akshar", var(--sn-font-sans, system-ui);
    text-transform: uppercase;
}

.tor-std-sub {
    margin-top: 4px;
    color: rgba(221, 231, 247, 0.72);
    font-size: 0.82rem;
}

.tor-std-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(34, 40, 56, 0.96), rgba(22, 27, 40, 0.96));
    color: #fff;
}

.tor-std-body {
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tor-std-detail-wrap .tor-std-cardable {
    border-radius: 18px;
    overflow: hidden;
}

.tor-std-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
        linear-gradient(155deg, rgba(11, 17, 30, 0.98), rgba(15, 22, 38, 0.98));
}

.tor-std-detail-hero__pilot,
.tor-std-detail-hero__auto {
    min-width: 0;
}

.tor-std-detail-hero__auto {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tor-std-detail-hero .tor-std-car-identity {
    width: 100%;
    max-width: 260px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

.tor-std-detail-hero .tor-std-pilot-identity {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: 360px;
}

.tor-std-detail-hero .tor-std-avatar,
.tor-std-detail-hero .tor-std-pilot-avatar-wrap,
.tor-std-detail-hero .sn-pilot-identity__img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
    object-position: center top !important;
}

.tor-std-detail-hero .tor-std-car-media,
.tor-std-detail-hero .sn-car-identity__media {
    width: 58px !important;
    min-width: 58px !important;
    justify-content: center !important;
}

.tor-std-detail-hero .tor-std-car-img,
.tor-std-detail-hero .sn-car-identity__img {
    width: 58px !important;
    height: 36px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 14px !important;
    object-fit: contain !important;
}

.tor-std-detail-hero .tor-std-car-name,
.tor-std-detail-hero .sn-car-identity__name {
    font-size: 0.9rem !important;
    line-height: 1.15 !important;
}

.tor-std-mobile-list {
    display: none;
    gap: 14px;
}

.tor-std-mobile-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.008)),
        linear-gradient(155deg, rgba(11, 18, 32, 0.96), rgba(9, 15, 27, 0.98));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.tor-std-mobile-card__top {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.tor-std-mobile-card__label {
    color: rgba(174, 189, 214, 0.82);
    font: 800 0.68rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tor-std-mobile-card__pos-wrap {
    display: grid;
    gap: 4px;
}

.tor-std-mobile-card__pos {
    color: #f7fbff;
    font: 900 1.3rem/1 "Akshar", var(--sn-font-sans, system-ui);
}

.tor-std-mobile-card:nth-child(1) .tor-std-mobile-card__pos { color: #ffd95c; }
.tor-std-mobile-card:nth-child(2) .tor-std-mobile-card__pos { color: #d7e1f0; }
.tor-std-mobile-card:nth-child(3) .tor-std-mobile-card__pos { color: #efb286; }

.tor-std-mobile-card__pilot .tor-std-pilot-identity {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
}

.tor-std-mobile-card__pilot .tor-std-avatar,
.tor-std-mobile-card__pilot .tor-std-pilot-avatar-wrap {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
}

.tor-std-mobile-card__auto-block {
    display: grid;
    gap: 8px;
}

.tor-std-mobile-card__auto .tor-std-car-identity {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
}

.tor-std-mobile-card__auto .tor-std-car-img {
    width: 52px !important;
    height: 32px !important;
}

.tor-std-mobile-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tor-std-mobile-stat {
    display: grid;
    gap: 5px;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tor-std-mobile-stat span {
    color: rgba(174, 189, 214, 0.8);
    font: 800 0.68rem/1 var(--sn-font-sans, system-ui);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tor-std-mobile-stat strong {
    color: #eef4ff;
    font: 800 1rem/1 "Akshar", var(--sn-font-sans, system-ui);
}

.tor-std-mobile-stat--total {
    background: rgba(255, 255, 255, 0.05);
}

.tor-std-mobile-card__actions .sn-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border: 1px solid rgba(209, 17, 8, 0.36);
    background: linear-gradient(180deg, #d5140b, #9a0904);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(140, 13, 7, 0.22);
}

.tor-std-mobile-card__actions .sn-btn:hover,
.tor-std-mobile-card__actions .sn-btn:focus-visible {
    background: linear-gradient(180deg, #e1190f, #aa0b05);
    border-color: rgba(255, 103, 79, 0.45);
    color: #fff;
}

.tor-std-mobile-card__actions .sn-btn i {
    color: currentColor;
}

@media (max-width: 980px) {
    .tor-standings--v2 {
        padding: 18px;
    }

    .tor-standings--v2 .tor-std-table th,
    .tor-standings--v2 .tor-std-table td {
        padding: 12px 10px;
    }

    .tor-std-detail-hero {
        grid-template-columns: 1fr;
    }

    .tor-std-detail-hero__auto {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .tor-standings--v2 {
        padding: 16px;
        border-radius: 22px;
    }

    .tor-standings-title {
        font-size: 1.5rem;
    }

    .tor-standings-subtitle {
        font-size: 0.92rem;
    }

    .tor-standings--v2 .tor-std-table thead th:nth-child(3),
    .tor-standings--v2 .tor-std-table td:nth-child(3),
    .tor-standings--v2 .tor-std-table thead th:last-child,
    .tor-standings--v2 .tor-std-table td:last-child {
        display: none;
    }

    .tor-standings--v2 .tor-std-avatar,
    .tor-standings--v2 .tor-std-pilot-avatar-wrap {
        width: 38px;
        height: 38px;
    }

    .tor-standings--v2 .tor-std-pilot-meta .sn-pilot-link,
    .tor-standings--v2 .tor-std-pilot-meta .sn-pilot-label {
        font-size: 0.95rem;
    }

    .tor-std-body {
        padding: 14px;
    }

    .tor-std-detail-hero {
        padding: 14px;
        border-radius: 18px;
    }
}

@media (max-width: 760px) {
    .tor-standings--v2 {
        gap: 14px;
        padding: 14px;
        border-radius: 20px;
    }

    .tor-standings-header {
        gap: 6px;
    }

    .tor-standings-eyebrow {
        min-height: 28px;
        padding: 0 11px;
        font-size: 0.7rem;
    }

    .tor-standings-title {
        font-size: 1.32rem;
    }

    .tor-standings-subtitle,
    .sn-tz-note {
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .tor-standings--v2 [data-sn-tabs="standings"] {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .tor-standings--v2 [data-sn-tabs="standings"]::-webkit-scrollbar {
        display: none;
    }

    .tor-standings--v2 [data-sn-tabs="standings"] .sn-tab {
        min-height: 40px;
        padding: 0 14px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .tor-standings--v2 .tor-std-table-wrap {
        border-radius: 18px;
    }

    .tor-standings--v2 .tor-std-dim {
        padding: 14px;
    }

    .tor-std-detail-hero {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tor-std-detail-hero .tor-std-pilot-identity {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        max-width: 100%;
    }

    .tor-std-detail-hero .tor-std-avatar,
    .tor-std-detail-hero .tor-std-pilot-avatar-wrap,
    .tor-std-detail-hero .sn-pilot-identity__img {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        border-radius: 16px !important;
    }

    .tor-std-detail-hero .tor-std-car-identity {
        max-width: 100%;
    }

    .tor-std-mobile-card {
        padding: 12px;
        border-radius: 18px;
    }

    .tor-std-mobile-card__top {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
    }

    .tor-std-mobile-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tor-std-mobile-card__pilot .tor-std-pilot-identity {
        grid-template-columns: 38px minmax(0, 1fr) !important;
    }

    .tor-std-mobile-card__pilot .tor-std-avatar,
    .tor-std-mobile-card__pilot .tor-std-pilot-avatar-wrap {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }

    .tor-std-mobile-card__auto .tor-std-car-identity {
        grid-template-columns: 46px minmax(0, 1fr) !important;
    }

    .tor-std-mobile-card__auto .tor-std-car-img {
        width: 46px !important;
        height: 28px !important;
    }

    .tor-std-detail-inner [data-sn-table="standings-detail"] {
        font-size: 0.8rem;
    }

    .tor-std-detail-inner [data-sn-table="standings-detail"] thead th:nth-child(1),
    .tor-std-detail-inner [data-sn-table="standings-detail"] thead th:nth-child(2),
    .tor-std-detail-inner [data-sn-table="standings-detail"] tbody td:nth-child(1),
    .tor-std-detail-inner [data-sn-table="standings-detail"] tbody td:nth-child(2) {
        display: none;
    }
}

/* Final safeguard against legacy torneos.css loaded by other shortcodes */
html body .tor-standings.tor-standings--v2 {
    background:
        radial-gradient(circle at 0% 0%, rgba(209, 17, 8, 0.18), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(30, 76, 168, 0.24), transparent 28%),
        linear-gradient(155deg, rgba(8, 13, 24, 0.96), rgba(10, 16, 28, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 56px rgba(0, 0, 0, 0.42) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table-wrap {
    overflow: hidden !important;
    border-radius: 24px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
        linear-gradient(155deg, rgba(11, 17, 30, 0.98), rgba(15, 22, 38, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-dim-title {
    border-bottom: 0 !important;
    margin: 0 0 14px !important;
    padding-bottom: 0 !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-dim-title span {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #dfe8f8 !important;
    border-radius: 999px !important;
    padding: 0 12px !important;
    min-height: 32px !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-group-badge {
    background: linear-gradient(180deg, rgba(82, 21, 22, 0.72), rgba(56, 14, 15, 0.82)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    font-size: 0.9rem !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table thead th {
    background: rgba(8, 13, 24, 0.8) !important;
    color: #aebdd6 !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table tbody tr:nth-child(odd),
html body .tor-standings.tor-standings--v2 .tor-std-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.012) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table tbody tr:nth-child(1) {
    background:
        linear-gradient(90deg, rgba(255, 208, 74, 0.08), transparent 22%),
        rgba(255, 255, 255, 0.018) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table tbody tr:nth-child(2) {
    background:
        linear-gradient(90deg, rgba(175, 189, 214, 0.08), transparent 22%),
        rgba(255, 255, 255, 0.015) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-table tbody tr:nth-child(3) {
    background:
        linear-gradient(90deg, rgba(196, 124, 74, 0.09), transparent 22%),
        rgba(255, 255, 255, 0.015) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-piloto,
html body .tor-standings.tor-standings--v2 .tor-std-car {
    display: table-cell !important;
    text-align: left !important;
    vertical-align: middle !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-pilot-identity {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-avatar,
html body .tor-standings.tor-standings--v2 .tor-std-pilot-avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-total {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #eef4ff !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html body .tor-standings.tor-standings--v2 .tor-std-actions .sn-btn {
    border: 1px solid rgba(209, 17, 8, 0.36) !important;
    background: linear-gradient(180deg, #d5140b, #9a0904) !important;
    color: #fff !important;
    border-radius: 16px !important;
}

@media (max-width: 1024px) {
    html body .tor-standings.tor-standings--v2 .tor-std-table {
        display: none !important;
    }

    html body .tor-standings.tor-standings--v2 .tor-std-mobile-list {
        display: grid !important;
    }
}

@media (max-width: 760px) {

    html body .tor-std-detail-hero {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body .tor-std-detail-hero .tor-std-pilot-identity {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        max-width: 100% !important;
    }

    html body .tor-std-detail-hero .tor-std-avatar,
    html body .tor-std-detail-hero .tor-std-pilot-avatar-wrap,
    html body .tor-std-detail-hero .sn-pilot-identity__img {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
        border-radius: 16px !important;
    }

    html body .tor-std-detail-hero .tor-std-car-identity {
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
    .tor-std-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .tor-std-modal {
        width: min(100vw - 12px, 100%);
        max-height: 92vh;
        border-radius: 18px;
    }

    .tor-std-head {
        align-items: flex-start;
        padding: 14px;
    }

    .tor-std-head h4 {
        font-size: 1.05rem;
        line-height: 1.1;
    }

    .tor-std-body {
        padding: 14px;
    }
}
