.json-live-page {
    --json-mobile-compare-col: 32px;
}

.json-compare-col,
.json-compare-cell {
    width: 46px;
    min-width: 46px;
    text-align: center;
}

.json-compare-button,
.json-watch-button,
.json-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background-color: #FFFFFF;
    color: var(--mr-black);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.json-compare-button svg,
.json-watch-button svg,
.json-share-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.json-watch-button svg {
    fill: none;
}

.json-share-button svg {
    fill: none;
}

.json-compare-button:hover,
.json-compare-button.is-selected {
    transform: translateY(-1px);
    border-color: #C2410C;
    background-color: #FFF7ED;
    color: #C2410C;
    box-shadow: 0 10px 20px rgba(194, 65, 12, 0.14);
}

.json-watch-button:hover,
.json-watch-button.is-selected {
    transform: translateY(-1px);
    border-color: #E11D48;
    background-color: #FFF1F2;
    color: #E11D48;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.14);
}

.json-watch-button.is-selected svg {
    fill: currentColor;
}

.json-share-button:hover {
    transform: translateY(-1px);
    border-color: var(--mr-yellow);
    background-color: var(--mr-yellow);
    color: var(--mr-black);
    box-shadow: 0 10px 20px rgba(251, 209, 6, 0.28);
}

.json-detail-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.json-detail-actions .json-compare-button,
.json-detail-actions .json-watch-button,
.json-detail-actions .json-share-button {
    width: 42px;
    height: 42px;
}

.json-detail-actions .json-compare-button svg,
.json-detail-actions .json-watch-button svg,
.json-detail-actions .json-share-button svg {
    width: 21px;
    height: 21px;
}

.json-share-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1520;
    background-color: rgba(15, 23, 42, 0.42);
}

.json-share-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1521;
    width: min(460px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--mr-border-soft);
    border-radius: 16px;
    background-color: #F9FAFB;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
    transform: translate(-50%, -50%);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.json-share-panel,
.json-share-panel * {
    box-sizing: border-box;
}

.json-share-backdrop[hidden],
.json-share-panel[hidden] {
    display: none;
}

.json-share-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.json-share-eyebrow {
    margin-bottom: 4px;
    color: var(--mr-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.json-share-head h2 {
    margin: 0;
    color: var(--mr-black);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
}

.json-share-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background-color: #FFFFFF;
    color: var(--mr-black);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.json-share-rider {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--mr-yellow);
    border-radius: 10px;
    background-color: #FFFFFF;
    color: var(--mr-black);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.json-share-url {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    text-overflow: ellipsis;
}

.json-share-url:focus {
    outline: none;
    border-color: var(--mr-yellow);
    box-shadow: 0 0 0 0.15rem var(--mr-yellow-soft);
}

.json-share-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    min-width: 0;
}

.json-share-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--mr-black);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.json-share-option:hover,
.json-share-close:hover {
    border-color: var(--mr-yellow);
    background-color: #FFFBEB;
    color: var(--mr-black);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(251, 209, 6, 0.18);
}

.json-share-option:focus-visible,
.json-share-close:focus-visible {
    outline: 2px solid var(--mr-yellow);
    outline-offset: 2px;
}

.json-share-option.is-native {
    grid-column: 1 / -1;
    border-color: var(--mr-yellow);
    background-color: var(--mr-yellow);
    color: var(--mr-black);
    box-shadow: 0 12px 28px rgba(251, 209, 6, 0.24);
}

.json-share-option.is-native:hover {
    background-color: var(--mr-yellow-strong);
    color: var(--mr-black);
}

.json-share-status {
    min-height: 18px;
    margin-top: 10px;
    color: #15803D;
    font-size: 0.82rem;
    font-weight: 800;
}

@media (max-width: 520px) {
    .json-share-panel {
        top: auto;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        transform: translateX(-50%);
    }

    .json-share-options {
        grid-template-columns: 1fr;
    }
}

.json-compare-tray {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1505;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(780px, calc(100vw - 28px));
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    background-color: #FFFFFF;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
    transform: translateX(-50%);
}

.json-compare-tray[hidden],
.json-compare-modal[hidden] {
    display: none;
}

.json-compare-picks {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.json-compare-pick {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 8px;
    background-color: #F1F5F9;
    color: var(--mr-black);
    font-size: 12px;
    font-weight: 800;
}

.json-compare-tray-action,
.json-compare-tray-clear {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.json-compare-tray-action {
    padding: 8px 12px;
    background-color: var(--mr-black);
    color: #FFFFFF;
}

.json-compare-tray-action:disabled {
    opacity: 0.45;
    cursor: default;
}

.json-compare-tray-clear {
    width: 34px;
    height: 34px;
    background-color: transparent;
    color: #64748B;
    font-size: 1.35rem;
    line-height: 1;
}

.json-compare-modal {
    position: fixed;
    inset: 0;
    z-index: 1510;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background-color: rgba(15, 23, 42, 0.56);
}

.json-compare-dialog {
    width: min(980px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    border-radius: 18px;
    background-color: #FFFFFF;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32);
}

.json-compare-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.json-compare-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    font-weight: 900;
    color: var(--mr-black);
}

.json-compare-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background-color: #FFFFFF;
    color: var(--mr-black);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.json-compare-body {
    padding: 18px 20px 22px;
}

.json-compare-riders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.json-compare-rider-card {
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background-color: #F8FAFC;
}

.json-compare-rider-card strong {
    display: block;
    color: var(--mr-black);
    font-size: 1.02rem;
    line-height: 1.2;
}

.json-compare-rider-card span {
    display: block;
    margin-top: 4px;
    color: #64748B;
    font-size: 12px;
    font-weight: 700;
}

.json-compare-section + .json-compare-section {
    margin-top: 18px;
}

.json-compare-section-title {
    margin: 0 0 8px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.json-compare-table {
    width: 100%;
    border-collapse: collapse;
}

.json-compare-table th,
.json-compare-table td {
    padding: 9px 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: middle;
}

.json-compare-table th {
    width: 25%;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
}

.json-compare-table td {
    color: var(--mr-black);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.json-compare-table td small {
    display: block;
    margin-top: 2px;
    color: #64748B;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.json-compare-table .json-compare-diff {
    width: 92px;
    color: #64748B;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.json-compare-table .is-faster {
    color: #15803D;
}

.json-compare-table .is-slower {
    color: #B42318;
}

@media (max-width: 768px) {
    .json-live-page:not(.json-live-series-page) .json-live-table .json-compare-col,
    .json-live-page:not(.json-live-series-page) .json-live-table td.json-compare-cell {
        width: var(--json-mobile-compare-col);
        min-width: var(--json-mobile-compare-col);
        padding-left: 0;
        padding-right: 0;
    }

    .json-compare-button {
        width: 28px;
        height: 28px;
    }

    .json-compare-button svg {
        width: 16px;
        height: 16px;
    }

    .json-compare-tray {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        transform: none;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 10px;
    }

    .json-compare-picks {
        min-width: 0;
    }

    .json-compare-pick {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .json-compare-tray-action {
        flex: 1 0 100%;
        width: 100%;
        min-height: 34px;
    }

    .json-compare-dialog {
        max-height: 92vh;
        border-radius: 14px;
    }

    .json-compare-riders {
        grid-template-columns: 1fr;
    }

    .json-compare-table th,
    .json-compare-table td {
        padding: 7px 5px;
        font-size: 12px;
    }

    .json-compare-table .json-compare-diff {
        width: 54px;
        font-size: 11px;
    }
}

@media (max-width: 430px) {
    .json-live-page {
        --json-mobile-compare-col: 28px;
    }

    .json-compare-button {
        width: 26px;
        height: 26px;
    }

    .json-compare-button svg {
        width: 15px;
        height: 15px;
    }
}
