/* SCOREBOOK_LIVESCORE_KOREAN_LAYOUT */
/* API-Sports Korean aliases + overflow-safe live layouts. */

/* Home ticker: keep status horizontal and reserve a shrinkable name column. */
.score-ticker .ticker-items article{
    grid-template-columns:24px minmax(0,1fr) minmax(38px,48px) !important;
    min-width:0;
    overflow:hidden;
}
.score-ticker .ticker-items article>div{
    min-width:0;
    overflow:hidden;
}
.score-ticker .ticker-items small,
.score-ticker .ticker-items b{
    display:block;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
}
.score-ticker .ticker-items em{
    display:block;
    min-width:0;
    max-width:48px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
    writing-mode:horizontal-tb !important;
    line-height:1.25;
    text-align:center;
}
.score-ticker .ticker-items strong,
.score-ticker .ticker-items i{white-space:nowrap}

/* Home live list: localized or compact fallback names never expand the grid. */
.live-board .match-row,
.live-board .match-league,
.live-board .match-teams,
.live-board .match-teams span{
    min-width:0;
}
.live-board .match-league small,
.live-board .match-teams span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
}
.live-board .match-teams span:first-child{justify-content:flex-end;text-align:right}
.live-board .match-teams span:last-child{justify-content:flex-start;text-align:left}

/* Hero card can receive real API names as well. */
.hero-match-card .teams>div{min-width:0}
.hero-match-card .teams>div b{
    display:block;
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
}

/* Dedicated live page. */
.sb-live-page .sb-live-league-head>div,
.sb-live-page .sb-live-league-head p,
.sb-live-page .sb-live-teams,
.sb-live-page .sb-live-team{min-width:0}
.sb-live-page .sb-live-league-head b,
.sb-live-page .sb-live-league-head small,
.sb-live-page .sb-live-team span,
.sb-live-page .sb-live-game-meta b{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    word-break:keep-all;
}
.sb-live-page .sb-live-game-status b{
    line-height:1.25;
    word-break:keep-all;
    overflow-wrap:normal;
}
.sb-live-page .sb-live-score{min-width:58px}

/* Prevent long untranslated fallback names from breaking narrow classic center columns. */
@media (max-width:1180px){
    .score-ticker .ticker-items article{padding-left:8px!important;padding-right:8px!important;gap:6px!important}
    .score-ticker .ticker-items em{max-width:42px;font-size:8px}
    .live-board .match-row{grid-template-columns:50px 52px minmax(190px,1fr) 125px 64px!important}
}
@media (max-width:900px){
    .score-ticker .ticker-items{grid-template-columns:repeat(4,minmax(190px,1fr))}
    .score-ticker .ticker-items article{grid-template-columns:22px minmax(0,1fr) 40px!important}
    .live-board .match-row{grid-template-columns:44px minmax(0,1fr) 62px!important}
    .live-board .match-league,.live-board .match-meta{display:none!important}
    .live-board .match-teams{grid-column:2;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr)}
}
@media (max-width:600px){
    .score-ticker .ticker-items{grid-template-columns:repeat(4,210px)}
    .score-ticker .ticker-items small{font-size:8px}
    .score-ticker .ticker-items b{font-size:10px}
    .sb-live-page .sb-live-game-status{width:58px}
    .sb-live-page .sb-live-team span{font-size:10px}
}
