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

.os-root {
    --os-red: #e10600;
    --os-red-dark: #8e0d12;
    --os-ink: #161616;
    --os-muted: #6d6a67;
    --os-line: #f0e4e2;
    --os-paper: #fffdfb;
    --os-oly: #fff1f1;
    font-family: inherit;
    color: var(--os-ink);
    line-height: 1.35;
}

.os-card {
    background: var(--os-paper);
    border: 1px solid var(--os-line);
    border-radius: 18px;
    overflow: hidden;
    margin: 0 0 22px;
    box-shadow: 0 10px 30px rgba(120, 16, 16, 0.06);
}

.os-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background:
        linear-gradient(90deg, rgba(225, 6, 0, 0.12), transparent 42%),
        #fff;
    border-bottom: 1px solid var(--os-line);
}

.os-card-head h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    flex: 1;
}

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

.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: 8px 12px 14px;
}

.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;
}

.os-match.os-features-oly {
    border-color: #f3c1c1;
    background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.os-status-live {
    border-color: #f0a3a3;
    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-match-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

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

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

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

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

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

.os-scorebox {
    text-align: center;
    min-width: 92px;
}

.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: 4px;
    font-size: 12px;
    color: var(--os-red-dark);
    font-weight: 700;
}

.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;
}

.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 #f7f1f0;
    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: #f6d2d2;
}

.os-header {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #140607;
    color: #fff;
    border-radius: 10px;
    padding: 4px 6px;
    margin: 0;
    overflow: hidden;
    min-height: 40px;
    max-width: 100%;
    min-width: 0;
}

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

.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;
    white-space: nowrap;
}

.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: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

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

.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: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 3px 8px 3px 4px;
    min-height: 32px;
}

.os-chip-live {
    background: rgba(225, 6, 0, 0.28);
    border-color: rgba(255, 120, 120, 0.5);
}

.os-chip-tag {
    flex: none;
    border-radius: 999px;
    padding: 2px 6px;
    background: #3a3a3a;
    color: #fff;
    font-size: 10px;
    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: #d9c8c6;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.os-chip-countdown {
    color: #ffd2d2;
}

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

.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: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.os-chip-score .os-score,
.os-chip-score .os-score-time {
    font-size: 13px;
    gap: 3px;
    color: #fff;
}

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

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

@media (max-width: 720px) {
    .os-card-head {
        flex-wrap: wrap;
    }

    .os-updated {
        width: 100%;
    }

    .os-chip-side {
        max-width: 92px;
    }

    .os-match-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .os-side,
    .os-side-away {
        flex-direction: column;
        text-align: center;
    }

    .os-team {
        font-size: 14px;
    }
}
