[data-live-scores] {
    --lsw-green: #087a52;
    --lsw-green-dark: #075f42;
    --lsw-red: #d9343a;
    --lsw-ink: #17212b;
    --lsw-muted: #66727f;
    --lsw-line: #dfe5e8;
    --lsw-soft: #f4f7f6;
    color: var(--lsw-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

[data-live-scores] *,
[data-live-scores] *::before,
[data-live-scores] *::after {
    box-sizing: border-box;
}

.lsw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lsw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 18px;
    border-bottom: 2px solid var(--lsw-green);
}

.lsw-tabs {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--lsw-line);
    border-radius: 4px;
    overflow: hidden;
}

.lsw-tab {
    min-width: 76px;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-right: 1px solid var(--lsw-line);
    background: #fff;
    color: var(--lsw-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.lsw-tab:last-child {
    border-right: 0;
}

.lsw-tab:hover,
.lsw-tab:focus-visible {
    color: var(--lsw-green);
    background: var(--lsw-soft);
    outline: none;
}

.lsw-tab.is-active {
    color: #fff;
    background: var(--lsw-green);
}

.lsw-search {
    width: min(280px, 34vw);
}

.lsw-search input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfd7dc;
    border-radius: 4px;
    background: #fff;
    color: var(--lsw-ink);
    font-size: 14px;
}

.lsw-search input:focus {
    border-color: var(--lsw-green);
    outline: 2px solid rgba(8, 122, 82, 0.14);
}

.lsw-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--lsw-muted);
    font-size: 13px;
}

.lsw-status time {
    margin-left: auto;
}

.lsw-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #21a66d;
    box-shadow: 0 0 0 3px rgba(33, 166, 109, 0.14);
}

[data-live-scores].is-stale .lsw-status-dot {
    background: #d59224;
    box-shadow: 0 0 0 3px rgba(213, 146, 36, 0.14);
}

.lsw-table-head,
.lsw-match {
    display: grid;
    grid-template-columns: minmax(150px, 1.1fr) minmax(150px, 1fr) 94px minmax(150px, 1fr) 120px;
    align-items: center;
}

.lsw-table-head {
    min-height: 38px;
    padding: 0 16px;
    color: #74808b;
    background: var(--lsw-soft);
    border-bottom: 1px solid var(--lsw-line);
    font-size: 12px;
    font-weight: 600;
}

.lsw-table-head span:nth-child(2),
.lsw-table-head span:nth-child(4) {
    text-align: center;
}

.lsw-table-head span:nth-child(3),
.lsw-table-head span:nth-child(5) {
    text-align: center;
}

.lsw-day {
    margin: 0;
}

.lsw-day h2 {
    margin: 0;
    padding: 16px 14px 8px;
    color: #45515c;
    font-size: 14px;
    line-height: 1.4;
}

.lsw-match {
    min-height: 72px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--lsw-line);
    background: #fff;
}

.lsw-match:hover {
    background: #fbfdfc;
}

.lsw-match.is-live {
    background: #fffafa;
    box-shadow: inset 3px 0 0 var(--lsw-red);
}

.lsw-match.is-finished {
    color: #53606c;
}

.lsw-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    min-width: 0;
    padding-right: 16px;
}

.lsw-meta strong {
    overflow: hidden;
    color: #2b3742;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsw-meta time,
.lsw-meta span {
    color: var(--lsw-muted);
    font-size: 12px;
}

.lsw-meta span {
    grid-column: 1 / -1;
}

.lsw-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.lsw-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsw-team small {
    flex: 0 0 auto;
    color: #8b96a0;
    font-size: 11px;
    font-weight: 400;
}

.lsw-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.lsw-score strong {
    color: var(--lsw-ink);
    font-size: 19px;
    line-height: 1.2;
}

.lsw-match.is-live .lsw-score strong {
    color: var(--lsw-red);
}

.lsw-live-label {
    min-height: 14px;
    color: var(--lsw-red);
    font-size: 10px;
    font-weight: 700;
}

.lsw-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--lsw-muted);
    font-size: 12px;
}

.lsw-loading,
.lsw-empty {
    min-height: 180px;
    padding: 72px 20px;
    color: var(--lsw-muted);
    text-align: center;
}

@media (max-width: 760px) {
    .lsw-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .lsw-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .lsw-tab {
        min-width: 0;
        padding: 8px 4px;
        font-size: 13px;
    }

    .lsw-search {
        width: 100%;
    }

    .lsw-table-head {
        display: none;
    }

    .lsw-match {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
        grid-template-areas:
            "meta meta meta"
            "home score away"
            "stats stats stats";
        gap: 8px;
        min-height: 104px;
        padding: 11px 10px;
    }

    .lsw-meta {
        grid-area: meta;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        padding: 0;
    }

    .lsw-meta span {
        grid-column: auto;
    }

    .lsw-team-home {
        grid-area: home;
    }

    .lsw-team-away {
        grid-area: away;
    }

    .lsw-score {
        grid-area: score;
    }

    .lsw-stats {
        grid-area: stats;
        padding-top: 6px;
        border-top: 1px dashed #e1e6e8;
    }

    .lsw-team {
        align-items: center;
        flex-direction: column;
        gap: 2px;
        padding: 0;
        font-size: 14px;
    }

    .lsw-team span {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}
