/*
 * 賽車型彩種（幸運飛艇 96/xyft、澳洲幸運10 96/aozxy10）區塊樣式。
 * 元件外觀一律用 theme-core.css 的共用元件，這裡只放本區塊的版面與少數輔助。尺寸乘上 --u，電腦版與手機版通用。
 */
.race-page { clear: both; padding-top: calc(var(--u) * 24); text-align: left; }
.race-page > :first-child { margin-top: 0; }
body[data-dv="mobile"] .race-page { margin: 0; padding: calc(var(--u) * 14) calc(var(--u) * 12) calc(var(--u) * 8); }
.race-page h2, .race-page button { font-family: var(--font); }
.race-hide { display: none !important; }
.race-ad { text-align: center; }
.race-links { margin-top: calc(var(--u) * 12); }
.ui-title .ui-spacer { flex: 1; }
.ui-title .ui-chip, .ui-title .ui-btn, .ui-title .ui-tag { font-weight: 500; }
.ui-toolbar .ui-tabs { margin-bottom: 0; }

/* 表格裡的一排號碼方塊／標籤：間距收一點，手機版十個號碼才放得進一列 */
.race-nums { justify-content: center; flex-wrap: nowrap; gap: calc(var(--u) * 4); }
.race-history td, .race-plan td { white-space: nowrap; }
body[data-dv="mobile"] .race-history[data-mode="nums"] .race-nums { gap: calc(var(--u) * 3); }
.race-pending td { background: var(--brand-50); }
.race-omit.ui-tag { min-width: calc(var(--u) * 30); font-weight: 700; }

/* 冷熱碼表：欄寬固定，號碼太多時在格子裡換行（手機版不必橫向捲動） */
.race-hotcold { table-layout: fixed; }
.race-hotcold thead th { box-sizing: border-box; }
.race-hotcold thead th:first-child { width: 14%; }
.race-hotcold thead th:nth-child(2) { width: 25%; }
.race-hotcold thead th:nth-child(4) { width: 17%; }
.ui-table .race-wrapnums { flex-wrap: wrap; gap: calc(var(--u) * 4); }
.race-hot { display: inline-flex; align-items: center; gap: calc(var(--u) * 2); }
.race-hot small { font-size: calc(var(--u) * 12); color: var(--muted); }

/* 很寬的表格（今日號碼統計）：橫向捲動時第一欄固定 */
.race-sticky th:first-child { position: sticky; left: 0; z-index: 1; }
.race-sticky tbody th:first-child { background: #fff; }

/* 頁面上方開獎區塊的「開獎中…」 */
.race-wait { display: inline-flex; align-items: center; height: calc(var(--u) * 36); font-size: calc(var(--u) * 17); font-weight: 700; color: var(--brand-700); }

/* 工具列裡的小欄位 */
.race-range { gap: calc(var(--u) * 6); white-space: nowrap; }
.race-range .ui-input { width: calc(var(--u) * 74); }
.race-code { display: block; width: 100%; height: auto; padding: calc(var(--u) * 10) calc(var(--u) * 12); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: calc(var(--u) * 13); line-height: 1.6; resize: none; }

/* 圖表與動畫 */
.race-split { display: flex; gap: calc(var(--u) * 14); align-items: stretch; }
.race-chart-card { flex: 1; min-width: 0; }
.race-sponsor { flex: none; width: calc(var(--u) * 300); display: grid; gap: calc(var(--u) * 8); align-content: start; text-decoration: none; }
.race-sponsor img { display: block; width: 100%; height: auto; border-radius: calc(var(--u) * 8); }
.race-chart { height: calc(var(--u) * 360); }
.race-chart.is-mini { height: calc(var(--u) * 210); }
.race-video { overflow: hidden; }
.race-video iframe { display: block; width: 100%; height: 650px; border: 0; }

/* 路珠：每個項目一塊，標題列帶累計次數 */
.race-road .ui-title { margin-top: calc(var(--u) * 18); margin-bottom: calc(var(--u) * 8); flex-wrap: wrap; }
.race-roads > .race-road:first-child .ui-title { margin-top: calc(var(--u) * 4); }

/* 共用樣式待修（已回報）：手機版固定頁首的橘色列與倒數列之間有約 1px 的透明縫，捲動時會透出內容；先補上底色 */
body[data-dv="mobile"] .app_headerSection.app_public_header { background: var(--brand); }
