/* 텍스트 메뉴(라이브·일정·결과) — nba.css 위에 얹는다 */
#menu { display:flex; gap:4px; flex:1; overflow-x:auto; }
#menu a { color:var(--muted); text-decoration:none; padding:6px 10px; border-radius:8px; font-size:14px; white-space:nowrap; }
#menu a.on { color:var(--acc); background:rgba(76,201,240,.1); }
#sports { display:flex; gap:6px; padding:10px 16px 0; align-items:center; flex-wrap:wrap; }
#chips { display:flex; gap:6px; flex-wrap:wrap; }
#sports button { background:var(--card); color:var(--fg); border:1px solid var(--line); border-radius:999px; padding:5px 12px; font-size:13px; }
#sports button.on { border-color:var(--acc); color:var(--acc); }
.major { margin-left:auto; font-size:12px; color:var(--muted); display:flex; gap:4px; align-items:center; }
#list { padding:12px 16px 30px; max-width:900px; margin:0 auto; }
.league { margin:14px 0 6px; font-size:13px; color:var(--muted); display:flex; justify-content:space-between; }
.league b { color:var(--fg); }
button.league { width:100%; background:none; border:0; border-bottom:1px solid var(--line); padding:8px 2px; font:inherit; font-size:13px; text-align:left; align-items:center; cursor:pointer; min-height:44px; margin:2px 0 4px; }
button.league.etc { border-bottom-style:dashed; }
.dayhead { display:flex; align-items:center; gap:8px; margin:10px 0 4px; }
.dayhead .day { margin:0; flex:1; }
.allfold { flex:none; min-height:44px; padding:0 12px; background:var(--card); color:var(--muted); border:1px solid var(--line); border-radius:999px; font:inherit; font-size:12px; cursor:pointer; }
.row { display:grid; grid-template-columns:64px 1fr 92px 1fr; align-items:center; gap:6px; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:9px 12px; margin-bottom:6px; font-size:14.5px; }
.row .t { font-size:12px; color:var(--muted); line-height:1.25; }
.row .t.live { color:var(--up); font-weight:700; }
.row .h { text-align:right; }
.row .s { text-align:center; font-weight:700; font-size:16px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.row .s.none { color:var(--muted); font-weight:400; font-size:13px; }
.row.flash { animation:flash 1.6s ease-out; }
@keyframes flash { 0% { background:#2b3b1f; } 100% { background:var(--card); } }
.day { display:flex; justify-content:space-between; align-items:center; width:100%; margin:10px 0 4px; padding:8px 4px; background:none; border:0; border-bottom:1px solid var(--line); font:inherit; font-weight:700; font-size:14px; color:var(--acc); text-align:left; cursor:pointer; }
.day span:last-child { font-weight:400; font-size:12px; color:var(--muted); }
.more { display:block; width:100%; margin:0 0 6px; padding:8px; background:none; border:1px dashed var(--line); border-radius:10px; color:var(--muted); font:inherit; font-size:13px; cursor:pointer; }
@media (max-width:480px) {
  #top { flex-wrap:wrap; gap:6px 10px; padding:10px 12px 6px; }
  #top #menu { order:3; width:100%; flex:none; justify-content:flex-start; }
  .row { grid-template-columns:52px 1fr 78px 1fr; font-size:13.5px; padding:8px 8px; }
  .row .s { font-size:15px; }
  #list { padding:10px 10px 24px; } #clock { display:none; }
  /* 터치 타깃 44px */
  #menu a { min-height:44px; display:inline-flex; align-items:center; padding:6px 12px; }
  #sports button { min-height:44px; }
  .major { min-height:44px; font-size:13px; gap:8px; }
  .major input { width:22px; height:22px; margin:0; }
  .day, .more { min-height:44px; }
}

/* 경기 상세(game.html) — 모바일 우선, 터치 타깃 44px 이상 */
.row { cursor:pointer; min-height:44px; -webkit-tap-highlight-color:rgba(76,201,240,.15); }
.row:hover { border-color:var(--acc); }
#game { padding:12px 16px 30px; max-width:820px; margin:0 auto; }
#gBack { min-height:44px; min-width:44px; background:none; border:1px solid var(--line); color:var(--fg); border-radius:10px; padding:0 14px; font-size:15px; }
#gHead { margin:10px 0 14px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.gmeta { color:var(--muted); font-size:13px; }
.gwhen { color:var(--muted); font-size:13px; margin:2px 0 10px; }
.gstat { margin-left:6px; padding:2px 8px; border:1px solid var(--line); border-radius:999px; font-size:12px; }
.gstat.live { color:var(--up); border-color:var(--up); font-weight:700; }
.gscore { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; }
.gscore .gh { text-align:right; font-weight:700; font-size:18px; }
.gscore .ga { text-align:left; font-weight:700; font-size:18px; }
.gscore .gs { font-size:28px; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.gscore .gs.none { color:var(--muted); font-weight:400; font-size:18px; }
#game section { margin-top:16px; }
#game h2 { font-size:15px; margin:0 0 8px; }
#game h2 small { color:var(--muted); font-weight:400; font-size:12px; margin-left:6px; }
.orow { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-bottom:6px; min-height:44px; }
.ol { font-size:13.5px; }
.ov { display:flex; gap:14px; flex-wrap:wrap; }
.oc { display:inline-flex; align-items:baseline; gap:5px; font-size:13px; }
.oc i { font-style:normal; color:var(--muted); font-size:12px; max-width:7em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.oc b { font-size:16px; font-variant-numeric:tabular-nums; }
.oc small { color:var(--muted); font-size:11px; }
#gChart { width:100%; height:auto; background:#0e1322; border:1px solid var(--line); border-radius:10px; margin-top:6px; }
#gLegend { font-size:12px; margin:6px 0 10px; }
#gTabs { display:flex; gap:6px; margin-bottom:8px; }
#gTabs button { min-height:44px; padding:0 14px; background:var(--card); color:var(--fg); border:1px solid var(--line); border-radius:10px; font-size:14px; }
#gTabs button.on { border-color:var(--acc); color:var(--acc); }
#gUpdates { white-space:pre-wrap; word-break:break-word; background:#1a1a0f; border:1px solid #6b5a12; border-radius:12px; padding:12px 16px; font-family:inherit; font-size:14px; line-height:1.6; margin:0 0 10px; }
#gBody { white-space:pre-wrap; word-break:break-word; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; font-family:inherit; font-size:14.5px; line-height:1.65; margin:0; }
#menu a { display:inline-flex; align-items:center; min-height:44px; }
@media (max-width:480px) { #game { padding:10px 10px 24px; } .gscore .gh,.gscore .ga { font-size:15px; } .gscore .gs { font-size:24px; } }
