/* GLOBAL SCROLLER */
.global-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 12px;
    overflow-x: auto;
    padding: 12px;
    scroll-behavior: smooth;
}

/* LEAGUE CARD */
.league-card {
    min-width: 180px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    left: 0;
    z-index: 2;
}

.league-card img {
    width: 22px;
}

/* MATCH CARD */
.match-card {
    min-width: 240px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
}

/* TEAM */
.team-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    gap: 6px;
}
/* TEAM */
.team-away {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    gap: 6px;
}
.team img {
    width: 18px;
}

/* TIME */
.match-time {
    font-size: 12px;
    margin-bottom: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: red;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
}

/* STATUS */
.match-status {
    font-size: 11px;
    text-align: right;
    opacity: .7;
}

/* MOBILE */
@media (max-width: 768px) {
    .match-card {
        min-width: 270px;
    }
}



/* WRAPPER */
.live-card-wrapper {
    padding:10px 0;
}

/* CARD */
.live-card {
    width: 100%;
    max-width: 300px;      /* kontrol ukuran */
    background:white;
    color:black;
    border-radius:13px;
    padding:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.3);
}

/* LIGA */
.liga-name {
    font-size:11px;
    opacity:.7;
    margin-bottom:6px;
}

/* ROW */
.match-row {
    display:flex;
    align-items:center;
    gap:0px;               /* penting */
}

/* TEAM */
.team-home {
    display:flex;
    align-items:center;
    gap:6px;
    flex:1;                /* ganti width */
    font-size:12px;
}

.team-away {
    display:flex;
    align-items:center;
    gap:6px;
    flex:1;                /* ganti width */
    font-size:12px;
}
.team-home.home { justify-content:flex-start; }
.team-away.away { justify-content:flex-end; }

.team-home img {
    width:20px;
    height:20px;
    object-fit:contain;
}

.team-away img {
    width:20px;
    height:20px;
    object-fit:contain;
}
/* TEAM NAME */
.team-home .name {
    max-width:45px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
/* TEAM NAME */
.team-away .name {
    max-width:45px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
/* CENTER STATUS */
.center-status {
    min-width:48px;        /* FIXED CENTER */
    text-align:center;
    font-size:11px;
}

/* SCORE */
.score {
    font-weight:700;
    min-width:16px;
    text-align:center;
}

.score.win  { color:#22c55e; }
.score.lose { color:#ef4444; }
.score.draw { color:#9ca3af; }

/* LIVE */
.live-dot {
    width:6px;
    height:6px;
    background:#ef4444;
    border-radius:50%;
    display:inline-block;
    margin-right:4px;
}

/* BADGE */
.badge {
    font-size:9px;
    padding:2px 5px;
    border-radius:5px;
    opacity:.8;
    white-space:nowrap;
}

.badge.home { background:#2563eb; }
.badge.away { background:#7c3aed; }
