/* ===== 多彩星图 · 图表页样式（电视走势图 + 6 个照片复刻版） ===== */
:root {
  --ink: #12335C;
  --grid: #CFD8E3;
  --grid-2: #A8B8CC;
  --head-bg: #D9E8F6;
  --band: #1668B8;
  --red: #C8102E;
  --green: #1E8449;
  --blue: #1976D2;
  --amber: #E8862B;
  --ball-red: #C8102E;    /* 结果面板红球底色（管理后台可改） */
  --ball-blue: #1976D2;   /* 结果面板蓝球底色（管理后台可改） */
  --code-bg: #EDF3F9;
  --tone-pink: #FCEEF2;
  --tone-yellow: #FFFCE6;
  --tone-cyan: #EAF7F7;
  --tone-purple: #F4F0FA;
  --tone-cream: #FFFBEA;
  --tone-green: #EFF8EE;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  background: #EEF2F6; color: var(--ink); font-size: 13px; line-height: 1.4;
  display: flex; flex-direction: column; overflow: hidden;
}

/* ========== 顶栏 ========== */
.app-head {
  flex: none; background: linear-gradient(180deg, #1C6FC4 0%, #0B4E93 60%, #08386B 100%);
  color: #fff; padding: 0 16px; height: 54px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 2px 6px rgba(0,30,70,.35);
}
.app-head .brand { display: flex; align-items: center; gap: 8px; font-size: 17px; letter-spacing: 2px; color: #FFE9C8; text-decoration: none; }
.app-head .brand img { width: 30px; height: 30px; border-radius: 6px; }
.app-head h1 { font-size: 20px; font-weight: 700; letter-spacing: 2px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-head .head-right { display: flex; align-items: center; gap: 14px; }
.app-head .tip { font-size: 12px; color: #C9E1F8; }
.app-head .tip b { color: #FFC64B; }
.app-head .back {
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none; font-size: 13px;
  padding: 5px 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.3);
}
.app-head .back:hover { background: rgba(255,255,255,.26); }

/* 期数选择器（默认自动按屏幕宽度适配） */
.rows-sel {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px; font-size: 12px; font-family: inherit; padding: 5px 6px; cursor: pointer;
  max-width: 128px;
}
.rows-sel:hover { background: rgba(255,255,255,.26); }
.rows-sel option { color: #12335C; background: #fff; }
/* 窄屏适配规则统一放在本文件末尾（见文末「窄屏适配」块） */

/* ========== 彩种条 / 样式条 ========== */
.type-bar {
  flex: none; background: #0B4E93; border-bottom: 1px solid #062C55;
  display: flex; gap: 0; padding: 0 8px; height: 34px; align-items: stretch;
}
.type-bar .tb {
  border: 0; background: transparent; color: #BBD8F5; font-size: 14px; letter-spacing: 2px;
  padding: 0 22px; cursor: pointer; font-family: inherit; position: relative;
}
.type-bar .tb:hover { color: #fff; background: rgba(255,255,255,.08); }
.type-bar .tb.on { color: #fff; background: rgba(255,255,255,.16); font-weight: 600; }
.type-bar .tb.on::after { content:''; position:absolute; left:12px; right:12px; bottom:0; height:3px; background:#FFC64B; border-radius:2px 2px 0 0; }

.style-bar {
  flex: none; background: #F4F8FC; border-bottom: 1px solid var(--grid-2);
  display: flex; gap: 8px; padding: 6px 12px; align-items: center; overflow-x: auto;
}
.style-bar .sb {
  border: 1px solid #B9CFE6; background: #fff; color: #2A5C96; font-size: 12px;
  padding: 5px 14px; border-radius: 14px; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.style-bar .sb:hover { border-color: #7FA9D6; }
.style-bar .sb.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* ========== 主体 ========== */
/* 图表主体：宽度自适应 —— 表格铺满可视宽度，不够宽时横向滚动 */
.chart-body {
  flex: 1; min-height: 0; overflow: auto; padding: 6px 8px 8px;
  background: #fff; border-top: 0;
}
.chart-body > * { min-width: 100%; }
.loading { padding: 40px; text-align: center; color: #5B7A9E; }

.app-foot {
  flex: none; background: linear-gradient(180deg, #1C6FC4, #0B4E93);
  color: #E4F0FC; font-size: 12px; letter-spacing: 1px; padding: 6px 16px;
  display: flex; gap: 24px; border-top: 1px solid #062C55;
}
.app-foot span:last-child { flex: 1; text-align: center; color: #C9E1F8; }

/* ========== 通用表格 ========== */
table.tbl { border-collapse: collapse; table-layout: fixed; width: max-content; }
table.tbl th, table.tbl td {
  border: 1px solid var(--grid); text-align: center; vertical-align: middle;
  font-weight: 400; overflow: hidden; padding: 0;
}
table.tbl thead tr.zone th {
  background: var(--band); color: #fff; font-size: 13px; letter-spacing: 3px; height: 26px; font-weight: 500;
}
table.tbl thead tr.nrow th { background: var(--head-bg); color: var(--ink); font-size: 12px; height: 22px; }
table.tbl tbody td { height: 22px; font-size: 12px; }

td.c-idx, th.c-idx {
  background: var(--code-bg); color: #2A4E80; font-size: 11px; width: 42px; min-width: 42px;
  border-right: 2px solid var(--grid-2); position: sticky; left: 0; z-index: 3;
}
td.c-idx.issue { background: #FDF1F2; color: var(--red); font-weight: 700; font-size: 12px; }
td.c-draw, th.c-draw {
  background: #fff; color: var(--red); font-size: 14px; font-weight: 700; width: 62px; min-width: 62px;
  border-right: 2px solid var(--grid-2); letter-spacing: 1px;
}
td.c-draw b { font-weight: 700; }
td.c-stat { font-size: 12px; font-weight: 600; width: 44px; min-width: 44px; }
td.c-stat.t-r { color: var(--red); }
td.c-stat.t-k { color: #1A1A1A; }

/* 分区底色 */
.tone-pink   { background: var(--tone-pink); }
.tone-yellow { background: var(--tone-yellow); }
.tone-cyan   { background: var(--tone-cyan); }
.tone-purple { background: var(--tone-purple); }
.tone-cream  { background: var(--tone-cream); }
.tone-green  { background: var(--tone-green); }
.tone-k1 { background: #EDF6EE; }
.tone-k2 { background: #FBF0F3; }
.tone-k3 { background: #EDF4FC; }
.tone-k4 { background: #F5F0FA; }

/* 命中方块 */
span.hit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 19px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 2px; line-height: 1;
}
span.hit.dup { background: var(--green); }
span.hit.spec { background: var(--green); }

/* 文字型号码 */
span.tx { font-size: 13px; font-weight: 700; color: #1A1A1A; }
span.tx.r { color: var(--red); }
span.tx.k { color: #1A1A1A; }
span.tx.dup { color: var(--green); }
span.tx.spec { color: var(--blue); }
span.tx.link { color: var(--blue); }
/* 冷号蓝 / 连号红 —— 快乐8 全系列与电视版同口径 */
span.tx.cold { color: var(--blue); }
span.tx.hot { color: var(--red); }

/* 圆球 */
span.ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
}
span.ball.red { background: radial-gradient(circle at 35% 28%, #E8485C, #C8102E 72%); }
span.ball.blue { background: radial-gradient(circle at 35% 28%, #6E9BE0, #1E5FA8 72%); }

/* ========== 中国福彩官方 banner ========== */
.cwl-banner {
  display: flex; align-items: center; gap: 16px; padding: 10px 18px;
  background: linear-gradient(180deg, #D2232A 0%, #B01419 100%); color: #FFE9A8;
}
.cwl-banner .logo { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 2px; }
.cwl-banner .ttl { font-size: 22px; font-weight: 700; letter-spacing: 4px; color: #FFD84D; }
.cwl-banner .sub { margin-left: auto; font-size: 12px; color: #FFC9C9; }
.cwl-yellow { height: 16px; background: linear-gradient(180deg, #FFE14D, #F5C400); }
.cwl-foot {
  padding: 9px 16px; background: linear-gradient(180deg, #D2232A, #A8121A); color: #FFE0E0;
  font-size: 12px; letter-spacing: 1px; text-align: center;
}

/* ========== 白底红弧版 ========== */
.arc-head {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: #fff;
  border-bottom: 1px solid #E2E2E2;
}
.arc-head .logo { font-size: 16px; font-weight: 700; color: #222; letter-spacing: 2px; }
.arc-head .ttl {
  font-size: 21px; font-weight: 700; letter-spacing: 3px; color: #FFD84D;
  background: linear-gradient(120deg, #E33A3A 0%, #C8161D 70%); padding: 5px 26px;
  border-radius: 0 26px 0 26px; transform: skewX(-8deg);
}
.arc-head .ttl { transform: skewX(-8deg); }
.arc-head .sub { margin-left: auto; font-size: 12px; color: #B04A4A; }
.arc-foot {
  padding: 9px 16px; background: linear-gradient(180deg, #D2232A, #A8121A); color: #FFE0E0;
  font-size: 12px; letter-spacing: 1px; text-align: center;
}

/* 500.com 橙红 banner */
.omit-banner {
  background: linear-gradient(180deg, #F2542D 0%, #D33C15 100%);
  color: #fff; text-align: center; padding: 9px 0;
}
.omit-banner .ttl { font-size: 21px; font-weight: 700; letter-spacing: 5px; }

/* 折线覆盖层 */
.tbl-wrap { position: relative; }
svg.lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }

/* ========== 快乐8 圆球版 底部统计 ========== */
.kl8-bottom {
  display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 12px; margin-top: 8px;
  background: linear-gradient(180deg, #FFFBEC, #F7F2DC); border: 1px solid #D9CDA6;
}
.kstat { display: flex; flex-direction: column; gap: 4px; padding: 4px 10px; background: #fff; border: 1px solid #E2D8B4; }
.kstat .cap { font-size: 11px; color: #8A6D1E; letter-spacing: 1px; }
.kstat .row { display: flex; gap: 6px; }
.kstat .item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.kstat .ball { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }
.kstat .ball.run { background: radial-gradient(circle at 35% 28%, #6E9BE0, #1E5FA8 72%); }
.kstat .ball.hot { background: radial-gradient(circle at 35% 28%, #E8485C, #C8102E 72%); }
.kstat .ball.cold { background: radial-gradient(circle at 35% 28%, #43A96E, #1E8449 72%); }
.kstat .ball.miss { background: radial-gradient(circle at 35% 28%, #F0A64E, #C97A12 72%); }
.kstat .cnt { font-size: 10px; color: #6B5A2A; }
.heatmap { padding: 4px 10px; background: #fff; border: 1px solid #E2D8B4; }
.heatmap .cap { font-size: 11px; color: #8A6D1E; letter-spacing: 1px; margin-bottom: 4px; }
.hm-grid { display: grid; grid-template-columns: repeat(20, 20px); gap: 2px; }
.hm-grid span {
  font-size: 9px; text-align: center; line-height: 16px; border-radius: 2px; color: #333;
}
.hm-0 { background: #FFF; border: 1px solid #E8E0C4; }
.hm-1 { background: #E4F1E4; }
.hm-2 { background: #BFE0BF; }
.hm-3 { background: #7FC77F; color: #103010; }
.hm-4 { background: #3F9B3F; color: #fff; }

tr.sumrow td { font-size: 11px; color: #4A4A4A; height: 18px; }
tr.sumrow td.c-idx { font-size: 11px; color: #2A4E80; }

/* =============================================================
 * 3D 白底红弧版（照片 IMG_6199）· 专用样式
 * ============================================================= */
table.tbl-3d-white { table-layout: auto; width: max-content; }
table.tbl-3d-white thead tr.zone th {
  background: #fff; color: #1A1A1A; font-weight: 600; letter-spacing: 1px; height: 24px;
  border-right: 2px solid var(--grid-2);
}
table.tbl-3d-white thead tr.zone th.c-idx,
table.tbl-3d-white thead tr.zone th.c-draw,
table.tbl-3d-white thead tr.zone th.c-sum { border-right: 2px solid var(--grid-2); }
table.tbl-3d-white thead tr.nrow th {
  background: #fff; color: #1A1A1A; font-size: 11px; height: 20px; font-weight: 400;
  width: 21px; min-width: 21px; padding: 0 1px;
}
table.tbl-3d-white thead tr.nrow th:first-child { border-left: 0; }
table.tbl-3d-white tbody td { height: 22px; font-size: 12px; width: 21px; min-width: 21px; padding: 0 1px; }
table.tbl-3d-white tbody td.c-idx { width: 42px; min-width: 42px; }
table.tbl-3d-white tbody td.c-draw { width: 56px; min-width: 56px; }
table.tbl-3d-white tbody td.c-sum { width: 40px; min-width: 40px; }
table.tbl-3d-white span.tx { font-size: 12px; }

/* 期号列：非 10 倍数行用青绿色（照片实测），10 倍数行红字三位 */
td.idx-3dw { background: #F1FBFB; color: #2E9E96; }
td.idx-3dw.issue { background: #FDF1F2; color: var(--red); font-weight: 700; font-size: 12px; }

/* 开奖号码列：整串按本期最高频次着色 */
td.c-draw.draw-o { color: #E0452B; }
td.c-draw.draw-p { color: #B93AB6; }
td.c-draw.draw-k { color: #1A1A1A; }

/* 数字着色（照片取色）：重号橙红 / 豹子紫红 / 其余黑 */
span.tx.o { color: #E0452B; }
span.tx.p { color: #B93AB6; }

/* 和值窄列：隔行斑马纹底色 */
td.c-sum {
  width: 40px; min-width: 40px; font-size: 12px; font-weight: 700;
  background: #fff; border-right: 2px solid var(--grid-2);
}
tbody tr:nth-child(odd) td.c-sum { background: #E9F4FB; }
td.c-sum.t-r { color: var(--red); }
td.c-sum.t-k { color: #1A1A1A; }

/* 每 10 行一条红色分隔线（照片实测 220 / 230 / 240 …） */
table.tbl-3d-white tbody tr.grp td { border-bottom: 2px solid #D2232A; }

/* 分组之间的竖分隔线 */
table.tbl-3d-white thead tr.nrow th.gsep { border-left: 2px solid var(--grid-2); }
table.tbl-3d-white tbody td.gsep { border-left: 2px solid var(--grid-2); }

/* =============================================================
 * 电视走势图版（沿用原版式）
 * ============================================================= */
.tv-chart { position: relative; }
table.tv-grid { border-collapse: collapse; table-layout: fixed; width: max-content; }
table.tv-grid th, table.tv-grid td {
  border: 1px solid var(--grid); padding: 0; text-align: center; vertical-align: middle;
  background: #fff; font-weight: 400; overflow: hidden; position: relative;
}
table.tv-grid thead th { background: var(--head-bg); color: var(--ink); font-size: 12px; height: 24px; }
table.tv-grid thead tr.zone th { background: var(--band); color: #fff; font-size: 13px; letter-spacing: 3px; height: 26px; font-weight: 500; }
table.tv-grid thead tr.zone th.zone-sep { border-left: 2px solid #fff; }
table.tv-grid thead th.col-sep { border-left: 2px solid var(--grid-2); }
table.tv-grid td { height: 22px; font-size: 12px; }
table.tv-grid td.col-sep { border-left: 2px solid var(--grid-2); }
td.tv-idx, th.tv-idx {
  background: var(--code-bg); color: #2A4E80; font-size: 11px; width: 44px; min-width: 44px;
  border-right: 2px solid var(--grid-2); position: sticky; left: 0; z-index: 3;
}
th.tv-idx { border-bottom: 2px solid var(--grid-2); }
td.tv-idx.tv-issue { background: #FDF1F2; color: var(--red); font-weight: 700; font-size: 12px; }
td.tv-code { background: var(--code-bg); color: #1B3F6B; font-size: 12px; font-weight: 600; width: 52px; min-width: 52px; border-right: 2px solid var(--grid-2); }
td.tv-code.tv-issue { color: var(--red); }
td.tv-sum { background: #F6F9FC; font-size: 12px; width: 40px; min-width: 40px; font-weight: 600; }
td.tv-sum.tv-red { color: var(--red); }
.tv-col-n { width: 26px; min-width: 26px; }
.tv-col-s { width: 22px; min-width: 22px; }
table.tv-grid td.band0 { background: #EDF6EE; }
table.tv-grid td.band1 { background: #FBF0F3; }
table.tv-grid td.band2 { background: #EDF4FC; }
table.tv-grid td.band3 { background: #F5F0FA; }
table.tv-grid thead th.band0 { background: #DDEEDD; }
table.tv-grid thead th.band1 { background: #F6E1E7; }
table.tv-grid thead th.band2 { background: #DCE8F7; }
table.tv-grid thead th.band3 { background: #E9E1F4; }
.tv-hit {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .5px; line-height: 1;
}
.tv-hit.r { background: var(--red); }
.tv-hit.g { background: var(--green); }
.tv-hit.b { background: var(--blue); }
.tv-hit.a { background: var(--amber); }
.tv-d3 { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 17px; font-size: 12px; font-weight: 600; }
.tv-d3.pair { position: absolute; inset: 0; width: auto; height: auto; background: var(--red); color: #fff; }
.tv-d3.single { position: absolute; inset: 0; width: auto; height: auto; background: var(--green); color: #fff; }
.tv-d3.plain { position: absolute; inset: 0; width: auto; height: auto; background: transparent; color: #1A1A1A; }
.tv-plain { position: relative; z-index: 3; font-size: 12px; font-weight: 600; color: #16233A; }
.tv-k8 { position: relative; z-index: 3; font-size: 12px; font-weight: 700; }
.tv-k8.hot { color: var(--red); }
.tv-k8.warm { color: #1A1A1A; }
.tv-k8.cold { color: var(--blue); }
svg.tv-lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }

.tv-bottom {
  margin-top: 8px; background: linear-gradient(180deg, #DCEAFA 0%, #F4F9FE 100%);
  border: 1px solid #B7CFE8; border-radius: 3px; padding: 8px 14px;
  display: flex; align-items: stretch; gap: 18px; min-height: 84px; max-width: max-content;
}
.tv-stats { display: grid; grid-template-columns: auto auto; gap: 4px 26px; align-items: center; }
.tv-stat { display: flex; align-items: center; gap: 10px; }
.tv-stat .cap { font-size: 11px; letter-spacing: 1px; color: #2A5C96; width: 118px; flex: none; text-align: right; }
.tv-stat .cap.hot { color: var(--red); }
.tv-stat .cap.cold { color: var(--green); }
.tv-stat .cap.miss { color: var(--blue); }
.tv-stat .row { display: flex; gap: 7px; align-items: flex-start; }
.tv-stat .item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tv-stat .ball {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
}
.tv-stat .ball.r { background: radial-gradient(circle at 35% 28%, #E8485C, #C8102E 72%); }
.tv-stat .ball.b { background: radial-gradient(circle at 35% 28%, #5B8FD6, #1E5FA8 72%); }
.tv-stat .ball.g { background: radial-gradient(circle at 35% 28%, #43A96E, #1E8449 72%); }
.tv-stat .cnt { font-size: 10px; color: #4A6B94; }
.tv-result {
  margin-left: auto; background: #fff; border: 1px solid #C7D9EC; border-radius: 4px;
  padding: 7px 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 430px;
}
.tv-result .l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tv-result .tag { background: #FFC64B; color: #7A4A00; font-size: 11px; padding: 2px 8px; border-radius: 2px; font-weight: 700; }
.tv-result .ttl { font-size: 13px; color: #1B3F6B; font-weight: 600; }
.tv-result .money { font-size: 12px; color: #333; }
.tv-result .money b { color: var(--red); font-weight: 700; }
.tv-result .balls { display: flex; gap: 4px; flex-wrap: wrap; }
.tv-result .balls .b {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 700;
}
.tv-result .balls .b.r { background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.38), rgba(255,255,255,0) 62%), var(--ball-red); }
.tv-result .balls .b.bu { background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.38), rgba(255,255,255,0) 62%), var(--ball-blue); }
.tv-result .badge {
  margin-left: auto; background: var(--red); color: #FFE9A8; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 2px; letter-spacing: 1px; border: 1px solid #FFE9A8;
}

/* =============================================================
   窄屏适配（代理端主用）—— 必须放在文件末尾：
   同优先级下后写的规则才生效，否则会被前面的基础规则覆盖。
   ============================================================= */
@media (max-width: 720px) {
  /* 顶栏：隐藏长提示，品牌文字让位给标题，只留 logo */
  .app-head { gap: 8px; padding: 0 10px; }
  .app-head .tip { display: none; }
  .app-head h1 { font-size: 16px; letter-spacing: 1px; }
  .app-head .brand { font-size: 0; letter-spacing: 0; }
  .app-head .brand img { width: 26px; height: 26px; }
  .rows-sel { max-width: 96px; padding: 4px 4px; font-size: 11px; }

  /* 彩种条：文字不折行，横向滚动（宽度够时四个彩种正好排满） */
  .type-bar { padding: 0 4px; overflow-x: auto; scrollbar-width: none; }
  .type-bar::-webkit-scrollbar { display: none; }
  .type-bar .tb { padding: 0 12px; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }

  /* 样式条：按钮收紧，窄屏少横向滚动 */
  .style-bar { padding: 5px 6px; gap: 5px; }
  .style-bar .sb { padding: 4px 7px; font-size: 11px; }

  /* 页脚：隐藏键盘提示，免责声明占满宽度 */
  .app-foot { font-size: 10px; letter-spacing: 0; padding: 5px 10px; gap: 10px; }
  .app-foot span:first-child { display: none; }
}

/* ========== 遥控器焦点环（2026-10-26，置于文件末尾防被基础规则覆盖）========== */
body.rf :is(a, button, select):focus {
  outline: 3px solid #FFC93C;
  outline-offset: 2px;
  border-radius: 8px;
  box-shadow: 0 0 0 5px rgba(255, 201, 60, .28);
}

/* ========== 窄屏底部面板换行（2026-10-26 自适应修正；按踩坑惯例置于文件末尾） ========== */
@media (max-width: 1100px) {
  .tv-bottom { max-width: 100%; flex-wrap: wrap; gap: 8px 14px; }
  .tv-stats { grid-template-columns: auto; gap: 4px 16px; }
  .tv-stat .cap { width: auto; min-width: 96px; }
  .tv-result { min-width: 0; margin-left: 0; width: 100%; }
  .tv-result .balls .b { width: 22px; height: 22px; font-size: 11px; }
}

/* ========== 通用彩种标题条（2026-10-26 自定义彩种；置于文件末尾防覆盖） ========== */
.tv-head {
  background: var(--band); color: #fff; font-size: 16px; font-weight: 700;
  padding: 8px 12px; border-radius: 6px 6px 0 0; letter-spacing: 1px;
}
