/* 라이브맨 농구 스코어보드 — /score/ 디자인 언어 공유 (오렌지 브랜드) */
:root{ --lm-orange:#FF6F5E; --goal:#FF6600; --ink:#222; --line:#e5e9ef; }
*{box-sizing:border-box;}
body{margin:0;background:#f4f6f9;font-family:'Malgun Gothic',dotum,sans-serif;color:var(--ink);font-size:13px;}
#hdr{background:linear-gradient(135deg,#FF6F5E,#f5533f);color:#fff;padding:12px 16px;display:flex;align-items:center;gap:12px;}
#hdr .badge{background:#fff;color:#f5533f;font-weight:800;font-size:15px;padding:7px 11px;border-radius:8px;white-space:nowrap;}
#hdr .ttl{flex:0 0 auto;white-space:nowrap;}   /* 제목 블록: 좁아져도 글자 단위로 쪼개지지 않게 */
#hdr .sub{font-size:12px;opacity:.92;}
#hdr .live{margin-left:auto;font-size:11px;background:rgba(255,255,255,.2);padding:4px 10px;border-radius:12px;white-space:nowrap;}
#tabs{display:flex;gap:6px;margin-left:10px;flex-wrap:wrap;align-items:center;}
.tab{cursor:pointer;font-size:12px;font-weight:700;color:#fff;background:rgba(255,255,255,.18);padding:6px 14px;border-radius:16px;user-select:none;transition:all .15s;white-space:nowrap;}
.tab:hover{background:rgba(255,255,255,.32);}
.tab.on{background:#fff;color:#f5533f;}

table.sb{width:100%;table-layout:fixed;border-collapse:collapse;background:#fff;}
table.sb td,table.sb th{word-break:break-word;overflow-wrap:break-word;}
table.sb th{background:#5a7d9a;color:#fff;font-weight:700;padding:7px 3px;font-size:12px;text-align:center;}
table.sb td{padding:5px 4px;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle;}
tr.r1 td{border-bottom:1px dashed #eef1f5;}       /* 홈/원정 행 사이 옅은 구분 */
tr.r2 td{border-bottom:2px solid var(--line);}    /* 경기 사이 진한 구분 */

.c-pin{width:4%;} .c-lg{width:8%;} .c-kick{width:7%;} .c-st{width:7%;}
.c-tm{width:18%;} .c-q{width:3.8%;} .c-tot{width:6%;} .c-half{width:5%;} .c-mb{width:8.5%;} .c-hc2{width:8%;} .c-oul{width:8.5%;} .c-an{width:4.2%;}

.pinbtn{cursor:pointer;color:#c9d2dc;font-size:15px;user-select:none;}
tr.row-pin .pinbtn{color:#ff9f43;}
tr.row-pin td{background:#fff8f0;}
.lg{font-weight:700;color:#fff;border-radius:4px;padding:2px 5px;font-size:11px;line-height:1.25;display:inline-block;max-width:100%;white-space:normal;word-break:break-all;}   /* 리그칸은 세로 여유(2행)가 있으니 말줄임 대신 줄바꿈 */
.c-kick{color:#5a6572;font-variant-numeric:tabular-nums;}
.c-st{font-weight:700;font-size:12px;}
.st-live{color:#e03e2d;}
.st-live .rem{font-size:11px;color:#f5533f;font-variant-numeric:tabular-nums;animation:blink 2s infinite;}
@keyframes blink{50%{opacity:.45;}}
.st-fin{color:#8a94a0;}
.st-pre{color:#4a7fb5;}
.tm{text-align:left;font-weight:600;padding-left:8px;}
.rank{color:#a7aeb8;font-size:10px;font-weight:400;}
.bkt{animation:bpop 1.4s ease;}
@keyframes bpop{0%{opacity:0;transform:scale(.4);}25%{opacity:1;transform:scale(1.5);}100%{opacity:1;transform:scale(1);}}
.c-q{color:#4b5563;font-variant-numeric:tabular-nums;}
.qot{color:#9a6dd7;}
.c-tot .g{display:inline-block;font-weight:800;font-size:14px;padding:1px 7px;border-radius:4px;min-width:26px;white-space:nowrap;}
.c-tot .g.win{background:var(--goal);color:#fff;}
.c-tot .g.draw,.c-tot .g.lose{background:#e6e9ee;color:#9099a3;}
.c-half{color:#8a94a0;font-size:11px;font-variant-numeric:tabular-nums;}
.c-hc2,.c-oul,.c-mb{font-size:11px;color:#5a6572;font-variant-numeric:tabular-nums;}
.c-oul{white-space:nowrap;}

.c-hc2 i,.c-mb i{font-style:normal;color:#9a6dd7;}
.c-hc2 b,.c-oul b,.c-mb b{color:#39424e;font-weight:700;}
.c-hc2 .oi b,.c-oul .oi b,.c-mb .oi i{color:#b0b8c2;font-weight:400;}
.c-hc2 .arr,.c-oul .arr,.c-mb .arr{color:#c4ccd6;margin:0 3px;font-size:10px;}
.c-an a{text-decoration:none;font-size:15px;}
tr.row-goal td{animation:rowflash 1.6s ease;}
@keyframes rowflash{0%{background:#fff4cc;}55%{background:#fffbe9;}100%{background:#fff;}}
tr.secbar td{background:#eef1f5;color:#5a6572;font-weight:700;font-size:11px;text-align:left;padding:4px 10px;border-bottom:1px solid var(--line);}
tr.secbar.secpin td{background:#fff3e6;color:#d35400;}

/* 중간 폭(태블릿·iframe 좁은 컬럼): 탭 줄을 통째로 아랫줄로 내림 + 표 헤더 글자 축소(전/후·분석 두 줄 방지) */
@media (max-width:960px){
  #hdr{flex-wrap:wrap;row-gap:8px;}
  #hdr .live{margin-left:auto;}
  #tabs{order:3;flex:1 1 100%;margin-left:0;}
  table.sb th{font-size:11px;padding:6px 1px;white-space:nowrap;}
  .c-half{width:6%;} .c-an{width:5%;} .c-tm{width:14.5%;} .c-lg{width:9.5%;}
  .c-tot .g{padding:1px 4px;min-width:22px;}
}
/* 모바일: 전/후·핸디캡 숨김 + 축소 */
@media (max-width:640px){
  .c-half,.c-hc2,.c-oul,.c-mb{display:none;}
  #hdr{padding:9px 11px;flex-wrap:wrap;gap:8px;}
  #hdr>div>div:first-child{font-size:13px;}
  #hdr .badge{font-size:13px;padding:5px 9px;}
  #tabs{gap:4px;justify-content:flex-start;}
  .tab{font-size:11px;padding:5px 9px;}
  #hdr .live{flex:0 0 auto;}
  table.sb th{font-size:10.5px;padding:5px 1px;}
  table.sb td{font-size:11.5px;padding:4px 2px;}
  .c-pin{width:5%;} .c-lg{width:11.5%;} .c-kick{width:10.5%;font-size:10.5px;} .c-st{width:9%;}
  .lg{font-size:10px;padding:2px 3px;}
  .c-tm{width:26%;} .c-q{width:5.4%;} .c-tot{width:9%;} .c-an{width:6%;}
  td.c-kick{word-break:keep-all;overflow-wrap:normal;}   /* 날짜/시간 사이 공백에서만 줄바꿈, '14:30' 안에서 갈라지지 않게 */
  .c-tot .g{font-size:12.5px;padding:1px 4px;min-width:18px;}
  .tm{padding-left:4px;}
}
.tlink{color:inherit;text-decoration:none;} .tlink:hover{color:#f5533f;text-decoration:underline;}
.hbadge{display:inline-block;background:#eef4fb;color:#4a7fb5;border:1px solid #cfe0f1;font-size:9.5px;font-weight:700;padding:0 4px;border-radius:3px;vertical-align:1px;}
.c-mb .up,.c-hc2 .up,.c-oul .up{color:#e03e2d;font-size:9px;}
.c-mb .dn,.c-hc2 .dn,.c-oul .dn{color:#2f6fd0;font-size:9px;}
.stale{opacity:.42;filter:grayscale(1);}
.odlink{color:inherit;text-decoration:none;display:block;border-radius:4px;padding:1px 2px;}
.odlink:hover{background:#eef3f9;}
.dsel{display:inline-flex;align-items:center;gap:4px;background:rgba(255,255,255,.18);border-radius:16px;padding:3px 8px;}
.dsel input[type=date]{border:0;background:transparent;color:#fff;font-size:12px;font-weight:700;width:118px;outline:none;color-scheme:dark;}
.dbtn{cursor:pointer;color:#fff;font-size:11px;padding:2px 5px;border-radius:10px;user-select:none;}
.dbtn:hover{background:rgba(255,255,255,.25);}
.dbtn.today{background:#fff;color:#f5533f;font-weight:700;padding:2px 9px;}
@media (max-width:640px){ .dsel input[type=date]{width:104px;} }
