.os-root,
.os-root * {
    box-sizing: border-box;
}

.os-readers {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
    color: inherit;
}

.os-readers-icon {
    width: 28px;
    height: 28px;
    flex: none;
}

.os-readers strong {
    color: var(--os-red);
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    margin-right: 4px;
}

.os-root {
    --os-red: #e10600;
    --os-red-dark: #9b0c12;
    --os-ink: #141414;
    --os-muted: #5e5e5e;
    --os-line: #e7e7e7;
    --os-paper: #fff;
    --os-oly: #fafafa;
    font-family: inherit;
    color: inherit;
    line-height: 1.35;
}

.os-card {
    background: transparent;
    border: 0;
    border-top: 3px solid var(--os-red);
    border-radius: 0;
    overflow: visible;
    margin: 0 0 22px;
    box-shadow: none;
    container-type: inline-size;
    container-name: oscard;
}

.os-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "pill title"
        "updated updated";
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    padding: 10px 0 8px;
    background: transparent;
    border-bottom: 0;
}

.os-card-head .os-sport-pill {
    grid-area: pill;
}

.os-card-head h3 {
    grid-area: title;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    min-width: 0;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.os-chip-when,
.os-match-meta {
    color: var(--os-muted);
    font-size: 12px;
}

.os-updated,
.os-empty-line {
    color: inherit;
    font-size: 12px;
}

.os-updated {
    opacity: 0.72;
}

.os-empty-line {
    margin: 0;
    padding: 16px;
}

.os-sport-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: var(--os-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.os-sport-football .os-sport-pill,
.os-sport-pill.os-sport-football { background: #0f7a32; }
.os-sport-basketball .os-sport-pill,
.os-sport-pill.os-sport-basketball { background: #c45500; }
.os-sport-volleyball .os-sport-pill,
.os-sport-pill.os-sport-volleyball { background: #1546a0; }

.os-card-body {
    padding: 4px 0 8px;
}

.os-group-title {
    margin: 12px 4px 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--os-red-dark);
}

.os-match {
    border: 1px solid var(--os-line);
    border-radius: 14px;
    padding: 12px;
    margin: 0 0 10px;
    background: #fff;
    color: #141414;
}

.os-match.os-features-oly {
    border-color: #e7e7e7;
    background: #fff;
    box-shadow: inset 3px 0 0 var(--os-red);
}

.os-status-live {
    border-color: var(--os-red);
    box-shadow: inset 3px 0 0 var(--os-red);
}

.os-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.os-comp {
    font-weight: 800;
    color: var(--os-red-dark);
    letter-spacing: 0.02em;
}

.os-match-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.os-side,
.os-side-away {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: left;
    padding: 4px 0;
}

.os-logo,
.os-team-cell img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #e7e7e7;
    padding: 4px;
}

.os-team,
.os-chip-side span,
.os-team-cell span {
    font-weight: 700;
    min-width: 0;
}

.os-team {
    display: block;
    overflow-wrap: break-word;
    line-height: 1.25;
}

.os-is-oly .os-team,
.os-is-oly span,
.os-oly-row .os-team-cell span {
    color: var(--os-red);
}

.os-scorebox {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-width: 0;
    margin: 6px 0;
    padding: 6px 0;
    border-top: 1px solid var(--os-line);
    border-bottom: 1px solid var(--os-line);
}

.os-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.os-score b {
    font-weight: 800;
}

.os-score span {
    color: #b9b1af;
    font-weight: 500;
}

.os-score-time {
    font-size: 1.05rem;
}

.os-countdown {
    margin-top: 0;
    font-size: 13px;
    color: var(--os-red);
    font-weight: 800;
    white-space: nowrap;
}

.os-badge {
    margin-left: auto;
    border-radius: 999px;
    padding: 2px 8px;
    background: #f4f1f0;
    color: #514e4c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.os-badge-live {
    background: var(--os-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.os-badge-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: os-pulse 1.2s infinite;
}

.os-badge-next {
    background: #111;
    color: #fff;
}

@keyframes os-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.35; }
    100% { opacity: 1; }
}

.os-table-wrap {
    overflow-x: auto;
    background: #fff;
    color: #141414;
    border: 1px solid var(--os-line);
    border-radius: 14px;
    padding: 4px 8px 8px;
}

.os-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.os-table th {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--os-muted);
    padding: 8px 6px;
    border-bottom: 1px solid var(--os-line);
}

.os-table th.os-team-col,
.os-table td.os-team-cell {
    text-align: left;
}

.os-table td {
    text-align: center;
    padding: 8px 6px;
    border-bottom: 1px solid var(--os-line);
    font-variant-numeric: tabular-nums;
}

.os-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-team-cell img {
    width: 28px;
    height: 28px;
    padding: 2px;
}

.os-pos {
    font-weight: 800;
    color: #8a8482;
}

.os-strong {
    font-weight: 800;
}

.os-oly-row {
    background: var(--os-oly);
    box-shadow: inset 3px 0 0 var(--os-red);
}

.os-oly-row td {
    border-bottom-color: var(--os-line);
}

.os-header {
    display: flex;
    gap: 8px;
    align-items: center;
    background: transparent;
    color: inherit;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    min-height: 48px;
    max-width: 100%;
    min-width: 0;
    box-shadow: none;
}

.os-header-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 0 4px 0 2px;
    border-right: 1px solid rgba(127, 127, 127, 0.35);
    padding-right: 8px;
}

.os-header-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.os-header-brand strong {
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
    color: var(--os-red);
    letter-spacing: 0.02em;
}

.os-header-arrow {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1c1c1c;
    border: 1px solid #ddd;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.os-header-arrow:hover {
    background: var(--os-red);
    color: #fff;
}

.os-header.os-can-prev .os-header-prev,
.os-header.os-can-next .os-header-next {
    display: inline-flex;
}

.os-header-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    flex: 1 1 auto;
    min-width: 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.os-header-track::-webkit-scrollbar {
    display: none;
}

.os-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    background: #fff;
    color: #141414;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    min-height: 36px;
}

.os-chip-live {
    background: #fff;
    border-color: var(--os-red);
}

.os-chip-tag {
    flex: none;
    border-radius: 999px;
    padding: 3px 8px;
    background: #3a3a3a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.os-chip-tag.os-sport-football { background: #0f7a32; }
.os-chip-tag.os-sport-basketball { background: #c45500; }
.os-chip-tag.os-sport-volleyball { background: #1546a0; }

.os-chip-when,
.os-chip-countdown {
    color: #6d6462;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.os-chip-countdown {
    background: var(--os-red);
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
}

.os-chip-side {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.os-chip-side img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 1px;
    flex: none;
}

.os-chip-side span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    white-space: nowrap;
}

.os-chip-score {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    flex: none;
}

.os-chip-score .os-score {
    font-size: 15px;
    gap: 3px;
    color: #141414;
}

.os-chip-score .os-score-time {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #141414;
    color: #fff;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.os-chip-score .os-score-time b {
    color: #fff;
    font-weight: 800;
}

.os-header .os-badge {
    margin-left: 0;
    padding: 1px 6px;
    font-size: 10px;
}

.os-chip-empty {
    display: flex;
    align-items: center;
    color: #6d6462;
    border-radius: 999px;
}

.os-updated {
    grid-area: updated;
    margin-left: 0;
    min-height: 16px;
    line-height: 16px;
    white-space: nowrap;
}

@container oscard (min-width: 560px) {
    .os-match-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .os-side,
    .os-side-away {
        padding: 0;
    }

    .os-side-away {
        flex-direction: row-reverse;
        text-align: right;
    }

    .os-scorebox {
        display: block;
        margin: 0;
        padding: 0 6px;
        border: 0;
        min-width: 88px;
    }

    .os-countdown {
        margin-top: 4px;
    }
}

.os-center {
    color: inherit;
}

.os-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.os-tab {
    border: 1px solid rgba(127, 127, 127, 0.45);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.os-tab.is-active {
    background: var(--os-red);
    border-color: var(--os-red);
    color: #fff;
}

.os-center-panel {
    background: #fff;
    color: #141414;
    border: 1px solid #e7e7e7;
    border-top: 3px solid var(--os-red);
    border-radius: 16px;
    padding: 12px;
}

.os-center-panel[hidden] {
    display: none;
}

.os-center-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #ececec;
}

.os-center-pos {
    min-width: 36px;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--os-red);
    font-variant-numeric: tabular-nums;
}

.os-center-rank img,
.os-center-team img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 50%;
    padding: 3px;
}

.os-center-rank-name {
    font-weight: 800;
    color: var(--os-red);
}

.os-center-rank em {
    margin-left: auto;
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.os-center-rank-meta,
.os-center-empty,
.os-center-rank-empty {
    margin: 0 0 8px;
    color: #5e5e5e;
    font-size: 12px;
    font-weight: 700;
}

.os-center-game + .os-center-game {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ececec;
}

.os-center-game header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5e5e5e;
}

.os-center-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.os-center-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.os-center-team img {
    width: 52px;
    height: 52px;
}

.os-center-team span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.os-center-mid {
    text-align: center;
    min-width: 88px;
}

.os-center-mid .os-score {
    font-size: 1.55rem;
}

.os-center-mid small,
.os-center-mid .os-countdown {
    display: block;
    margin-top: 2px;
    color: #5e5e5e;
    font-size: 12px;
    font-weight: 700;
}

.os-center-mid .os-countdown {
    color: var(--os-red);
}
