@charset "utf-8";

:root {
    --sl-navy:#003b73;
    --sl-blue:#1268b3;
    --sl-border:#d7dee7;
    --sl-bg:#f4f6f8;
    --sl-text:#25313d;
    --sl-muted:#74808d;
}

* {
    box-sizing:border-box;
}

html,
body {
    width:100%;
    margin:0;
    padding:0;
    background:#fff;
    color:var(--sl-text);
    font-family:Arial,"Malgun Gothic","맑은 고딕",sans-serif;
    font-size:12px;
}

button,
input {
    font:inherit;
}

button {
    cursor:pointer;
}

.sl-score-shell {
    position:relative;
    width:100%;
    max-width:1100px;
    margin:0 auto;
    padding:0 0 30px;
}

.sl-score-header {
    position:relative;
    border:1px solid var(--sl-border);
    border-top:3px solid var(--sl-navy);
    background:#fff;
}

.sl-score-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:58px;
    padding:0 18px;
    border-bottom:1px solid var(--sl-border);
}

.sl-score-title strong {
    color:var(--sl-navy);
    font-size:18px;
}

.sl-score-title span {
    color:var(--sl-muted);
    font-size:11px;
}

.sl-score-actions {
    display:flex;
    align-items:stretch;
    overflow-x:auto;
    border-bottom:1px solid var(--sl-border);
    background:var(--sl-bg);
}

.sl-score-actions button {
    flex:0 0 auto;
    min-width:92px;
    height:40px;
    padding:0 14px;
    border:0;
    border-right:1px solid var(--sl-border);
    background:#fff;
    color:#4d5965;
}

.sl-score-actions button.is-active {
    background:var(--sl-navy);
    color:#fff;
    font-weight:700;
}

.sl-score-tools {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    min-height:42px;
    padding:6px 10px;
    background:var(--sl-navy);
    color:#fff;
}

.sl-score-tools button {
    height:30px;
    border:1px solid #6f8ba7;
    background:#174f82;
    color:#fff;
}

.sl-score-tools label {
    display:flex;
    align-items:center;
    gap:5px;
}

.sl-date-control {
    display:flex;
    align-items:center;
}

.sl-date-control input {
    width:140px;
    height:30px;
    border:1px solid #6f8ba7;
    background:#fff;
    color:#333;
}

.sl-date-control button {
    width:30px;
    padding:0;
    font-size:18px;
}

.sl-league-panel {
    position:absolute;
    z-index:50;
    right:0;
    top:143px;
    width:620px;
    max-width:100%;
    border:3px solid var(--sl-navy);
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.sl-league-panel-head,
.sl-league-panel-foot {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:40px;
    padding:6px 10px;
}

.sl-league-panel-head {
    background:var(--sl-navy);
    color:#fff;
}

.sl-league-panel button {
    border:1px solid var(--sl-border);
    background:#fff;
    color:#374553;
}

.sl-league-panel-head button {
    border-color:#6f8ba7;
    background:transparent;
    color:#fff;
}

.sl-league-list {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    max-height:300px;
    overflow:auto;
    padding:8px;
}

.sl-league-list label {
    display:flex;
    align-items:center;
    gap:6px;
    min-height:34px;
    padding:5px 7px;
    border-bottom:1px solid #edf0f3;
}

.sl-league-panel-foot {
    justify-content:flex-end;
    gap:6px;
    border-top:1px solid var(--sl-border);
    background:var(--sl-bg);
}

.sl-score-status {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:34px;
    padding:8px 12px;
    border:1px solid var(--sl-border);
    border-top:0;
    background:#fafbfc;
    color:var(--sl-muted);
    font-size:11px;
}

.sl-score-content {
    padding:10px 0 0;
}

.sl-status-group {
    margin:0 0 16px;
}

.sl-status-group h2 {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:42px;
    margin:0;
    padding:0 14px;
    border:1px solid var(--sl-border);
    border-top:3px solid var(--sl-navy);
    background:#eef2f6;
    color:var(--sl-navy);
    font-size:14px;
}

.sl-status-group h2 small {
    color:var(--sl-muted);
    font-size:11px;
    font-weight:400;
}

.sl-game-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:10px;
    border:1px solid var(--sl-border);
    border-top:0;
    background:#f7f9fb;
}

.sl-game-card {
    overflow:hidden;
    border:1px solid var(--sl-border);
    background:#fff;
    box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.sl-game-card.status-live {
    border-color:#e7b6b6;
}

.sl-game-meta {
    display:grid;
    grid-template-columns:minmax(0,1fr) 52px 72px auto;
    align-items:center;
    min-height:34px;
    border-bottom:1px solid var(--sl-border);
    background:#f4f6f8;
}

.sl-game-meta > * {
    min-width:0;
    padding:0 8px;
    text-align:center;
}

.sl-league-badge {
    overflow:hidden;
    height:34px;
    background:var(--league-color);
    color:#fff;
    font-size:10px;
    font-weight:700;
    line-height:34px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.sl-game-meta time {
    color:#4d5965;
    font-family:Verdana,Arial,sans-serif;
    font-size:10px;
}

.sl-game-meta strong {
    color:#4d5965;
    font-size:10px;
}

.status-live .sl-game-meta strong {
    color:#d00000;
}

.sl-game-select {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#697582;
    font-size:10px;
}

.sl-game-main {
    display:grid;
    grid-template-columns:minmax(220px,1fr) minmax(120px,.9fr);
}

.sl-teams {
    border-right:1px solid var(--sl-border);
}

.sl-team-row {
    display:grid;
    grid-template-columns:48px minmax(0,1fr) 44px;
    align-items:center;
    min-height:62px;
    border-bottom:1px solid #edf0f3;
}

.sl-team-row:last-child {
    border-bottom:0;
}

.sl-team-logo {
    display:flex;
    align-items:center;
    justify-content:center;
    height:100%;
}

.sl-team-logo img {
    max-width:40px;
    max-height:40px;
    object-fit:contain;
}

.sl-team-logo-fallback {
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:#e8edf2;
    color:#617181;
    font-weight:700;
}

.sl-team-name {
    display:flex;
    align-items:flex-start;
    justify-content:center;
    flex-direction:column;
    min-width:0;
    padding:6px 3px;
}

.sl-team-name strong {
    max-width:100%;
    overflow:hidden;
    color:#263b50;
    font-size:13px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.sl-team-name small {
    margin-top:2px;
    color:var(--sl-muted);
    font-size:9px;
}

.sl-team-name .sl-odds {
    color:#2c6ba4;
}

.sl-red-card {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:15px;
    height:15px;
    margin-top:2px;
    border-radius:2px;
    background:#d00000;
    color:#fff;
    font-size:9px;
    font-style:normal;
}

.sl-team-score {
    font-family:Verdana,Arial,sans-serif;
    font-size:19px;
    font-weight:700;
    text-align:center;
}

.status-live .sl-team-score {
    color:#d00000;
}

.sl-period-grid {
    display:grid;
    grid-template-rows:34px 1fr 1fr;
    min-width:0;
    overflow:auto;
}

.sl-period-row {
    display:grid;
    grid-template-columns:var(--period-columns);
    min-width:max-content;
}

.sl-period-row span {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    min-height:45px;
    padding:3px;
    border-right:1px solid #edf0f3;
    border-bottom:1px solid #edf0f3;
    color:#344251;
    font-size:11px;
}

.sl-period-head span {
    min-height:34px;
    background:#f4f6f8;
    color:#6a7580;
    font-size:9px;
}

.sl-draw-odds {
    padding:6px 10px;
    border-top:1px solid var(--sl-border);
    color:#2c6ba4;
    font-size:10px;
    text-align:center;
}

.sl-game-links {
    display:flex;
    justify-content:flex-end;
    gap:6px;
    padding:7px;
    border-top:1px solid var(--sl-border);
    background:#fafbfc;
}

.sl-game-links a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:64px;
    height:28px;
    border:1px solid #315b82;
    background:#315b82;
    color:#fff;
    font-size:10px;
    text-decoration:none;
}

.sl-score-loading,
.sl-score-empty,
.sl-score-error {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    min-height:260px;
    border:1px solid var(--sl-border);
    color:var(--sl-muted);
    text-align:center;
}

.sl-score-error strong {
    margin-bottom:8px;
    color:#b00020;
}

@media screen and (max-width:900px) {
    .sl-game-list {
        grid-template-columns:1fr;
    }
}

@media screen and (max-width:640px) {
    .sl-score-title {
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:3px;
    }

    .sl-score-actions button {
        min-width:80px;
        padding:0 10px;
    }

    .sl-score-tools {
        align-items:flex-start;
        flex-wrap:wrap;
    }

    .sl-date-control {
        width:100%;
    }

    .sl-date-control input {
        flex:1 1 auto;
        width:auto;
    }

    .sl-league-list {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .sl-game-main {
        grid-template-columns:1fr;
    }

    .sl-teams {
        border-right:0;
        border-bottom:1px solid var(--sl-border);
    }

    .sl-period-grid {
        grid-template-rows:32px 40px 40px;
    }
}
