﻿.sp-match-page {
    --match-primary: #0f766e;
    --match-primary-hover: #0b5f59;
    --match-soft-primary: #ecfdf5;
    --match-ink: #132033;
    --match-muted: #6d7a89;
    --match-line: #e4eaf0;
    --match-soft: #f5f7fa;
    background: #f2f5f8;
    color: var(--match-ink);
    padding-bottom: 42px;
}

.sp-match-page,
.sp-match-page *,
.sp-match-container {
    box-sizing: border-box;
}

.sp-match-container {
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
    max-width: 100%;
}

.sp-match-empty {
    margin: 40px 0;
    padding: 36px;
    border: 1px solid var(--match-line);
    background: #fff;
    text-align: center;
    color: var(--match-muted);
}

.sp-match-hero {
    position: relative;
    padding: 22px 0 24px;
    background: #101b2a;
    overflow: hidden;
}

.sp-match-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(15, 118, 110, .18), transparent 42%),
        radial-gradient(circle at 85% 16%, rgba(20, 184, 166, .16), transparent 30%);
    pointer-events: none;
}

.sp-match-crumb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #b7c2d0;
    font-size: 12px;
}

.sp-match-crumb a,
.sp-match-crumb span {
    color: #b7c2d0;
}

.sp-match-crumb span::before {
    content: "/";
    margin-right: 8px;
    color: #5f6e80;
}

.sp-scoreboard {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

.sp-team-panel,
.sp-score-core {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}

.sp-team-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.sp-team-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sp-team-logo {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    padding: 12px;
}

.sp-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-team-link strong {
    min-width: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-team-panel p {
    margin: 14px 0 0;
    color: #c9d3df;
    font-size: 13px;
    line-height: 1.7;
}

.sp-score-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 28px;
    text-align: center;
    background: rgba(255, 255, 255, .09);
}

.sp-match-league {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #dce5ee;
    font-size: 12px;
    font-weight: 850;
}

.sp-score-core h1 {
    margin: 12px 0 8px;
    max-width: 100%;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 950;
}

.sp-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 6px 0 10px;
}

.sp-score-row b {
    min-width: 76px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 70px;
    line-height: 1;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.sp-score-row span {
    color: rgba(255, 255, 255, .42);
    font-size: 42px;
    font-weight: 950;
}

.sp-status-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 13px;
}

.sp-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    background: #eef2f7;
    color: #334155;
    font-weight: 900;
}

.sp-status-pill.is-live {
    background: #0f766e;
    color: #fff;
}

.sp-status-pill.is-done {
    background: #243246;
    color: #d9e2ec;
}

.sp-status-pill.is-cancel {
    background: #64748b;
    color: #fff;
}

.sp-hero-actions {
    margin-top: 18px;
}

.sp-match-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-top: 18px;
}

.layout-main {
    flex: 1;
    min-width: 0;
}

.layout-side {
    width: 320px;
    flex: 0 0 auto;
}

.sp-match-card {
    margin-bottom: 14px;
    border: 1px solid var(--match-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.sp-section-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid #edf1f5;
}

.sp-section-head h2 {
    position: relative;
    margin: 0;
    padding-left: 10px;
    color: #172033;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 950;
}

.sp-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 3px;
    height: 18px;
    background: var(--match-primary);
}

.sp-section-head span {
    color: var(--match-primary);
    font-size: 10px;
    font-weight: 900;
}

.sp-live-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 16px;
}

.sp-live-body p {
    margin: 0;
    color: #465466;
    font-size: 14px;
    line-height: 1.8;
}

.jzt-live-btn.sp-match-live-primary {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 999px;
    border: 1px solid var(--match-primary);
    background: var(--match-primary);
    color: #fff !important;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
}

.jzt-live-btn.sp-match-live-primary:hover {
    transform: translateY(-1px);
    background: #0b5f59;
    color: #fff !important;
}

.sp-live-lines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 2px;
}

.jzt-live-btn.sp-match-live-line {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--match-primary);
    border-radius: 5px;
    background: #fff;
    color: var(--match-primary) !important;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.jzt-live-btn.sp-match-live-line i {
    color: currentColor;
    font-size: 16px;
}

.jzt-live-btn.sp-match-live-line span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jzt-live-btn.sp-match-live-line:hover {
    background: var(--match-primary);
    color: #fff !important;
}

.sp-live-empty {
    display: block;
    padding: 14px;
    border: 1px dashed var(--match-line);
    color: var(--match-muted);
    text-align: center;
    font-size: 13px;
}

.sp-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #edf1f5;
}

.sp-info-grid div {
    min-width: 0;
    padding: 16px;
    background: #fff;
}

.sp-info-grid span {
    display: block;
    margin-bottom: 7px;
    color: #7a8795;
    font-size: 12px;
}

.sp-info-grid strong {
    display: block;
    color: #172033;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-info-grid.is-score strong {
    color: var(--match-primary);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

.sp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-quarter-table,
.sp-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    text-align: center;
}

.sp-quarter-table th,
.sp-history-table th {
    padding: 12px 10px;
    background: #f8fafc;
    color: #7a8795;
    font-size: 12px;
    font-weight: 850;
}

.sp-quarter-table td,
.sp-history-table td {
    padding: 13px 10px;
    border-top: 1px solid #edf1f5;
    color: #2d3848;
    font-size: 13px;
}

.sp-quarter-table td:first-child,
.sp-history-table td:nth-child(2),
.sp-history-table td:nth-child(4) {
    font-weight: 900;
}

.sp-quarter-table td:last-child,
.sp-history-table b {
    color: var(--match-primary);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.sp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sp-form-list {
    padding: 10px 14px 14px;
}

.sp-form-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px dashed #e8edf3;
    color: #384456;
    font-size: 12px;
}

.sp-form-row:last-child {
    border-bottom: 0;
}

.sp-form-row span:not(.sp-result-badge) {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-form-row span:nth-child(2) {
    text-align: right;
}

.sp-form-row b {
    color: #172033;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.sp-result-badge {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.sp-result-badge.is-win {
    background: #0f9f7a;
}

.sp-result-badge.is-draw {
    background: #94a3b8;
}

.sp-result-badge.is-lose {
    background: #ef4444;
}

.sp-article-body {
    padding: 18px 18px 20px;
    color: #3f4b5d;
    font-size: 15px;
    line-height: 1.9;
}

.sp-article-body p {
    margin: 0 0 13px;
}

.sp-article-body p:last-child {
    margin-bottom: 0;
}

.sp-related-list {
    padding: 4px 14px 12px;
}

.sp-related-list a {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 24px 28px 24px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px dashed #e8edf3;
    color: #334155;
    font-size: 13px;
}

.sp-related-list a:last-child {
    border-bottom: 0;
}

.sp-related-list time {
    color: #7a8795;
    font-size: 12px;
}

.sp-related-list span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-related-list span:nth-child(2) {
    text-align: right;
}

.sp-related-list img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sp-related-list b {
    color: #a0a8b3;
    text-align: center;
    font-size: 11px;
}

.sp-topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.sp-topic-cloud a {
    max-width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid #e4eaf0;
    border-radius: 4px;
    background: #f8fafc;
    color: #445163;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-topic-cloud a:hover {
    border-color: var(--match-primary);
    background: #ecfdf5;
    color: #0b5f59;
}

@media (max-width: 992px) {
    .sp-scoreboard {
        grid-template-columns: 1fr;
    }

    .sp-score-core {
        order: -1;
    }

    .sp-match-layout {
        flex-direction: column;
    }

    .layout-side {
        width: 100%;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sp-match-container {
        width: calc(100% - 20px);
        padding: 0;
    }

    .sp-match-hero {
        padding: 10px 0 12px;
    }

    .sp-match-crumb {
        overflow-x: auto;
        white-space: nowrap;
    }

    .sp-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .sp-score-core {
        grid-column: 1 / -1;
        order: -1;
    }

    .sp-team-panel {
        padding: 12px 8px;
        text-align: center;
    }

    .sp-team-logo {
        width: 46px;
        height: 46px;
        padding: 8px;
    }

    .sp-team-link {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .sp-team-link strong {
        width: 100%;
        font-size: 15px;
        text-align: center;
    }

    .sp-team-panel p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.55;
    }

    .sp-score-core {
        padding: 15px 12px;
    }

    .sp-score-core h1 {
        font-size: 18px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sp-score-row b {
        min-width: 44px;
        font-size: 42px;
    }

    .sp-score-row span {
        font-size: 24px;
    }

    .sp-status-line {
        flex-wrap: wrap;
    }

    .sp-match-layout {
        margin-top: 10px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .sp-match-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .sp-section-head {
        min-height: 44px;
        padding: 0 12px;
    }

    .sp-section-head h2 {
        min-width: 0;
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sp-live-body {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 12px;
    }

    .jzt-live-btn.sp-match-live-primary {
        width: 100%;
    }

    .sp-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-info-grid div {
        padding: 12px;
    }

    .sp-info-grid strong {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        line-height: 1.45;
    }

    .sp-live-lines {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .jzt-live-btn.sp-match-live-line {
        min-height: 42px;
        width: 100%;
    }

    .sp-quarter-table,
    .sp-history-table {
        min-width: 0;
        table-layout: fixed;
    }

    .sp-quarter-table th,
    .sp-history-table th,
    .sp-quarter-table td,
    .sp-history-table td {
        padding: 10px 5px;
        font-size: 12px;
        word-break: break-word;
    }

    .sp-quarter-table td:last-child,
    .sp-history-table b {
        font-size: 14px;
    }

    .sp-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sp-form-list {
        padding: 8px 10px 10px;
    }

    .sp-related-list {
        padding: 4px 10px 10px;
    }

    .sp-related-list a {
        grid-template-columns: 54px minmax(0, 1fr) 18px 20px 18px minmax(0, 1fr);
        gap: 5px;
        font-size: 12px;
    }

    .sp-related-list img {
        width: 20px;
        height: 20px;
    }

    .sp-article-body,
    .sp-topic-cloud {
        padding: 14px 12px;
    }
}

@media (max-width: 420px) {
    .sp-match-container {
        width: calc(100% - 16px);
    }

    .sp-match-crumb {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .sp-score-core h1 {
        margin: 9px 0 6px;
        font-size: 17px;
    }

    .sp-score-row {
        gap: 10px;
        margin: 4px 0 8px;
    }

    .sp-score-row b {
        min-width: 38px;
        font-size: 38px;
    }

    .sp-status-line {
        gap: 6px;
        font-size: 12px;
    }

    .sp-hero-actions {
        margin-top: 12px;
    }

    .sp-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sp-info-grid strong {
        font-size: 13px;
    }
}


