nav a.on { color: var(--text); border-color: var(--accent); }

.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid transparent; border-radius: 12px; }
.st-row.top { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.st-no { font-size: 22px; font-weight: 900; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-row.top .st-no { color: var(--accent2); }
.st-main { min-width: 0; }
.st-main h3 { margin: 0; font-size: 15px; font-weight: 700; word-break: keep-all; }
.st-main p { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-main p b { color: var(--text); font-weight: 700; }
.st-day { text-align: right; white-space: nowrap; }
.st-day small { display: block; font-size: 11px; color: #8a8a92; }
.st-day strong { font-size: 16px; font-weight: 800; color: var(--accent2); font-variant-numeric: tabular-nums; }
.st-empty { margin: 0; padding: 40px 0; text-align: center; color: var(--muted); }
.st-note { margin: 24px 0 0; font-size: 12px; color: #8a8a92; }

@media (max-width: 600px) {
  .st-row { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 12px 14px; }
  .st-no { font-size: 18px; }
}

.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.st-tabs a { padding: 7px 14px; font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 99px; }
.st-tabs a:hover { border-color: #4a4a52; }
.st-tabs a[aria-current="page"] { color: var(--text); border-color: var(--accent); background: rgba(143, 179, 224, 0.1); }
.st-tabs + section { margin-top: 24px; }
.gt + .st-pane, .gt + .st-pane + .st-pane { margin-top: 0; }

#recLive { margin-bottom: 28px; }
#recLive .rec-h:first-child, #stMelon .rec-h:first-child { margin-top: 0; }
.lv-row { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 14px; margin-bottom: 8px; padding: 12px 16px; background: var(--surface); border: 1px solid transparent; border-radius: 12px; }
.lv-row.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.lv-no { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--accent2); }
.lv-no small { margin-left: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lv-row:not(.on) .lv-no { font-size: 13px; font-weight: 700; letter-spacing: 0; color: #5a6678; }
.lv-main h3 { margin: 0; font-size: 15px; font-weight: 700; word-break: keep-all; }
.lv-main p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.lv-like { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-note, .lv-empty { margin: 10px 0 0; font-size: 12px; color: #8a8a92; }
@media (max-width: 600px) { .lv-row { grid-template-columns: 60px 1fr; } .lv-like { grid-column: 2; } }

.rec-h { margin: 28px 0 10px; font-size: 15px; font-weight: 700; }
.st-note a { color: var(--accent); }

.st-tag { margin-left: 8px; padding: 0 7px; font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; vertical-align: 2px; white-space: nowrap; }
.st-tag.bil { color: #0b0b0d; background: #1ed760; border-color: #1ed760; font-weight: 800; }
.st-note b { color: var(--accent2); }

.lv-list { display: grid; gap: 8px; }
.lv-list .lv-row { margin-bottom: 0; }
@media (min-width: 761px) {
  .st-list, .lv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lv-hint { margin-left: 10px; font-size: 12px; font-weight: 400; color: #8a8a92; }
@media (max-width: 600px) { .lv-hint { display: block; margin: 4px 0 0; } }

.st-sum { margin: 0 0 10px; padding: 14px 18px; background: var(--surface); border-radius: 12px; }
.st-sum-a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.st-sum small { font-size: 13px; color: var(--muted); }
.st-sum b { font-size: 20px; font-weight: 800; color: var(--gold, #e8c170); font-variant-numeric: tabular-nums; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-chips:empty { display: none; }
.st-chips span { padding: 2px 10px; font-size: 12px; color: #cfcfd4; border: 1px solid #3a3a42; border-radius: 99px; }
.st-chips span.g { color: var(--gold, #e8c170); border-color: rgba(232, 193, 112, 0.5); }
@media (min-width: 601px) {
  .st-sum { display: flex; align-items: center; }
  .st-sum-a { display: contents; }
  .st-sum small { order: 1; }
  .st-chips { order: 2; flex: 1; margin: 0 16px; }
  .st-sum b { order: 3; margin-left: auto; }
}
.st-bar-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; }
.st-bar-top[hidden] { display: none; }
.st-cnt { font-size: 13px; color: var(--muted); }
.st-sort { position: relative; }
.st-sort-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 4px 6px 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: none; border: 0; cursor: pointer; }
.st-sort-btn svg { color: var(--dim, #8f8f98); }
.st-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: flex; flex-direction: column; min-width: 120px; padding: 4px; background: #18181b; border: 1px solid #2a2a31; border-radius: 10px; }
.st-menu[hidden] { display: none; }
.st-menu button { padding: 9px 12px; font: inherit; font-size: 13px; color: #a8a8b0; text-align: left; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.st-menu button:hover { background: rgba(255, 255, 255, 0.05); }
.st-menu button.on { color: var(--text); font-weight: 700; }
.st-menu button.on::before { content: "✓ "; color: var(--accent2); }
.st-bar { height: 4px; margin: 8px 0 0; background: rgba(255, 255, 255, 0.07); border-radius: 2px; }
.st-bar i { display: block; height: 100%; background: var(--gold, #e8c170); border-radius: 2px; }
.st-main p.st-goal { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 11.5px; color: #8f8f98; }
.st-main p.st-goal.big { margin-top: 2px; font-size: 11px; color: #6f6f78; }

.st-bar i { background: var(--accent); }
.st-bar.soon i { background: var(--gold, #e8c170); }
.st-main p.st-goal.soon { color: var(--gold, #e8c170); }
.st-main p.st-goal.empty { visibility: hidden; }
.st-tag.bil { color: var(--gold, #e8c170); background: none; border-color: rgba(232, 193, 112, 0.5); font-weight: 700; }
.st-dm { display: none; }
.st-dm em { font-style: normal; font-weight: 700; color: var(--accent2); }
@media (max-width: 600px) {
  .st-dm { display: inline; }
  .st-day { display: none; }
  .st-row { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 11px 12px; }
  .st-list { gap: 6px; }
  .st-main p.st-goal.empty { display: none; }
}

.lv-row.mx-row { grid-template-columns: 72px minmax(0, 1fr); }
.mx-row .lv-no small { display: inline; }
#mxPane .rec-h:first-child { margin-top: 0; }

.mx-seg { display: inline-flex; margin: 0 0 14px; padding: 2px; background: var(--surface); border-radius: 99px; }
.mx-seg button { padding: 5px 14px; font: inherit; font-size: 12.5px; color: var(--muted); background: none; border: 0; border-radius: 99px; cursor: pointer; }
.mx-seg button[aria-pressed="true"] { color: var(--text); background: var(--line); }


.ma-card { margin: 0 0 8px; padding: 14px 16px; background: var(--surface); border-radius: 12px; }
.ma-card h3 { margin: 0; font-size: 15px; font-weight: 700; word-break: keep-all; }
.ma-card > p { margin: 3px 0 12px; font-size: 12.5px; color: var(--muted); }
.ma-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ma-c { padding: 7px 10px; background: var(--bg, #0b0b0d); border: 1px solid var(--line); border-radius: 8px; }
.ma-c.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ma-c small { display: block; font-size: 11px; color: var(--muted); }
.ma-c b { font-size: 16px; font-weight: 800; color: var(--accent2); font-variant-numeric: tabular-nums; }
.ma-c b i { margin-left: 1px; font-size: 11px; font-style: normal; font-weight: 600; color: var(--muted); }
.ma-c b.no { font-weight: 400; color: #5a5a62; }
.ma-c .mc-chg { margin-left: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-c .mc-chg.new { font-size: 11px; }
.ma-list.lv-list { grid-template-columns: 1fr; }
@media (max-width: 600px) { .ma-c { padding: 7px 6px; } .ma-c b { font-size: 15px; } .ma-c .mc-chg { display: block; margin: 1px 0 0; font-size: 12.5px; } .ma-c .mc-chg.new { font-size: 11px; } }

.st-tabs.mx-tabs { display: flex; flex-wrap: nowrap; gap: 18px; margin: 0 0 14px; padding: 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.st-tabs.mx-tabs::-webkit-scrollbar { display: none; }
.st-tabs.mx-tabs a { flex: none; padding: 8px 0; margin-bottom: -1px; font-size: 14px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.st-tabs.mx-tabs a:hover { color: var(--text); }
.st-tabs.mx-tabs a[aria-current="page"] { color: var(--text); font-weight: 600; background: none; border-bottom-color: var(--accent2); }

.mx-foot { display: flex; justify-content: flex-end; gap: 10px; margin: 4px 0 0; }
.mx-foot a { font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mx-foot a:hover { color: var(--text); }

.mc-list { margin: 0 0 8px; border-top: 1px solid var(--line); }
.mc-hd, .mc-row { display: grid; align-items: center; column-gap: 14px; grid-template-columns: 40px 56px 56px minmax(0, 1.4fr) minmax(0, 1fr) 84px; grid-template-areas: "rk cg th tx al lk"; }
.mc-list.nolike .mc-hd, .mc-list.nolike .mc-row { grid-template-columns: 40px 56px 56px minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "rk cg th tx al"; }
.mc-hd { padding: 10px 6px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mc-hd .h-rk { grid-column: rk-start / cg-end; text-align: center; }
.mc-hd .h-tx { grid-column: th-start / tx-end; }
.mc-hd .h-al { grid-area: al; }
.mc-hd .h-lk { grid-area: lk; text-align: center; }
.mc-row { padding: 10px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mc-row:hover, .mc-row:focus-visible { background: rgba(255, 255, 255, 0.03); outline: 0; }
.mc-rk { grid-area: rk; text-align: center; font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.mc-cg { grid-area: cg; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-chg.up { color: #ff4f7b; }
.mc-chg.down { color: #4a9dff; }
.mc-chg.same { color: #6f6f78; }
.mc-chg.new { color: var(--gold, #e8c170); font-size: 11px; }
.mc-th { grid-area: th; display: block; width: 56px; height: 56px; border-radius: 4px; object-fit: cover; background: var(--surface); }
.mc-tx { grid-area: tx; min-width: 0; }
.mc-tx h3 { margin: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-tx p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-al { grid-area: al; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-lk { grid-area: lk; font-size: 12.5px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  .mc-hd { display: none; }
  .mc-row, .mc-list.nolike .mc-row { grid-template-columns: 52px 38px minmax(0, 1fr); grid-template-rows: 1fr 1fr; grid-template-areas: "th rk tx" "th cg tx"; column-gap: 12px; padding: 10px 0; }
  .mc-th { width: 52px; height: 52px; }
  .mc-rk { align-self: end; font-size: 19px; line-height: 1.15; }
  .mc-cg { align-self: start; margin-top: 2px; text-align: center; font-size: 12.5px; line-height: 1.15; }
  .mc-list:not(.nolike) .mc-row { grid-template-columns: 52px 38px minmax(0, 1fr) auto; grid-template-areas: "th rk tx lk" "th cg tx lk"; }
  .mc-lk { font-size: 12px; align-self: center; justify-self: end; padding-left: 8px; text-align: right; }
  .mc-al { display: none; }
}

.gh-r { flex-direction: row; align-items: center; gap: 12px; }
.ci-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.ci-btn:hover { color: var(--text); }
.ci-ov { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.6); }
.ci-ov[hidden] { display: none; }
.ci-box { width: 100%; max-width: 380px; max-height: 80vh; overflow: auto; padding: 18px 20px 20px; background: #18181b; border: 1px solid #2a2a31; border-radius: 14px; }
.ci-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ci-hd b { font-size: 16px; font-weight: 800; }
.ci-x { padding: 0 2px; font-size: 24px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.ci-box h4 { margin: 14px 0 3px; font-size: 13.5px; font-weight: 700; }
.ci-box p { margin: 0; font-size: 13px; line-height: 1.65; color: #b0b0b8; word-break: keep-all; }
@media (max-width: 600px) { .gh-r { justify-content: space-between; width: 100%; } }
