/* ═══════════════════════════════════════════════
   stats.css — 서버통계 페이지
   v2 디자인 시스템 (exchange.css + lowest.css) 기반
   ═══════════════════════════════════════════════ */

/* ── ⓪ 전서버 평균 추이 헤더 ────────── */
.st-header-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-primary);
}

.st-header-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 20px;
  border-right: 1px solid var(--border-secondary);
}

.st-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-header-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.st-header-title i {
  font-size: 14px;
  color: var(--color-accent);
}

.st-header-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.st-header-price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}

.st-header-price.up { color: var(--color-up); }
.st-header-price.down { color: var(--color-down); }

.st-header-unit {
  font-size: 11px;
  color: var(--text-tertiary);
}

.st-header-change-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.st-header-change-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.st-header-change-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* 거래소별 시세 */
.st-header-sources {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-right: 1px solid var(--border-secondary);
}

.st-header-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.st-header-source .source-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.st-header-source .source-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 7일 스파크라인 */
.st-header-sparkline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px;
  border-right: 1px solid var(--border-secondary);
  min-width: 0;
}

.st-header-sparkline .sparkline-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.st-header-sparkline svg {
  width: 100%;
  height: 36px;
}

.st-header-sparkline .spark-line {
  fill: none;
  stroke-width: 1.5;
}

.st-header-sparkline .spark-up { stroke: var(--color-up); }
.st-header-sparkline .spark-down { stroke: var(--color-down); }

/* 통계 2x2 */
.st-header-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.st-header-stat {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-secondary);
  border-right: 1px solid var(--border-secondary);
}

.st-header-stat:nth-child(2),
.st-header-stat:nth-child(4) { border-right: none; }
.st-header-stat:nth-child(3),
.st-header-stat:nth-child(4) { border-bottom: none; }

.st-header-stat .stat-label {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.st-header-stat .stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.st-header-stat .stat-value.high { color: var(--color-up); }
.st-header-stat .stat-value.low { color: var(--color-down); }

/* ── ① 요약 카드 4종 (아이콘 + 히어로) ─── */
.st-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-secondary);
}

.st-summary-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--border-secondary);
}

.st-summary-card:last-child { border-right: none; }

/* 아이콘 원형 배경 */
.st-sc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(240, 185, 11, 0.08);
  margin-top: 1px;
  flex-shrink: 0;
}

.st-sc-icon i {
  font-size: 18px;
  color: var(--color-accent);
}

.st-sc-icon.hot { background: rgba(255, 152, 0, 0.08); }
.st-sc-icon.hot i { color: #FF9800; }
.st-sc-icon.up { background: rgba(14, 203, 129, 0.08); }
.st-sc-icon.up i { color: var(--color-up); }
.st-sc-icon.down { background: rgba(234, 57, 67, 0.08); }
.st-sc-icon.down i { color: var(--color-down); }

.st-sc-body { min-width: 0; flex: 1; }

.st-sc-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.st-sc-hero {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.st-sc-hero.up { color: var(--color-up); }
.st-sc-hero.down { color: var(--color-down); }
.st-sc-hero.muted { color: var(--text-muted); }

.st-sc-sub {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.st-sc-sub.up { color: var(--color-up); }
.st-sc-sub.down { color: var(--color-down); }
.st-sc-sub.muted { color: var(--text-tertiary); font-weight: 400; }

.st-sc-sub i { font-size: 12px; }

.st-sc-sub-label {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 4px;
}

.st-sc-sub-sep {
  color: var(--text-tertiary);
  margin: 0 1px;
}

/* ── 공통 섹션 ─────────────────────────── */
/* ── 신규 서버 안내 ─── */
.st-new-server-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border-bottom: 1px solid var(--border-secondary);
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.st-new-server-notice i {
  font-size: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── ② 섹션 공통 ─── */
.st-section {
  border-bottom: 1px solid var(--border-primary);
}
.st-section:last-child { border-bottom: none; }

.st-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height, 40px);
  padding: 0 8px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-secondary);
  gap: 0;
}
.st-section-header:has(.section-controls) { padding-right: 0; }
.st-section-header:has(.section-tabs) { align-items: stretch; overflow: visible; }

.st-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  padding: 0 6px;
}

.st-unit-label {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 8px;
  font-family: var(--font-mono);
}

.st-tab-pane { display: none; }
.st-tab-pane.active { display: block; }

.st-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── ② 히트맵 ──────────────────────────── */
.st-spread-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 16px;
  height: 36px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-secondary);
  font-size: 11px;
}

.st-spread-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.st-spread-item i { font-size: 10px; }
.st-spread-item.up i { color: var(--color-up); }
.st-spread-item.down i { color: var(--color-down); }
.st-spread-item b { font-family: var(--font-mono); font-weight: 700; }
.st-spread-item.up b { color: var(--color-up); }
.st-spread-item.down b { color: var(--color-down); }

.st-spread-line {
  flex: 1;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, var(--color-up), var(--border-secondary) 50%, var(--color-down));
  opacity: 0.4;
}

.st-spread-center {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  padding: 0 4px;
}

.st-spread-center b {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
}

.st-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--border-secondary);
}

.st-heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 8px;
  cursor: pointer;
  position: relative;
  background: var(--bg-elevated);
}

.st-heatmap-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cell-bg, transparent);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.st-heatmap-cell:hover::before {
  opacity: 1;
}

.st-heatmap-cell > * {
  position: relative;
  z-index: 1;
}

.hm-name { font-size: 11px; font-weight: 600; color: var(--text-primary); }
.hm-price { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.hm-change { font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.hm-change.up { color: var(--color-up); }
.hm-change.down { color: var(--color-down); }

/* ── ②-b 시간대별 거래활동 ── */
.st-hourly-bar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 21px 16px 5px;
  height: 140px;
}

.st-hbar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.st-hbar {
  width: 100%;
  min-height: 2px;
  background: var(--color-accent);
  border-radius: 2px 2px 0 0;
  transition: background 0.2s;
  transform-origin: bottom;
  animation: hbar-rise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

@keyframes hbar-rise {
  0%   { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

.st-hbar-col:hover .st-hbar { background: rgba(240,185,11,0.35); }
.st-hbar-col.peak .st-hbar { background: var(--color-accent); }
.st-hbar-col.current .st-hbar { background: var(--text-primary); }

.st-hbar-col:hover::before {
  content: attr(data-val) '건';
  position: absolute;
  top: -16px;
  font-size: 9px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-active);
  padding: 1px 4px;
  border-radius: 2px;
}

.st-hbar-label {
  font-size: 9px;
  color: var(--text-muted);
  padding-top: 4px;
  line-height: 1;
}

.st-hbar-col.current .st-hbar-label { color: var(--text-primary); font-weight: 700; }
.st-hbar-col.peak .st-hbar-label { color: var(--color-accent); font-weight: 600; }

/* ── ③ 2열 패널 ────────────────────────── */
.st-dual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-primary);
}

.st-dual-panel > .st-section {
  border-bottom: none;
  min-width: 0;
  overflow: hidden;
}

.st-dual-panel > .st-section:first-child {
  border-right: 1px solid var(--border-primary);
}

/* 변동률 랭킹 행 — 통일 테이블 */

/* 탭 앞 여백 제거 */
.st-section-header:has(.st-tabs-flush) { padding-left: 0; }
.st-tabs-flush .section-tab:first-child { border-left: none; }

/* 공통 테이블 헤더 */
.st-tbl-header {
  display: grid;
  gap: 6px;
  padding: 0 12px;
  height: 28px;
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-secondary);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.st-th.center { text-align: center; }
.st-th.right { text-align: right; }

/* 공통 테이블 행 */
.st-tbl-row {
  display: grid;
  gap: 6px;
  padding: 0 12px;
  height: 32px;
  align-items: center;
  border-bottom: 1px solid var(--border-secondary);
  transition: background 0.15s;
}
.st-tbl-row:hover { background: var(--bg-hover); }
.st-tbl-row:nth-child(10) { border-bottom: none; }

/* 셀 스타일 */
.st-td { font-size: 11px; color: var(--text-secondary); }
.st-td.center { text-align: center; }
.st-td.right { text-align: right; }
.st-td.mono { font-family: var(--font-mono); }
.st-td.rank { font-weight: 700; color: var(--text-muted); }
.st-td.name { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-td.up { color: var(--color-up); font-weight: 700; }
.st-td.down { color: var(--color-down); font-weight: 700; }
.st-td.muted { color: var(--text-muted); }

.st-tbl-row:nth-child(1) .st-td.rank { color: var(--color-accent); }
.st-tbl-row:nth-child(2) .st-td.rank { color: var(--text-secondary); }

/* 급등/급락 그리드 */
.st-change-grid { grid-template-columns: 24px 72px 1fr 64px 72px; }

/* 거래량 그리드 */
.st-vol-grid { grid-template-columns: 24px 1fr 72px 64px 96px; }

.st-rank-bar-wrap { height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.st-rank-bar { height: 100%; border-radius: 3px; transition: width 0.3s ease; }
.st-rank-bar.up { background: var(--color-up); }
.st-rank-bar.down { background: var(--color-down); }

/* ── ⑤ 거래소 점유율 ─────────────────────── */

/* 프리미엄 제외 토글 */
.st-premium-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.st-premium-toggle input { display: none; }

.st-toggle-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--bg-active);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.st-premium-toggle input:checked ~ .st-toggle-box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.st-toggle-box::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translate(0, -1px);
}

.st-premium-toggle input:checked ~ .st-toggle-box::after {
  border-color: #000;
}

.st-toggle-text {
  font-size: 11px;
  color: var(--text-secondary);
}
.st-share-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px 24px;
}

.st-donut-wrap { flex-shrink: 0; }

.st-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-donut-center {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.st-donut-total { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text-primary); }
.st-donut-label { font-size: 9px; color: var(--text-muted); }

.st-donut-highlight {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 1;
  -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px);
  mask: radial-gradient(circle, transparent 29px, #000 30px);
}

.st-donut-highlight.active {
  opacity: 1;
  transform: scale(1);
}

.st-share-legend { display: flex; flex-direction: column; gap: 2px; }

.st-legend-item {
  display: grid;
  grid-template-columns: 110px 56px 80px;
  align-items: center;
  padding: 6px 6px 6px 8px;
  border-left: 2px solid transparent;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: background 0.15s;
}

.st-legend-item:hover { background: var(--bg-hover); }

.st-legend-item[data-source="1"] { border-left-color: var(--color-barotem); background: rgba(79,195,247,0.06); }
.st-legend-item[data-source="2"] { border-left-color: var(--color-itemmania); background: rgba(174,213,129,0.06); }
.st-legend-item[data-source="3"] { border-left-color: var(--color-itembay); background: rgba(255,183,77,0.06); }

.st-legend-dot { display: none; }
.st-legend-name { font-weight: 500; white-space: nowrap; }
.st-legend-item[data-source="1"] .st-legend-name { color: var(--color-barotem); }
.st-legend-item[data-source="2"] .st-legend-name { color: var(--color-itemmania); }
.st-legend-item[data-source="3"] .st-legend-name { color: var(--color-itembay); }
.st-legend-pct { font-family: var(--font-mono); font-weight: 700; color: var(--text-secondary); text-align: right; }
.st-legend-cnt { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-align: right; }

/* 가격비교 테이블 */
.st-price-table-wrap { overflow-x: auto; }

.st-price-table-header {
  display: grid;
  grid-template-columns: 80px repeat(3, 1fr) 80px;
  gap: 8px;
  padding: 0 16px;
  height: 28px;
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-secondary);
  font-size: 11px;
  color: var(--text-muted);
}

.st-pth.right, .st-ptd.right { text-align: right; }

.st-price-table-row {
  display: grid;
  grid-template-columns: 80px repeat(3, 1fr) 80px;
  gap: 8px;
  padding: 8px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-secondary);
  font-size: 12px;
  transition: background 0.15s;
}
.st-price-table-row:hover { background: var(--bg-hover); }

.st-ptd.name { font-weight: 600; color: var(--text-primary); }
.st-ptd { font-family: var(--font-mono); color: var(--text-secondary); }
.st-ptd.lowest { color: var(--color-up); font-weight: 700; }
.st-ptd.up { color: var(--color-up); }
.st-ptd.down { color: var(--color-down); }
/* ── 날짜 입력 (히트맵 셀렉트 스타일) ───── */
.st-date-input {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 8px;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s;
  color-scheme: dark;
}
.st-date-input:hover { color: var(--text-primary); }
.st-date-input:focus { outline: none; color: var(--text-primary); }
.section-controls {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 1px solid var(--border-secondary);
}

/* ── ⑥ 비교 테이블 ─────────────────────── */
.st-compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.st-compare-header {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr 1.8fr 2fr 1.8fr 1.6fr 1.6fr 1.6fr 1.2fr 2fr;
  gap: 8px;
  padding: 0 16px;
  height: 28px;
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-secondary);
  font-size: 11px;
  color: var(--text-muted);
}

.st-cth { cursor: pointer; user-select: none; transition: color 0.15s; display: flex; align-items: center; gap: 3px; }
.st-cth:hover { color: var(--text-secondary); }
.st-cth.right { justify-content: flex-end; }
.st-cth.center { justify-content: center; }

.st-compare-row {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr 1.8fr 2fr 1.8fr 1.6fr 1.6fr 1.6fr 1.2fr 2fr;
  gap: 8px;
  padding: 8px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-secondary);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.st-compare-row::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform 0.2s;
}
.st-compare-row:hover { background: var(--bg-hover); }
.st-compare-row:hover::before { transform: scaleY(1); }
.st-compare-row:last-child { border-bottom: none; }

.st-ctd { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.st-ctd.name { font-family: inherit; font-weight: 600; color: var(--text-primary); }
.st-ctd.right { text-align: right; }
.st-ctd.center { text-align: center; }
.st-ctd.up { color: var(--color-up); }
.st-ctd.down { color: var(--color-down); }
.st-ctd.price { font-weight: 700; }
.st-ctd.src { color: var(--text-muted); }
.st-ctd.lowest { color: var(--color-accent); font-weight: 700; }

.st-ctd.spark { display: block; width: 100%; overflow: hidden; padding: 4px 12px 4px 10px; box-sizing: border-box; }
.st-ctd.spark svg { display: block; width: 100%; height: 24px; }
.spark-line { fill: none; stroke-width: 1.5; }
.spark-up { stroke: var(--color-up); }
.spark-down { stroke: var(--color-down); }

/* ── ⑥ 마켓 인사이트 ─────────────────────── */
.st-insights-list { padding: 0; }

.st-insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-secondary);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: background 0.15s;
}
.st-insight-item:last-child { border-bottom: none; }
.st-insight-item:hover { background: var(--bg-hover); }

.st-insight-icon { font-size: 16px; flex-shrink: 0; }
.st-insight-text { flex: 1; }

.st-insight-item.up { border-left: 2px solid var(--color-up); }
.st-insight-item.down { border-left: 2px solid var(--color-down); }
.st-insight-item.info { border-left: 2px solid var(--color-accent); }

/* 가격 안정도 그리드 */
.st-stability-grid { grid-template-columns: 24px 1fr 72px 72px 64px; }

/* 서버별 거래소 점유율 그리드 */
.st-srvsrc-grid { grid-template-columns: 24px 1fr 56px 56px 56px 64px; }

/* ── ⑦ 체결 피드 ───────────────────────── */
.st-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-up);
  box-shadow: 0 0 6px rgba(14, 203, 129, 0.5);
  animation: st-pulse 2s infinite;
}

@keyframes st-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.st-feed-list { max-height: 400px; overflow-y: auto; }

.st-feed-row {
  display: grid;
  grid-template-columns: 80px 80px 1fr 64px 52px;
  gap: 8px;
  padding: 8px 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-secondary);
  transition: background 0.15s;
  font-size: 12px;
}
.st-feed-row:hover { background: var(--bg-hover); }
.st-feed-row:last-child { border-bottom: none; }

.st-feed-server { font-weight: 600; color: var(--text-primary); }
.st-feed-price { font-family: var(--font-mono); font-weight: 600; color: var(--text-secondary); text-align: right; }
.st-feed-qty { font-family: var(--font-mono); color: var(--text-muted); text-align: right; }
.st-feed-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-align: center; }

/* ── 반응형 ─────────────────────────────── */
@media (max-width: 600px) {
  /* 1023px 규칙 병합 */
  .st-header-board { grid-template-columns: 1fr 1fr; }
  .st-header-info { border-bottom: 1px solid var(--border-secondary); }
  .st-header-sparkline { border-bottom: 1px solid var(--border-secondary); }
  .st-header-stats { border-right: none; }
  .st-dual-panel { grid-template-columns: 1fr; }
  .st-dual-panel > .st-section:first-child { border-right: none; border-bottom: 1px solid var(--border-primary); }
  .st-rank-row { grid-template-columns: 24px 72px 1fr 64px 72px; }

  .st-header-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }

  /* 가격 정보 — 1행 왼쪽 */
  .st-header-info {
    grid-row: 1; grid-column: 1;
    padding: 12px 16px;
    border-right: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
  }
  .st-header-price { font-size: 22px; }

  /* 스파크라인 — 1행 오른쪽 */
  .st-header-sparkline {
    grid-row: 1; grid-column: 2;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--border-secondary);
  }

  /* 거래소시세 — 2행 전폭 */
  .st-header-sources {
    grid-row: 2; grid-column: 1 / -1;
    flex-direction: row; gap: 16px;
    padding: 10px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-secondary);
  }
  .st-header-source { flex-direction: column; gap: 1px; }

  /* 통계 2x2 — 3행 전폭 */
  .st-header-stats { grid-row: 3; grid-column: 1 / -1; border-right: none; }
  .st-header-stat { padding: 6px 16px; }
  .st-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .st-summary-card { gap: 10px; padding: 12px 14px; border-right: 1px solid var(--border-secondary); border-bottom: 1px solid var(--border-secondary); }
  .st-summary-card:nth-child(2),
  .st-summary-card:nth-child(4) { border-right: none; }
  .st-summary-card:nth-child(3),
  .st-summary-card:nth-child(4) { border-bottom: none; }
  .st-sc-icon { width: 32px; height: 32px; border-radius: 6px; }
  .st-sc-icon i { font-size: 16px; }
  .st-sc-hero { font-size: 16px; }

  .st-heatmap-grid { grid-template-columns: repeat(4, 1fr); }
  .st-spread-bar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 4px; }
  .st-spread-line { display: none; }

  .st-rank-row { grid-template-columns: 20px 64px 1fr 56px; }
  .st-rank-price { display: none; }

  .st-hourly-chart { height: 140px; padding: 12px 8px 6px; gap: 1px; }
  .st-hour-val { font-size: 8px; }
  .st-hour-label { font-size: 7px; }

  .st-vol-table-header,
  .st-vol-row { grid-template-columns: 28px 1fr 72px 56px; }
  .st-vol-table-header > :nth-child(5),
  .st-vol-row > :nth-child(5) { display: none; }

  .st-share-layout { grid-template-columns: 1fr; justify-items: center; }

  .st-price-table-header,
  .st-price-table-row { grid-template-columns: 64px repeat(3, 1fr) 56px; font-size: 11px; }

  .st-compare-header,
  .st-compare-row { min-width: 720px; grid-template-columns: 72px 64px 64px 72px 64px 56px 56px 56px 40px 1fr; font-size: 11px; gap: 4px; padding: 6px 10px; }

  .st-feed-row { grid-template-columns: 64px 64px 1fr 48px 40px; font-size: 11px; gap: 4px; }
}
