/* Light only (he does not want a dark background). Layout: one phone-width column. Sticky title bar, fixed bottom tab bar (首页/赛程/战队/直播).
   Matches read like a scoreboard: two team lines, score on the right. Details open as a full-screen page on top. */
:root {
  --bg: #eceff3;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --line: #dde2e9;
  --fg: #11161d;
  --fg-2: #4f5a68;
  --fg-3: #8590a0;
  --accent: #2753c4;
  --accent-soft: #e6ecfb;
  --live: #e0313c;
  --win: #178a4c;
  --loss: #c8424a;
  --cs: #c9721c;
  --lol: #0f8f8a;
  --val: #d93a4a;
  --blue-side: #2d6fd6;
  --red-side: #d2434f;
  --team-a: #2753c4;
  --team-b: #c9831c;
  --shadow: 0 1px 2px rgba(17, 22, 29, .06);
  --f-num: "DIN Alternate", "Bahnschrift", "Roboto Condensed", "Arial Narrow", -apple-system, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --r: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; }
body { color: var(--fg); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wrap { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* top bar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); }
.top .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 12px 8px; }
.brand { font-family: var(--f-num); font-weight: 700; font-size: 22px; letter-spacing: .04em; }
.brand b { color: var(--live); font-weight: 700; }
.brandbox { display: flex; flex-direction: column; gap: 1px; flex: none; }
.brand-sub { font-size: 11px; line-height: 1.2; color: var(--fg-3); letter-spacing: .02em; white-space: nowrap; }
.updated { color: var(--fg-3); font-size: 12px; text-align: right; }

main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
[hidden] { display: none !important; }
.view { display: flex; flex-direction: column; gap: 20px; padding-block: 4px 24px; }

/* bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.tabbar .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.tabbar button { background: none; border: 0; padding: 8px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--fg-3); font-size: 11px; cursor: pointer; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button[aria-current="page"] { color: var(--fg); font-weight: 600; }
.tabbar button[aria-current="page"] svg { color: var(--accent); }
.tabbar .dot { position: relative; }
.tabbar .dot::after { content: ""; position: absolute; top: -1px; right: -5px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }

/* section headings */
.sec { display: flex; flex-direction: column; gap: 8px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec-h h2 { margin: 0; font-size: 17px; font-weight: 700; }
.sec-h .sub { color: var(--fg-3); font-size: 12px; }
.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.panel > * + * { border-top: 1px solid var(--line); }
.note { color: var(--fg-3); font-size: 12px; line-height: 1.5; }
.empty { padding: 18px 16px; color: var(--fg-2); font-size: 14px; }

/* game tag */
.gt { display: inline-block; font-family: var(--f-num); font-weight: 700; font-size: 12px; line-height: 1; padding: 3px 5px 2px; border-radius: 4px; color: #fff; letter-spacing: .03em; vertical-align: 1px; }
.gt.CS { background: var(--cs); } .gt.LOL { background: var(--lol); } .gt.VAL { background: var(--val); }

/* match row: scoreboard style */
.mrow { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; }
.mrow .main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mrow .mline { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.mrow .mline .gt { flex: none; }
.mrow .mline .bo { flex: none; font-family: var(--f-num); font-size: 12px; font-weight: 600; color: var(--fg-2); }
.mrow .mline .ev { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mrow:hover { background: var(--surface-2); }
.mrow .when { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mrow .when .t { font-family: var(--f-num); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.mrow .when .s { font-size: 11px; color: var(--fg-3); }
.mrow .when .s.live { color: var(--live); font-weight: 700; }
.mrow .sides { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 8px; align-items: center; }
.side .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.side .nm small { color: var(--fg-3); font-size: 12px; margin-left: 4px; }
.side .sc { font-family: var(--f-num); font-weight: 700; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.side.lose .nm, .side.lose .sc { color: var(--fg-3); }
.side.win .nm { font-weight: 600; }
.side.fav .nm::after { content: "★"; color: #e0a800; font-size: 11px; margin-left: 4px; }
.tbd-row { padding: 8px 12px; color: var(--fg-3); font-size: 12px; background: var(--surface-2); }
.small-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 12px; font-size: 13px; color: var(--fg-2); cursor: pointer; }
.small-row .t { font-weight: 700; color: var(--fg-2); }
.small-row .x { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.small-row .s { font-size: 11px; color: var(--fg-3); }

/* logos */
.logo { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; display: block; }
.logo.lt { background: #2a313c; padding: 2px; }
.logo.ph { background: var(--surface-2); border: 1px dashed var(--line); }
.logo.big { width: 56px; height: 56px; border-radius: 12px; }
.logo.mid { width: 40px; height: 40px; border-radius: 9px; }
.logo.big.ph { font-size: 18px; } .logo.mid.ph { font-size: 14px; }

/* live card */
.livecard { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.livecard .head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); min-width: 0; }
.livecard .head .ev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill.live { color: var(--live); background: color-mix(in srgb, var(--live) 12%, transparent); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.pill.soon { color: var(--accent); background: var(--accent-soft); }
.pill.mute { color: var(--fg-2); background: var(--surface-2); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.vs .tm { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.vs .tm .cn { font-weight: 700; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs .tm .en { font-size: 12px; color: var(--fg-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs .mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vs .score { font-family: var(--f-num); font-weight: 700; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.vs .score .d { color: var(--fg-3); margin: 0 6px; font-weight: 500; }
.vs .bo { font-family: var(--f-num); font-weight: 600; font-size: 13px; color: var(--fg-2); }
.vs .clock { font-family: var(--f-num); font-weight: 700; font-size: 30px; line-height: 1; }
.maps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.maps span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--fg-2); white-space: nowrap; }
.maps span b { font-family: var(--f-num); font-weight: 700; color: var(--fg); margin-left: 4px; }
.maps span.now { background: var(--live-bg, #fdecec); color: var(--live, #d92d20); }
.maps span.now b { color: inherit; font-family: inherit; font-weight: 600; }
.stale { font-size: 12px; color: var(--fg-3); text-align: center; }

/* watch buttons */
.watch { display: flex; flex-wrap: wrap; gap: 8px; }
.watch a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.watch a .pf { font-size: 11px; color: var(--fg-3); font-weight: 500; }
.watch a.on { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.watch a.on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); border-radius: 99px; padding: 0 15px; min-height: 44px; font-size: 15px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; border-radius: 7px; min-height: 40px; font-size: 15px; color: var(--fg-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: var(--shadow); }
.day-h { font-size: 13px; color: var(--fg-2); font-weight: 600; padding: 2px 2px 0; }

/* event card */
.evcard { background: var(--surface); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.evcard h3 { margin: 0; font-size: 17px; }
.evcard .en { font-size: 12px; color: var(--fg-3); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.kv dt { font-size: 11px; color: var(--fg-3); }
.kv dd { margin: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* team list */
.trow { display: grid; grid-template-columns: 30px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; }
.trow:hover { background: var(--surface-2); }
.trow .rk { font-family: var(--f-num); font-weight: 700; font-size: 17px; color: var(--fg-3); text-align: center; }
.trow .nm { min-width: 0; }
.trow .nm b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .nm span { display: block; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .nx { font-size: 12px; color: var(--fg-2); text-align: right; }
.search { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: inherit; color: var(--fg); }
.search:focus-visible, button:focus-visible, .mrow:focus-visible, .trow:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* rooms */
.room { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; text-decoration: none; color: inherit; }
.room:hover { background: var(--surface-2); }
.pf-badge { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.pf-badge.bili { background: #e8508d; } .pf-badge.douyu { background: #ff7a1a; } .pf-badge.huya { background: #f5a300; color: #2a1d00; }
.room .rn { min-width: 0; }
.room .rn > b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room .rn > span { display: block; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind { font-size: 11px; color: var(--fg-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 6px; font-weight: 500; }

/* detail page */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet-bar { position: sticky; top: 0; z-index: 2; background: var(--bg); }
.sheet-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 10px; }
.back { border: 0; background: none; color: var(--accent); font-size: 16px; padding: 4px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.sheet-title { font-size: 14px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { display: flex; flex-direction: column; gap: 18px; padding-block: 4px 32px; }

.thead { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.thead h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.thead .en { color: var(--fg-3); font-size: 13px; }
.thead .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--fg-2); white-space: nowrap; }
.tag b { color: var(--fg); font-family: var(--f-num); font-size: 14px; }
.follow { border: 1px solid var(--accent); color: var(--accent); background: none; border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.follow[aria-pressed="true"] { background: var(--accent); color: var(--surface); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 8px 0 10px; font-size: 15px; color: var(--fg-3); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-pressed="true"] { color: var(--fg); font-weight: 700; border-color: var(--fg); }

.form { display: flex; gap: 4px; flex-wrap: wrap; }
.form i { font-style: normal; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.form i.w { background: var(--win); } .form i.l { background: var(--loss); } .form i.d { background: var(--fg-3); }

.roster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pcard { background: var(--surface); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; border: 0; padding: 0; text-align: center; box-shadow: var(--shadow); }
.pcard .ph { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, var(--line))); display: grid; place-items: end center; overflow: hidden; max-width: 100%; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.zoom img { transform: scale(1.45); transform-origin: 50% 4%; }
.pcard .ph .ini { font-family: var(--f-num); font-weight: 700; font-size: 22px; color: var(--fg-3); align-self: center; }
.pcard .badge { position: absolute; top: 4px; left: 4px; font-family: var(--f-num); font-weight: 700; font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--surface); color: var(--fg); }
.pcard .badge.hi { background: var(--win); color: #fff; } .pcard .badge.lo { background: var(--loss); color: #fff; }
.pcard .pn { font-size: 12px; font-weight: 600; padding: 5px 2px 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pr { font-size: 11px; color: var(--fg-3); padding: 0 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
table.st { border-collapse: collapse; width: 100%; font-size: 14px; }
table.st th { font-size: 11px; font-weight: 600; color: var(--fg-3); text-align: right; padding: 9px 8px 7px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.st th:first-child, table.st td:first-child { text-align: left; padding-left: 12px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.st td { text-align: right; padding: 8px; border-bottom: 1px solid var(--line); font-family: var(--f-num); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.st tr:last-child td { border-bottom: 0; }
table.st td.p { font-family: var(--f-body); font-size: 14px; font-weight: 600; cursor: pointer; }
table.st td.p span { color: var(--fg-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
table.st td.best { color: var(--win); font-weight: 700; }
table.st td.dim { color: var(--fg-3); }

.maprow { padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.maprow .l1 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.maprow .mn { font-weight: 700; font-size: 15px; }
.maprow .mn small { color: var(--fg-3); font-weight: 400; font-size: 12px; margin-left: 6px; }
.maprow .wr { font-family: var(--f-num); font-weight: 700; font-size: 18px; }
.maprow .wr small { font-family: var(--f-body); font-size: 12px; color: var(--fg-3); font-weight: 400; margin-right: 6px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--fg-2); }
.bar i.good { background: var(--win); } .bar i.bad { background: var(--loss); }
.maprow .l3 { font-size: 12px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.maprow .l3 b { font-family: var(--f-num); font-size: 14px; color: var(--fg); }

.sidebox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebox > div { background: var(--surface); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.sidebox .lbl { font-size: 13px; font-weight: 700; }
.sidebox .blue .lbl { color: var(--blue-side); } .sidebox .red .lbl { color: var(--red-side); }
.sidebox .big { font-family: var(--f-num); font-weight: 700; font-size: 32px; line-height: 1.1; }
.sidebox .sm { font-size: 12px; color: var(--fg-3); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); min-width: 0; }
.stat dt { font-size: 12px; color: var(--fg-3); }
.stat dd { margin: 0; font-family: var(--f-num); font-weight: 700; font-size: 22px; }

.rrow { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 12px; font-size: 14px; }
.rrow .res { font-weight: 700; font-size: 12px; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; color: #fff; }
.rrow .res.w { background: var(--win); } .rrow .res.l { background: var(--loss); } .rrow .res.d { background: var(--fg-3); }
.rrow .op { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow .op small { color: var(--fg-3); font-size: 12px; margin-left: 6px; }
.rrow .sc { font-family: var(--f-num); font-weight: 700; font-size: 16px; text-align: right; white-space: nowrap; }
.rrow .sc small { font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--fg-3); margin-left: 6px; }
.rrow .side-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.side-dot.B { background: var(--blue-side); } .side-dot.R { background: var(--red-side); }

.cmp { padding: 10px 12px; display: grid; grid-template-columns: 46px minmax(0, 1fr) 92px minmax(0, 1fr) 46px; gap: 6px; align-items: center; font-size: 13px; }
.cmp .v { font-family: var(--f-num); font-weight: 700; font-size: 16px; }
.cmp .v.r { text-align: right; }
.cmp .lab { text-align: center; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp .lab small { display: block; font-weight: 400; font-size: 11px; color: var(--fg-3); }
.cmp .bl { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: flex; justify-content: flex-end; }
.cmp .br { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.cmp .bl i, .cmp .br i { display: block; height: 100%; }
.cmp .bl i { background: var(--team-a); } .cmp .br i { background: var(--team-b); }
.cmp .v.lo { color: var(--fg-3); font-weight: 500; }
.cmp.head { font-size: 12px; color: var(--fg-2); font-weight: 600; }
.cmp.head .v { font-family: var(--f-body); font-size: 12px; font-weight: 600; }

.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lineups .col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lineups .col h4 { margin: 0; font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--surface); border-radius: 8px; padding: 4px 8px 4px 4px; cursor: pointer; box-shadow: var(--shadow); }
.lp .face { width: 32px; height: 40px; border-radius: 5px; background: var(--surface-2); display: grid; place-items: center; font-size: 11px; color: var(--fg-3); overflow: hidden; }
.lp .face img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lp .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp .r { font-family: var(--f-num); font-weight: 700; font-size: 14px; color: var(--fg-2); }

.phero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: end; }
.phero .ph { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; place-items: center; max-width: 100%; }
.phero .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phero h1 { margin: 0; font-size: 26px; font-family: var(--f-num); letter-spacing: .02em; }
.phero .meta { color: var(--fg-2); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }

.foot { color: var(--fg-3); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.linkbtn { border: 0; background: none; color: var(--accent); padding: 0; cursor: pointer; font-size: 13px; }
.center { text-align: center; }

/* focus card */
.livecard.hero { padding: 16px 14px 14px; gap: 14px; border-top: 3px solid var(--fg-2); }
.livecard.hero.g-CS { border-top-color: var(--cs); } .livecard.hero.g-LOL { border-top-color: var(--lol); } .livecard.hero.g-VAL { border-top-color: var(--val); }
.livecard.hero .vs .cn { font-size: 19px; }
.livecard.hero .vs .clock { font-size: 36px; }
.livecard.hero .vs .score { font-size: 44px; }
.cd { font-family: var(--f-num); font-weight: 700; font-size: 15px; color: var(--live); font-variant-numeric: tabular-nums; margin-top: 2px; }
.hl { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.hl-t { font-size: 13px; font-weight: 700; color: var(--fg); }
.hl-l { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hl-l div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.45; }
.hl-l dt { color: var(--fg-3); }
.hl-l dd { margin: 0; color: var(--fg); }
.hl-wait { font-size: 12px; color: var(--fg-3); }
.watchrow { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.watchrow .wl { font-size: 12px; color: var(--fg-3); }
.mini-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; font-size: 13px; padding: 0 12px; min-height: 32px; color: var(--fg-2); cursor: pointer; }

/* future schedule, one row per day */
.dsum { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 10px 12px; cursor: pointer; }
.dsum:hover { background: var(--surface-2); }
.dsum .dd { display: flex; flex-direction: column; gap: 1px; }
.dsum .dd b { font-family: var(--f-num); font-size: 17px; font-weight: 700; }
.dsum .dd span { font-size: 12px; color: var(--fg-3); }
.dsum .dl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; }
.dg .gt { margin-top: 3px; }
.dg .dt { display: flex; flex-direction: column; min-width: 0; }
.dg .dt b { font-size: 15px; font-weight: 600; }
.dg .dt span { font-size: 13px; color: var(--fg-2); }
.dg.tbd .dt span { color: var(--fg-3); }

/* finished series, one per line */
.rline { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.rline:hover { background: var(--surface-2); }
.rline .r1 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-3); min-width: 0; }
.rline .r1 .rd { font-weight: 700; color: var(--fg-2); font-size: 13px; }
.rline .r1 .re { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rline .r2 { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto minmax(0, 1fr) 22px; gap: 8px; align-items: center; font-size: 15px; }
.rline .r2 .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-2); }
.rline .r2 .n.na { text-align: right; }
.rline .r2 .n.w { color: var(--fg); font-weight: 700; }
.rline .r2 b { font-family: var(--f-num); font-size: 18px; font-weight: 700; white-space: nowrap; }
.rline .r3 { font-size: 12px; color: var(--fg-3); text-align: center; }
.fmt { font-size: 13px; color: var(--fg-2); }


/* ---------- merged features (10-24): home filter, marks, my rooms, bracket, calendar ---------- */
.chip.sm { min-height: 34px; padding: 0 13px; font-size: 14px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.mrow.final { box-shadow: inset 3px 0 0 #e0a800; }
.mrow .mline .mk { flex: none; color: #a87800; font-weight: 700; }
.mk-item .mrow { padding-bottom: 6px; }
.mk-note { padding: 0 12px 10px 72px; font-size: 13px; color: var(--fg-2); word-break: break-all; }
.markbox { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; background: var(--surface-2); color: var(--fg); }
.note-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.room-wrap { position: relative; }
.room-wrap .room { padding-right: 54px; }
.rm-del { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--fg-3); font-size: 20px; line-height: 1; cursor: pointer; }
.rm-del:hover { color: var(--live); }
.addbox { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 12px; }
.addbox summary { cursor: pointer; font-weight: 600; color: var(--accent); min-height: 40px; display: flex; align-items: center; list-style: none; }
.addbox summary::-webkit-details-marker { display: none; }
.addroom { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 12px; }
.watch a.mine { border-style: dashed; }
.sw .sw-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 10px 12px; align-items: start; }
.sw .sw-k { font-weight: 700; font-size: 14px; color: var(--fg-2); padding-top: 4px; white-space: nowrap; }
.sw .adv .sw-k { color: var(--win); }
.sw .out .sw-k { color: var(--fg-3); }
.sw-ts { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-t { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border-radius: 8px; padding: 4px 9px 4px 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sw-t .logo { width: 18px; height: 18px; border-radius: 4px; }
.sw .out .sw-t { opacity: .5; }
.sw-t.fav::after { content: "★"; color: #e0a800; font-size: 10px; }
.ko { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ko::-webkit-scrollbar { display: none; }
.ko-col { flex: 0 0 172px; display: flex; flex-direction: column; gap: 8px; }
.ko-b { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: space-around; }
.ko-h { font-size: 12px; color: var(--fg-3); font-weight: 600; }
.ko-m { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.ko-m.final { box-shadow: inset 0 0 0 2px #e0a800; }
.ko-d { font-size: 11px; color: var(--fg-3); }
.ko-t { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 14px; color: var(--fg-2); }
.ko-t .logo { width: 18px; height: 18px; border-radius: 4px; }
.ko-t .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ko-t b { font-family: var(--f-num); }
.ko-t.w { color: var(--fg); font-weight: 700; }
.cal-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; }
.cal-row[role="button"] { cursor: pointer; }
.cal-row[role="button"]:hover { background: var(--surface-2); }
.cal-d { display: flex; flex-direction: column; }
.cal-d b { font-size: 17px; font-weight: 700; }
.cal-d span { font-size: 12px; color: var(--fg-3); }
.cal-m { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cal-n b { font-size: 15px; line-height: 1.3; }
.cal-m .pill { align-self: flex-start; margin-top: 4px; }
.cal-go { color: var(--fg-3); font-size: 22px; line-height: 1; }
.cal-m > span { font-size: 12px; color: var(--fg-2); }


/* ---------- HLTV change, drawer scrim ---------- */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(17, 22, 29, .32); }
.chg { font-family: var(--f-num); font-weight: 700; font-size: 11px; }
/* home: full day schedules */
.sec-r { display: flex; align-items: center; gap: 10px; flex: none; }
.mrow .mline .fz { flex: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 5px; }
.mrow.is-focus { box-shadow: inset 3px 0 0 var(--accent); }
.mrow.is-live { background: color-mix(in srgb, var(--live) 5%, var(--surface)); }
.mrow.done .when .t { color: var(--fg-3); }
.mrow.done .side .nm { color: var(--fg-2); }
.mrow.done .side.win .nm { color: var(--fg); }
.done-fold { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; font-size: 13px; color: var(--fg-2); background: var(--surface-2); cursor: pointer; }
.done-fold .go { color: var(--accent); font-weight: 600; }
.done-fold:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.panel > .now-line { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 0; font-size: 12px; font-weight: 700; color: var(--live); }
.panel > .now-line::before, .panel > .now-line::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--live) 45%, transparent); }
.panel > .now-line::before { flex: 0 0 12px; }
.panel > .now-line + * { border-top: 0; }
.trow .nm span.chg { display: inline; margin-left: 2px; }
.chg.up { color: var(--win); } .chg.dn { color: var(--loss); } .chg.new { color: var(--accent); font-family: var(--f-body); }
.side-h { font-size: 12px; font-weight: 600; color: var(--fg-3); padding: 4px 4px 0; }
@media (max-width: 1023px) { .scrim { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .wrap, .tabbar .in { max-width: 720px; } }

/* ---------- desktop (1024px+): a web page, not a phone screen — top menu, columns, details in a side drawer ---------- */
.live-stack { display: flex; flex-direction: column; gap: 10px; }
.live-stack .livecard { gap: 8px; }
.live-stack .livecard > .stale, .live-stack .livecard > .maps { display: none; }
.live-stack .tm .en { display: none; }
.live-stack .watchrow { padding-top: 8px; }
@media (min-width: 1024px) {
  body { font-size: 14px; }
  body::before { display: none; }
  .wrap { max-width: 1320px; padding-left: 32px; padding-right: 32px; }
  .top { top: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
  .top .wrap { align-items: center; justify-content: flex-start; gap: 36px; height: 60px; padding-block: 0; }
  .brand { font-size: 21px; flex: none; }
  .updated { margin-left: auto; font-size: 13px; }
  .tabbar { position: static; height: 100%; background: none; border: 0; padding: 0; }
  .tabbar .in { display: flex; gap: 4px; height: 100%; max-width: none; margin: 0; }
  .tabbar button { flex-direction: row; gap: 8px; height: 100%; padding: 0 14px; font-size: 15px; color: var(--fg-2); border-bottom: 2px solid transparent; }
  .tabbar button svg { width: 18px; height: 18px; }
  .tabbar button:hover { color: var(--fg); background: var(--surface-2); }
  .tabbar button[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent); }
  .tabbar .dot::after { top: 0; right: -9px; }
  main { padding-bottom: 48px; }
  .view { padding-block: 24px 32px; gap: 24px; }
  .sec-h h2 { font-size: 18px; }
  .chip { min-height: 36px; font-size: 14px; padding: 0 14px; }
  .chip:hover { border-color: var(--fg-3); color: var(--fg); }
  .chip[aria-pressed="true"]:hover { color: var(--bg); }
  .seg button { min-height: 34px; font-size: 14px; }
  .seg button:hover { color: var(--fg); }
  .mini-btn:hover, .follow:hover { filter: brightness(.97); }

  /* page columns */
  .cols { display: grid; gap: 28px; align-items: start; }
  .col, .wide-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
  .home-cols { grid-template-columns: minmax(0, 1fr) 360px; }
  .side-cols { grid-template-columns: 240px minmax(0, 1fr); }
  .side-nav { position: sticky; top: 84px; max-height: calc(100vh - 108px); overflow-y: auto; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 14px; }
  .side-nav .sec { gap: 6px; }
  .side-nav .chips { flex-direction: column; gap: 2px; overflow: visible; padding: 0; }
  .side-nav .chip { width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; min-height: 36px; padding: 6px 10px; color: var(--fg-2); white-space: normal; line-height: 1.3; }
  .side-nav .chip:hover { background: var(--surface-2); color: var(--fg); }
  .side-nav .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .side-nav .search { font-size: 14px; }
  .side-nav .seg button { white-space: nowrap; font-size: 13px; padding: 0 2px; }
  .live-stack .livecard { display: grid; grid-template-columns: minmax(0, 1fr) 230px; grid-template-areas: "head watch" "vs watch" "maps watch"; column-gap: 20px; row-gap: 10px; padding: 14px 20px 14px 18px; border-left: 3px solid var(--live, #d92d20); }
  .live-stack .livecard > .head { grid-area: head; }
  .live-stack .livecard > .vs { grid-area: vs; max-width: none; margin: 0; }
  .live-stack .livecard > .maps { grid-area: maps; justify-content: flex-start; display: flex; }
  .live-stack .livecard > .watchrow { grid-area: watch; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 18px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .live-stack .livecard .tm .en { display: none; }
  .live-stack .livecard .vs .cn { font-size: 17px; }
  .live-stack .livecard .vs .score { font-size: 32px; }
  .hero-row > .sec { min-width: 0; }
  .hero-row .sec-h { min-height: 34px; align-items: center; }
  .hero-row .livecard.hero { padding: 16px 18px; }
  .back:focus-visible { outline-offset: 3px; border-radius: 6px; }

  /* home */
  .main-col .livecard .vs { width: 100%; max-width: 560px; margin: 0 auto; }
  .main-col .livecard.hero { padding: 18px 22px; }

  /* match rows in wide columns read left to right: time · event · team score vs score team */
  .main-col .mrow, .wide-main .mrow { grid-template-columns: 64px minmax(0, 1fr); padding: 10px 16px; }
  .main-col .mrow .main, .wide-main .mrow .main { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 20px; align-items: center; }
  .main-col .mrow .mline, .wide-main .mrow .mline { flex-wrap: wrap; white-space: normal; row-gap: 3px; font-size: 12px; }
  .main-col .mrow .mline .ev, .wide-main .mrow .mline .ev { white-space: normal; flex-basis: 100%; }
  .main-col .mrow .sides, .wide-main .mrow .sides { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; gap: 0 10px; }
  .main-col .mrow .sides::after, .wide-main .mrow .sides::after { content: "vs"; order: 2; text-align: center; font-size: 12px; color: var(--fg-3); }
  .main-col .mrow .side, .wide-main .mrow .side { grid-template-columns: minmax(0, 1fr) 22px 26px; }
  .main-col .mrow .side:first-child, .wide-main .mrow .side:first-child { order: 1; }
  .main-col .mrow .side:first-child .nm, .wide-main .mrow .side:first-child .nm { order: 1; text-align: right; }
  .main-col .mrow .side:first-child .logo, .wide-main .mrow .side:first-child .logo { order: 2; }
  .main-col .mrow .side:first-child .sc, .wide-main .mrow .side:first-child .sc { order: 3; }
  .main-col .mrow .side:last-child, .wide-main .mrow .side:last-child { order: 3; grid-template-columns: 26px 22px minmax(0, 1fr); }
  .main-col .mrow .side:last-child .sc, .wide-main .mrow .side:last-child .sc { order: 1; text-align: left; }
  .main-col .mrow .side:last-child .logo, .wide-main .mrow .side:last-child .logo { order: 2; }
  .main-col .mrow .side:last-child .nm, .wide-main .mrow .side:last-child .nm { order: 3; }
  .wide-main .ko-col { flex: 1 0 200px; }
  .wide-main .rline { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; column-gap: 20px; row-gap: 2px; padding: 10px 16px; }
  .wide-main .rline .r2 { grid-template-columns: minmax(0, 1fr) 22px auto 22px minmax(0, 1fr); }
  .wide-main .rline .r2 > :nth-child(1) { order: 2; }
  .wide-main .rline .r2 > :nth-child(2) { order: 1; }
  .wide-main .rline .r2 > :nth-child(3) { order: 3; min-width: 64px; text-align: center; }
  .wide-main .rline .r2 > :nth-child(4) { order: 5; }
  .wide-main .rline .r2 > :nth-child(5) { order: 4; }
  .wide-main .rline .r3 { grid-column: 2; }
  .wide-main .cal-row { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 12px 16px; }
  .wide-main .evcard { padding: 16px 20px; }
  .wide-main .kv { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* teams: ranking in two columns (1-30 left, 31-60 right) */
  .teams-main .panel { columns: 2; column-gap: 0; column-rule: 1px solid var(--line); }
  .teams-main .panel > * { break-inside: avoid; }
  .teams-main .trow { grid-template-columns: 40px 40px minmax(0, 1fr) auto; }

  /* live: rooms side by side */
  #v-live { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; align-items: start; }
  #v-live > .note { grid-column: 1 / -1; }

  /* details open as a drawer on the right, the page stays visible behind */
  .sheet { left: auto; width: min(760px, 100vw); border-left: 1px solid var(--line); box-shadow: -18px 0 48px rgba(17, 22, 29, .18); animation: drawer .18s ease-out; }
  .sheet .wrap { max-width: none; padding-left: 28px; padding-right: 28px; }
  .sheet-bar { border-bottom: 1px solid var(--line); }
  .back:hover { text-decoration: underline; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .main-col .mrow .main, .wide-main .mrow .main { grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 14px; }
  .main-col .mrow .side .nm small, .wide-main .mrow .side .nm small { display: none; }
}
@media (min-width: 1280px) { .home-cols { grid-template-columns: minmax(0, 1fr) 400px; } }
/* ---------- match rows v3 (10-24): team | time or score | team ---------- */
.panel { container-type: inline-size; }
.mx { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; cursor: pointer; }
.mx:hover { background: var(--surface-2); }
.mx:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mx .mtop { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--fg-3); }
.mx .mtop .gt { flex: none; }
.mx .mtop .ev { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx .mtop .flags { margin-left: auto; display: flex; gap: 6px; flex: none; }
.mx .mtop .flags:empty { display: none; }
.mx .fz, .mx .fin, .mx .mk { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; line-height: 16px; }
.mx .fz { color: #fff; background: var(--accent); }
.mx .fin { color: #7a5600; background: #fff1c2; }
.mx .mk { color: #a87800; background: #fff6dc; }
.mx .mbody { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: start; gap: 6px; }
.mx .mbody > .mc { align-self: center; }
.mx .tb { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.mx .tb .logo { width: 38px; height: 38px; border-radius: 8px; flex: none; }
.mx .tn { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.mx .tn b { font-size: 15px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.mx .tn small { display: none; }
.mx .tb.lose .tn b { color: var(--fg-3); font-weight: 600; }
.mx .tb.lose .logo { opacity: .55; }
.mx .tb.fav .tn b::after { content: " ★"; color: #e0a800; font-size: 12px; }
.mx .mc { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mx .mt, .mx .msc { font-family: var(--f-num); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mx .msc { display: flex; align-items: center; gap: 8px; color: var(--fg-3); }
.mx .msc .w { color: var(--fg); }
.mx .msc i { font-style: normal; font-weight: 500; font-size: .8em; color: var(--fg-3); }
.mx .mb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; }
.mx .mb .bo { font-family: var(--f-num); font-weight: 700; font-size: 11px; letter-spacing: .04em; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; line-height: 17px; }
.mx .mb .ms { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.mx .mb .ms.live { color: var(--live); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.mx .mb .ms.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.mx .mmaps { font-size: 11px; color: var(--fg-3); text-align: center; }
.mx.is-live { background: color-mix(in srgb, var(--live) 5%, var(--surface)); }
.mx.is-live .msc, .mx.is-live .msc .w { color: var(--live); }
.mx.is-focus { box-shadow: inset 3px 0 0 var(--accent); }
.mx.final { box-shadow: inset 3px 0 0 #e0a800; }
.mx.done .mt { color: var(--fg-3); }
.mk-item .mk-note { padding: 0 14px 12px; text-align: center; }
.day-h { font-size: 14px; color: var(--fg); }
/* wide containers (desktop lists): name beside the logo, logos facing the middle */
@container (min-width: 540px) {
  .mx { padding: 12px 22px 16px; gap: 8px; }
  .mx .mtop { justify-content: center; }
  .mx .mtop .flags { position: absolute; right: 22px; top: 11px; }
  .mx .mbody { align-items: center; }
  .mx .mbody { grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 16px; }
  .mx .tb { flex-direction: row; gap: 14px; }
  .mx .tb.l { flex-direction: row-reverse; text-align: right; }
  .mx .tb.r { text-align: left; }
  .mx .tb .logo { width: 44px; height: 44px; border-radius: 10px; }
  .mx .tn b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .mx .tn small { display: block; font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .mx .mt, .mx .msc { font-size: 30px; }
  .mx .mb .ms { font-size: 12px; }
}
@keyframes drawer { from { transform: translateX(28px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
