/* Match detail 右侧栏:交锋史、我的注单、边际图例。README《03 Match detail》右栏部分。
 * 由 match.css 拆出。这些块只出现在侧栏 328px 宽的上下文里,与主栏组件无共用。 */

/* ===== 右侧栏 ===== */
.rail__block {
  display: flex;
  flex-direction: column;
}
.h2h {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.h2h__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--card);
}
.h2h__row:last-child {
  border-bottom: none;
}
.h2h__date {
  font-size: 10px;
  color: var(--muted2);
}
.h2h__label {
  font-size: 11.5px;
  color: var(--text2);
  text-align: center;
}
.h2h__score {
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
}

.mybets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.mybet {
  border: 1px solid var(--lime-dim);
  border-radius: 8px;
  background: var(--card);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mybet__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.mybet__pick {
  font-size: 12px;
  font-weight: 600;
}
.mybet__odds {
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
}
.mybet__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mybet__meta span {
  font-size: 10.5px;
  color: var(--muted);
}
/* 虚线边框是"这里本该有东西但还没有"的通用信号,实线会读成一张空卡片。 */
.rail__empty {
  margin: 10px 0 0;
  padding: 16px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted2);
}

.legend {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 14px;
}
.legend__rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}
.legend__row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.legend__bar {
  width: 18px;
  height: 10px;
  background: var(--bar-fill);
  border-radius: 2px;
  flex: none;
}
.legend__tick {
  width: 18px;
  height: 10px;
  border-left: 1.5px solid var(--muted);
  flex: none;
}
.legend__name {
  font-size: 11px;
  color: var(--muted);
}
.legend__note {
  margin: 12px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted2);
}
