:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #1c2430;
  --muted: #667085;
  --line: #e2e6ec;
  --accent: #0b6e4f;
  --accent-soft: #e3f3ec;
  --gold: #b7791f;
  --win: #c62828;
  --turf: #e6f4ea;
  --dirt: #f7efe1;
  --vet: #fff6db;
  --radius: 10px;
  /* 全站統一：數字 Verdana、中文微軟正黑體（同排位表、馬匹資料頁一樣） */
  font-family: Verdana, "Microsoft JhengHei", "微軟正黑體", sans-serif;
}
/* 輸入格、選單、掣預設唔跟頁面字型，要明確叫佢跟 */
button, input, select, textarea { font-family: inherit; }

/* 用戶要白 / 灰底：唔跟系統深色模式，一律淺色 */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #005094; /* 同馬匹資料嘅藍色標題線一致 */
  box-shadow: 0 1px 4px rgba(0, 40, 80, .25);
}
.topbar .brand { font-weight: 700; color: #fff; white-space: nowrap; font-size: 17px; }
.topbar .nav a { color: #dce8f5; }
.topbar .nav a:hover { color: #fff; }

.search { position: relative; flex: 1; max-width: 420px; }
.search input {
  width: 100%;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
}
.search input:focus { outline: 2px solid #8fb8e3; }
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.search-results:empty { display: none; }
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
}
.search-results a:hover, .search-results a:focus { background: var(--surface-2); outline: none; }
.search-results .meta { color: var(--muted); font-size: 13px; }

main { max-width: 1400px; margin: 0 auto; padding: 16px; }
/* 馬匹資料頁：用盡成個螢幕闊度；字體 = Verdana 數字＋微軟正黑體中文，唔用粗體
   （用戶試過新細明體、細明體、黑體之後揀定）。
   字號 = 賽績表啱啱放得晒嘅最大號數（RATIO = 賽績表闊度 ÷ 字號），上限 18px */
main#horse, main#race, main#meeting, main#person, main#people, main#combo, main#racecard, main#overseas {
  max-width: none;
  --fs: clamp(12px, calc((100vw - 70px) / 102), 18px); /* 主要字號（賽績表約 99 倍字號闊） */
  --fs-sm: calc(var(--fs) * 0.92);                      /* 表頭、細字 */
  font-family: Verdana, "Microsoft JhengHei", "微軟正黑體", sans-serif;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.horse-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.horse-head h1 { margin: 0; font-size: 26px; }
.horse-head .eng { color: var(--muted); font-size: 16px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
}
.badge.off { background: var(--surface-2); color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px 20px;
  margin: 14px 0 0;
}
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.record { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.record .num { font-size: 22px; font-weight: 700; }
.record .lbl { color: var(--muted); font-size: 12px; }

.form-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 字號跟螢幕闊度（--fs / --fs-sm，見 main#horse），所有格位用 em 一齊放大縮細。
   格位空間、疊數方格、片段圖示都用 em，跟住字體一齊放大縮細，所以任何闊度都啱啱放得晒 */
table.form {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs, 15px);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
table.form thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
table.form th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-sm, 13px);
  text-align: center;
  padding: 0.3em 0.3em;
  border-bottom: 1px solid var(--line);
}
table.form td {
  padding: 0.28em 0.25em;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
table.form td.l { text-align: left; }
/* 間條底色：用 :where 降低權重，賽道、自己匹馬、目前賽事等底色照蓋過佢 */
:where(table.form tr.alt, .result-table tbody tr.run:nth-child(even of .run), .result-table tbody tr.run:nth-child(even of .run) + tr.note-row, .same-table tbody tr:nth-child(even), .div-table tr.alt) td,
:where(.report-list li:nth-child(even)) { background: #eef2f8; }
table.form tr.run:hover td { background: #dfe8f4; }
table.form tr.turf td.track { background: var(--turf); }
table.form tr.dirt td.track { background: var(--dirt); }
.place { font-weight: 700; }
.place.top3 { color: var(--win); }
.fast { color: var(--win); font-weight: 600; }
table.form tr.sub-head th { padding-top: 2px; }
.wide-n {
  display: inline-block;
  width: 1.4em;
  line-height: 1.4em;
  margin: 0 1px;
  background: #007800;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  text-align: center;
}
table.form td.top3 { font-size: var(--fs-sm, 13px); }
table.form td.top3 a { color: inherit; }
table.form td.top3 a:hover { color: var(--accent); }
table.form td.top3-self { color: var(--muted); }
table.form td.odds.fav { color: #e40b0b; font-weight: 700; } /* 大熱 */
.comm-ico { width: 1.2em; height: 1.2em; margin-left: 3px; vertical-align: middle; cursor: help; }
td.race-no { white-space: nowrap; }
.vid-btn {
  display: inline-flex;
  margin-left: 3px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  vertical-align: middle;
}
.vid-btn img { display: block; width: 1.5em; height: 1.5em; }

/* 馬會片段選單（顏色跟舊站 hkjc_video_menu.js） */
.video-menu {
  position: absolute;
  z-index: 100;
  min-width: 150px;
  padding: 6px 0;
  background: #173f8a;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.video-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 14px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.video-menu button:hover, .video-menu button:focus { background: #2a5bb8; outline: none; }
.video-menu .ico {
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
}
.video-menu .ico::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #fff;
}
.sect-rank {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 3px;
  border-radius: 3px;
  background: #0c962c;
  color: #fff;
  font-weight: 700;
  font-size: 0.8em;
}
.sect-rank.top { background: #e40b0b; }

/* 馬季分隔行同獸醫報告行：跟馬匹資料嘅藍色系 */
tr.season td {
  background: #005094;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.3em 0.8em;
  letter-spacing: 0.05em;
}
/* 獸醫報告：日期旁邊嘅紅十字（滑鼠放上去睇全文），同表頂「最新獸醫報告」提示 */
/* 醫療標誌：紅色圓角方格加白十字（純 CSS，任何電腦睇落都一樣） */
.vet-ico {
  position: relative;
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-left: 0.35em;
  padding: 0;
  border: 0;
  border-radius: 0.22em;
  background: #d32f2f;
  vertical-align: -0.15em;
  cursor: pointer;
}
.vet-ico::before, .vet-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}
.vet-ico::before { width: 0.62em; height: 0.2em; }
.vet-ico::after { width: 0.2em; height: 0.62em; }
button.vet-ico:hover { background: #b71c1c; }
.vet-pop {
  position: absolute;
  z-index: 100;
  max-width: 26em;
  padding: 0.6em 0.9em;
  background: #fff;
  border: 1px solid #e3b4b4;
  border-top: 3px solid #d32f2f;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  font-size: 14px;
}
.vet-pop-head { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.4em; color: #b71c1c; font-weight: 700; }
.vet-pop-head .vet-ico { margin: 0; cursor: default; }
.vet-pop ul { margin: 0; padding: 0; list-style: none; }
.vet-pop li { padding: 0.25em 0; border-top: 1px dashed #eee; }
.vet-pop li:first-child { border-top: 0; }
.vet-pop .date { display: block; color: var(--muted); font-size: 12px; }
tr.scratched td { color: var(--muted); }

/* ---- 全站頁底 ---------------------------------------------------------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.site-footer { margin-top: 32px; font-size: 14px; }
.ft-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 12em));
  gap: 16px 40px;
  padding: 24px 24px 20px;
  background: #e3ebf5;
  border-top: 3px solid #005094;
}
.ft-col h3 { margin: 0 0 10px; color: #005094; font-size: 15px; }
.ft-col ul { margin: 0; padding: 0; list-style: none; }
.ft-col li { padding: 3px 0; }
.ft-col a { color: #2a5d8f; }
.ft-col a:hover { color: #005094; text-decoration: underline; }
.ft-soon { color: #9aa8b8; cursor: default; }
.ft-soon::after { content: "（籌備中）"; font-size: 12px; }
.ft-note { color: #4a5f78; cursor: help; }
.ft-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.ft-notice p { margin: 2px 0; }
.ft-copy { white-space: nowrap; }

.empty, .error { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---- 頂部導覽 ----------------------------------------------------------- */
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* ---- 馬匹搜尋器 --------------------------------------------------------- */
.finder-search { max-width: 720px; margin: 8px auto 20px; text-align: center; }
.finder-search h1 { margin: 0 0 12px; font-size: 24px; }
.finder-search input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.finder-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.finder-search .hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.finder-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }

.filters {
  position: sticky;
  top: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.filters-toggle { display: none; }
.filters section + section { margin-top: 14px; }
.filters h2 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-count { color: var(--muted); font-size: 11px; }
.chip.on .chip-count { color: rgba(255, 255, 255, .8); }

.switch { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.link-btn { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; }

.results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
#count { font-weight: 600; }
.sort { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.sort select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }

table.finder-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.finder-table th {
  position: sticky; top: 0;
  background: var(--surface-2); color: var(--muted);
  font-weight: 500; font-size: 12px; text-align: center;
  padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.finder-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.finder-table .l { text-align: left; }
.finder-table tbody tr { cursor: pointer; }
.finder-table tbody tr:hover td { background: var(--surface-2); }
.name-cell a { font-weight: 600; font-size: 15px; }
.name-cell .sub { color: var(--muted); font-size: 12px; white-space: normal; }
.tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.form-cell .pos { display: inline-block; min-width: 1.5em; text-align: center; color: var(--muted); }
.form-cell .pos.place { color: var(--text); font-weight: 600; }
.form-cell .pos.win { color: var(--win); font-weight: 700; }
/* 揀咗練馬師：五欄緊湊排列（參考舊站） */
.stable-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stable-grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  min-width: 0;
}
.stable-grid li::before { content: "•"; color: var(--muted); margin-right: 2px; }
.stable-grid a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stable-grid .rating { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.stable-grid li:hover { background: var(--surface-2); }
/* 評分分組標題（五欄排列同表格都用） */
.stable-grid li.band-head { grid-column: 1 / -1; margin-top: 6px; padding: 4px 8px; background: #eef3fa; border-left: 3px solid #005094; color: #005094; font-weight: 700; }
.stable-grid li.band-head:first-child { margin-top: 0; }
.stable-grid li.band-head::before { content: none; }
.stable-grid li.band-head:hover { background: #eef3fa; }
.finder-table tr.band-head td { padding: 5px 8px; background: #eef3fa; border-left: 3px solid #005094; color: #005094; font-weight: 700; text-align: left; cursor: default; }
.finder-table tbody tr.band-head:hover td { background: #eef3fa; }
.band-n { margin-left: 0.8em; color: var(--muted); font-weight: 400; font-size: 0.9em; }

.more-btn {
  display: block; width: 100%; margin-top: 10px; padding: 10px;
  border: 1px dashed var(--line); border-radius: 8px; background: none;
  color: var(--accent); font: inherit; cursor: pointer;
}

@media (max-width: 900px) {
  .finder-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; padding: 10px 12px; }
  .filters-toggle {
    display: block; width: 100%; padding: 8px; border: 0; background: none;
    color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  }
  .filters-toggle::after { content: " ▾"; color: var(--muted); }
  .filters-body { display: none; padding-top: 8px; }
  .filters.open .filters-body { display: block; }
  .finder-table .eng { display: none; }
  .finder-table .name-cell { min-width: 8.5em; }
  .finder-table th:last-child, .finder-table td:last-child { display: none; }
}

/* ---- 馬匹資料（名牌 + 六格資料）------------------------------------------ */
.hp { margin-bottom: 14px; font-size: var(--fs, 14px); --brand-blue: #005094; }
.hp-head {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0.9em 1.2em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-blue);
  border-radius: var(--radius);
}
.hp-silks { width: 5em; height: auto; flex: none; } /* 馬會 PNG 原圖 110×110，放大都清楚 */
.hp-title { flex: 1; min-width: 0; }
.hp-brand { display: flex; align-items: center; gap: 0.6em; color: var(--muted); font-size: var(--fs-sm, 13px); font-weight: 600; }
.hp-status { padding: 0 0.7em; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 500; }
.hp-status.on { background: #e3f3ec; color: #0b6e4f; }
.hp-title h1 { margin: 0.1em 0; font-size: 1.9em; font-weight: 700; line-height: 1.2; }
.hp-title h1 .eng { margin-left: 0.5em; font-size: 0.6em; font-weight: 400; color: var(--muted); }
.hp-sub { color: var(--muted); font-size: var(--fs-sm, 13px); }

.hp-tiles { display: flex; gap: 0.7em; flex: none; }
.hp-tile { min-width: 8.5em; padding: 0.5em 1em; background: var(--surface-2); border-radius: 8px; text-align: center; }
.hp-tile .lbl, .hp-tile .sub { color: var(--muted); font-size: var(--fs-sm, 13px); }
.hp-tile .num { font-size: 1.6em; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }

.hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.hp-panel { padding: 0.7em 1em 0.8em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hp-panel h2 {
  margin: 0 0 0.5em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: var(--fs, 14px);
  font-weight: 700;
}
.hp-panel dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2em 1.2em; margin: 0; }
.hp-panel dt { color: var(--muted); }
.hp-panel dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.3em 0.8em; }
.rel-pick {
  max-width: 11em;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-sm, 13px);
}

.hp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hp-table th, .hp-table td { padding: 0.18em 0.5em; border-bottom: 1px solid var(--line); text-align: center; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table th { color: var(--muted); font-weight: 500; font-size: var(--fs-sm, 13px); }
.hp-table td:first-child { text-align: left; color: var(--muted); white-space: nowrap; }
.hp-table tr.none td { color: #b4bcc8; }
.hp-table td.w { color: var(--win); font-weight: 700; }

.hp-list { margin: 0; padding: 0; list-style: none; }
.hp-list li { padding: 0.18em 0; border-bottom: 1px dashed var(--line); }
.hp-list li:last-child { border-bottom: 0; }
.hp-list .date { margin-right: 0.8em; color: var(--muted); font-variant-numeric: tabular-nums; }
.hp-empty { margin: 0; color: var(--muted); }
/* 進階搜尋 */
.fs { margin-bottom: 0.6em; }
.fs-row { display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.fs-row + .fs-row { margin-top: 0.5em; }
.fs-tabs { display: flex; border: 1px solid #c9d3e0; border-radius: 6px; overflow: hidden; }
.fs-tab { padding: 0.25em 1em; border: 0; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.fs-tab + .fs-tab { border-left: 1px solid #c9d3e0; }
.fs-tab.on { background: #005094; color: #fff; }
.fs-summary { margin-left: auto; font-size: var(--fs-sm, 13px); }
.fs-summary b { color: #005094; font-variant-numeric: tabular-nums; }
.fs-summary .muted { color: var(--muted); }
.fs-filters { padding: 0.4em 0.6em; background: #eef3fa; border-radius: 6px; }
.fs-label { color: #005094; font-weight: 700; margin-right: 0.3em; }
.fs-sel {
  padding: 0.15em 0.3em;
  border: 1px solid #c9d3e0;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm, 13px);
}
.fs-sel.on { border-color: #005094; background: #005094; color: #fff; }
.fs-sel:disabled { opacity: 0.45; }
.fs-chip { padding: 0.15em 0.7em; border: 0; border-radius: 999px; background: #005094; color: #fff; font: inherit; font-size: var(--fs-sm, 13px); cursor: pointer; }
.fs-stats { max-width: 60em; }
.fs-stat-table td, .fs-stat-table th { padding: 0.4em 0.8em; }
.fs-stat-table tr.pick { cursor: pointer; }
.fs-stat-table tr.pick:hover td { background: #eef3fa; }
.fs-stat-table td:first-child { color: var(--text); }
.fs-clear { margin-left: auto; padding: 0.15em 0.9em; border: 1px solid #c9d3e0; border-radius: 4px; background: #fff; color: #005094; font: inherit; font-size: var(--fs-sm, 13px); cursor: pointer; }

.cup-ico { cursor: help; font-size: 1.1em; line-height: 1; }
table.form td.gear { cursor: help; text-decoration: underline dotted #9aa4b2; text-underline-offset: 3px; }

/* 賽績紀錄：同馬匹資料用同一款格仔 */
.form-panel { margin-top: 12px; font-size: var(--fs, 14px); }
.form-panel h2 { display: flex; align-items: baseline; gap: 0.8em; }
.form-panel h2 .count { color: var(--muted); font-size: var(--fs-sm, 13px); font-weight: 400; }
.form-panel h2 .later-win { margin-left: auto; padding: 0.1em 0.7em; border-radius: 999px; background: #fff4d6; color: #8a5a00; font-size: var(--fs-sm, 13px); font-weight: 600; }
.result-table td.prev-place.won { color: #c62828; font-weight: 700; font-style: normal; }
.form-panel table.form thead th { background: #dfe7f1; color: #24364d; font-weight: 600; }
/* 日期欄：醫療標誌唔佔日期位，咁每行日期都頭尾對齊。
   標誌騎喺「呢一仗」同「上面較新嗰仗」之間嘅分隔線上（表由新到舊排）：
   報告係呢一仗之後、下一仗之前發生，放喺兩個日期中間啱啱表達到時間位置 */
table.form td.date-cell { position: relative; padding-right: 1.6em; }
table.form td.date-cell .vet-ico { position: absolute; z-index: 2; right: 0.3em; top: 0; margin: -0.525em 0 0; box-shadow: 0 0 0 2px #fff; }
.form-panel table.form thead tr:last-child th,
.form-panel table.form thead th[rowspan] { border-bottom: 1px solid #c9d3e0; }

@media (max-width: 1440px) {
  main#horse, main#race, main#meeting, main#person, main#people, main#combo, main#racecard, main#overseas { padding: 10px; }
}

@media (max-width: 720px) {
  main { padding: 12px; }
  .horse-head h1 { font-size: 22px; }
  table.form .opt { display: none; }
}

/* ---- 賽後頁（race.html）：沿用馬匹頁 hp-* 格仔同 table.form 樣式 -------------- */
.race-badge {
  flex: none;
  min-width: 4.2em;
  padding: 0.3em 0.6em;
  border-radius: 8px;
  background: #005094;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}
.race-badge .no { font-size: 2em; font-weight: 700; }
.race-head .hp-title h1 { font-size: 1.45em; }
.race-cup { color: #8a5a00; font-weight: 600; margin-top: 0.1em; }
.race-tools { display: flex; align-items: center; gap: 0.6em; margin-top: 0.5em; flex-wrap: wrap; }
.race-tools .tool-label { color: var(--muted); font-size: var(--fs-sm, 13px); }
.race-tools .tool {
  padding: 0.1em 0.8em;
  border: 1px solid #c9d3e0;
  border-radius: 999px;
  color: #005094;
  font-size: var(--fs-sm, 13px);
}
.race-tools .tool:hover { background: #eef3fa; }
.race-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.race-tabs a {
  padding: 0.3em 0.55em;
  border: 1px solid #c9d3e0;
  border-radius: 6px;
  background: var(--surface);
  color: #24364d;
}
.race-tabs a:hover { background: #eef3fa; }
.race-tabs .fs-sel { margin-right: 6px; }
.race-tabs a.on { background: #005094; border-color: #005094; color: #fff; font-weight: 600; }

.race-bottom { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); align-items: start; }
/* 名牌（左）同分段時間分析（右）並排 */
.race-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; align-items: stretch; }
.race-top > .race-head { margin-bottom: 0; display: flex; flex-direction: column; }
.race-top > .race-head .hp-head { flex: 1; }
.race-top > .hp-panel { margin: 0; }
.race-top .sect-table th, .race-top .sect-table td { padding: 0.25em 0.4em; }
.race-top .note { font-size: 0.8em; }
.race-top .race-head .hp-head { gap: 0.9em; padding: 0.8em 1em; }
.race-top .race-head .hp-title h1 { font-size: 1.3em; }
.race-top .race-head .hp-tiles { gap: 0.5em; }
.race-top .race-head .hp-tile { min-width: 5.8em; padding: 0.4em 0.6em; }
.race-top .race-head .hp-tile .num { font-size: 1.4em; }
.race-bottom .report-panel { margin-top: 0; }
.sect-table td:first-child { color: var(--muted); }
.sect-table th, .sect-table td { text-align: center; }
.fast { color: #c62828; }
.slow { color: #1f5fbf; }
.note { margin: 0.6em 0 0; color: var(--muted); font-size: var(--fs-sm, 13px); }
.std-cell { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.3; }
.std-cell .diff { font-size: 0.85em; }
.div-table tr.pool-first td { border-top: 1px solid var(--line); }
.div-table tr:first-child td { border-top: 0; }
.div-table td { border-bottom: 0; padding: 0.2em 0.5em; }
.div-table td:first-child { color: #005094; font-weight: 600; }
.div-table tr.sub td { border-top: 1px dashed #c3cfdf; }
.dv-label { display: block; color: var(--muted); font-weight: 400; font-size: 0.8em; }
.dv.sub { border-top: 1px dashed #c3cfdf; }
.div-table .combo { text-align: left; font-variant-numeric: tabular-nums; }
.div-table .amt { text-align: right; font-variant-numeric: tabular-nums; }

.result-table td.prev.turf { background: var(--turf); }
.result-table td.prev.dirt { background: var(--dirt); }
.result-table td.prev-place { color: var(--muted); font-style: italic; }
.result-table td.name a { color: var(--text); font-weight: 600; }
.result-table td.name a:hover { color: #005094; }
.result-table .adj { margin-left: 2px; color: #c62828; font-size: 0.85em; }
.result-table td.chg { color: #1f5fbf; font-style: italic; }
.result-table tr.mine td { background: #fde4e4; }
/* 馬號：全站統一白底圓圈（HK.horseNo） */
.horse-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em;
  height: 1.75em;
  border: 1.5px solid #24364d;
  border-radius: 50%;
  background: #fff;
  color: #24364d;
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif; /* 馬號用黑體（其餘數字用 Verdana） */
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.horse-no.sm { flex: none; width: 1.6em; height: 1.6em; border-width: 1px; font-size: 0.85em; letter-spacing: -0.04em; }
.combo-nos { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.combo-nos .sep { color: var(--muted); font-size: 0.85em; }
.combo-nos .sep.leg { margin: 0 3px; color: #005094; font-weight: 700; }
.combo-nos .sep.sub { margin: 0 1px; color: #c62828; cursor: help; } /* 退出馬 → 後備馬 */
.combo-nos .code { padding: 0 0.35em; border: 1px solid #24364d; border-radius: 4px; font-size: 0.85em; font-weight: 700; cursor: help; } /* F、A1 */
/* 今季同程賽事：預設收埋，撳名牌工具列個掣先喺名牌下面出 */
.same-panel { margin-top: 12px; }
.race-tools .vid-btn img { width: 20px; height: 20px; }
.race-tools .same-btn { border-radius: 4px; }
.race-tools .same-btn.on { outline: 2px solid #005094; outline-offset: 1px; } /* 同程賽事已打開 */
.report-panel { margin-top: 12px; }

.report-list li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 0.8em; align-items: start; padding: 0.3em 0.5em; line-height: 1.45; }
.report-list li.mine { background: #fde4e4; }
.report-list .rep-head { display: flex; align-items: center; gap: 0.4em; }
.report-list .rep-head a { color: var(--text); font-weight: 600; }
.report-list .rep-place { min-width: 3.2em; color: var(--muted); font-size: var(--fs-sm, 13px); }
.report-list .rep-body p { margin: 0; }
.report-list .rep-body p + p { margin-top: 0.2em; }
.report-list .rep-label {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0 0.4em;
  border-radius: 3px;
  background: #eef3fa;
  color: #005094;
  font-size: 0.85em;
}
.report-list .rep-label.rep { background: #fff4d6; color: #8a5a00; }
.same-table tr.pick { cursor: pointer; }
.same-table tr.pick:hover td { background: #eef3fa; }
.same-table tr.current td { background: #fff4d6; font-weight: 600; cursor: default; }
.div-table + .dh-note, .dh-note { color: #8a5a00; background: var(--vet); padding: 0.4em 0.6em; border-radius: 4px; }

/* ---- 全日賽果（meeting.html）------------------------------------------- */
.meeting-head .hp-title h1 { font-size: 1.5em; }
.meeting-head .race-tools .tool { background: var(--surface); font: inherit; font-size: var(--fs-sm, 13px); cursor: pointer; }
.meeting-head .race-tools .tool:disabled { opacity: 0.4; cursor: default; }
.meeting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 36em), 1fr)); gap: 12px; margin-top: 12px; }
.race-card { display: flex; flex-direction: column; gap: 0.5em; }
.race-card > header { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.5em; border-bottom: 2px solid #005094; }
.race-badge.sm { min-width: 3em; padding: 0.15em 0.4em; font-size: 0.85em; }
/* 場頭按場地落色：草地淺綠底 / 綠色場次格，泥地淺啡底 / 啡色場次格（同賽績表跑道欄一致） */
.race-card.turf > header, .race-card.dirt > header { margin: -0.7em -1em 0; padding: 0.7em 1em 0.5em; border-radius: var(--radius) var(--radius) 0 0; }
.race-card.turf > header { background: #e6f4ea; border-bottom-color: #2e7d4f; }
.race-card.turf .race-badge { background: #2e7d4f; }
.race-card.dirt > header { background: #f7efe1; border-bottom-color: #8a5a2b; }
.race-card.dirt .race-badge { background: #8a5a2b; }
.race-badge.sm .no { font-size: 1.6em; }
.rc-title { flex: 1; min-width: 0; }
.rc-facts { font-weight: 700; font-size: 1.15em; } /* 全日賽果每場：班次 · 場地 · 路程 · 場地狀況，大少少 */
.rc-time { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-time .lbl { color: var(--muted); font-size: var(--fs-sm, 13px); font-weight: 400; }
.top4 td { padding: 0.25em 0.4em; }
.top4 td.pl { width: 1.5em; color: var(--muted); }
.top4 td.nm a { color: var(--text); font-weight: 600; font-size: 1.15em; } /* 頭四名馬名大少少（同賽後頁一樣） */
.top4 td.odds.fav { color: #e40b0b; font-weight: 700; } /* 大熱賠率紅字（頭馬馬名唔再紅） */
.top4 td.dw, .top4 td.wt { font-variant-numeric: tabular-nums; color: var(--muted); }
.top4 td.dw:not(:empty)::before { content: '檔'; margin-right: 2px; font-size: 0.8em; }
.top4 td.wt:not(:empty)::before { content: '磅'; margin-right: 2px; font-size: 0.8em; }
.top4 td.muted { color: var(--muted); font-size: var(--fs-sm, 13px); }
/* 派彩：兩欄，每行「彩池 | 馬號圓圈（唔摺行）| 金額」 */
.dv-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.4em; align-items: start; font-size: var(--fs-sm, 13px); }
.dv-col .dv.first:first-child { border-top: 0; }
.dv { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 0.3em; padding: 0.12em 0; break-inside: avoid; }
/* 每個彩池之間用較深嘅藍灰實線分開；同一彩池入面嘅幾組唔加線 */
.dv.first { border-top: 1.5px solid #b9c8dc; padding-top: 0.25em; }
.dv-pool { display: flex; flex-direction: column; color: #005094; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.dv-pool { min-width: 0; overflow: hidden; } /* 彩池名 / 場次細字唔可以爆出欄壓住馬號 */
.dv-pool small { color: var(--muted); font-weight: 400; font-size: 0.8em; }
.dv .combo-nos { gap: 1px; } /* 孖T 呢類長組合先會摺行 */
/* 孖寶：每口一行（馬號 馬名 /），第二口喺下一行 */
.dv .picks, .div-table .picks { display: flex; flex-direction: column; gap: 2px; }
.dv .pick, .div-table .pick { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dv .pick .sep.leg, .div-table .pick .sep.leg { margin: 0 0 0 2px; }
/* 兩位數馬號（10-14）要放得落個圈，唔好爆出圈外 */
.dv .horse-no.sm { flex: none; width: 1.65em; height: 1.65em; font-size: 0.78em; letter-spacing: -0.04em; }
.dv-amt { font-variant-numeric: tabular-nums; text-align: right; }
.dv-list .dh-note { grid-column: 1 / -1; }
.race-card > footer { margin-top: auto; text-align: right; font-size: var(--fs-sm, 13px); }
/* 最尾一行：三寶 / 三T / 六環彩（左）＋ 騎練當日成績（右） */
.meeting-bottom { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); gap: 12px; margin-top: 12px; align-items: start; }
.meeting-bottom > .hp-panel { margin: 0; }
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2em; align-items: start; }
.day-table th, .day-table td { padding: 0.2em 0.4em; }
.day-table td.w { color: var(--win); font-weight: 700; }
.day-table tr:not(.has-win) td { color: var(--muted); }
.day-table tr:not(.has-win) td:first-child { color: var(--text); }
.multi-panel { margin-top: 12px; }
.multi-table .amt { text-align: right; font-variant-numeric: tabular-nums; }
.multi-table td { border-bottom: 0; }
.multi-table tr.pool-first td { border-top: 1.5px solid #b9c8dc; }
.multi-table td:nth-child(2), .multi-table td:nth-child(3) { white-space: nowrap; } /* 「第9至11場」「安慰獎」唔好摺行 */
.multi-table tr.pool-first td:first-child { color: #005094; font-weight: 600; }

/* 全日賽果：大熱跑唔入頭四 */
.fav-out { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0.2em 0 0.4em; color: var(--muted); font-size: var(--fs-sm, 13px); }
.fav-out a { color: var(--text); }

/* 全日賽果：當日跑道偏差 */
.bias-panel { margin-bottom: 1em; }
.bias-table th, .bias-table td { text-align: center; }
.bias-table thead tr:first-child th:not(:first-child) { border-left: 2px solid #d5deea; }
.bias-table tbody td:nth-child(3n + 2) { border-left: 2px solid #d5deea; }
.bias-table tbody th { white-space: nowrap; }
.bias-table tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8em; }
.bias-table td .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.bias-table td .n small { margin-left: 1px; font-weight: 400; font-size: 0.8em; }
.bias-table td .pct { margin-left: 0.35em; color: var(--muted); font-size: 0.85em; }
.bias-table td.bias-up { background: #fde4e4; color: #c62828; }
.bias-table td.bias-down { background: #e3edfb; color: #1f5fbf; }

/* 騎師資料頁 */
.jk-photo { width: 5.5em; height: auto; flex: none; border-radius: 6px; background: var(--surface-2); }
.hp-brand .fs-sel { margin-left: 0.4em; font-weight: 400; }
.jk-intro { max-height: 8em; overflow: hidden; line-height: 1.6; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.jk-intro.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.jk-intro p { margin: 0 0 0.5em; white-space: pre-line; }
.jk-intro b { color: #005094; }
.jk-intro .src { color: var(--muted); font-size: var(--fs-sm, 13px); }
.jk-more { margin-top: 0.4em; }
table.form td.name a { color: var(--text); font-weight: 600; }
.jk-rank { max-width: 64em; }
.jk-rank th, .jk-rank td { padding: 0.3em 0.8em; }
.jk-rank td.nm a { color: var(--text); font-weight: 600; }
.jk-rank td.muted { color: var(--muted); }
.jk-rank tbody tr:nth-child(even) td { background: #eef2f8; }
.jk-rank tbody tr:hover td { background: #dfe8f4; }
.jk-rank td.l { text-align: left; }
/* 騎師名連結：唔搶眼，滑鼠放上去先變藍 */
a.person { color: inherit; text-decoration: none; }
a.person:hover { color: #005094; text-decoration: underline; }
.more-row { display: flex; justify-content: center; gap: 0.8em; }
.more-row .more-btn { margin: 0.8em 0 0; }
.more-row .more-btn { width: auto; flex: 1; }
.more-row .more-btn + .more-btn { flex: 0 0 auto; padding: 10px 1.5em; }
/* 騎師頁：策騎紀錄每個賽日之間加分隔線 */
table.form tr.day-first td { border-top: 2px solid #9fb3cc; }
.jk-cups { max-height: 11.5em; overflow-y: auto; padding-right: 0.4em; }
.roi { font-variant-numeric: tabular-nums; white-space: nowrap; }
.roi.up { color: #c62828; }
.roi.down { color: #1f5fbf; }
/* 騎師頁：騎師路紙（最近 5 個賽日格仔） */
.jk-recent { display: flex; align-items: center; gap: 0.8em; margin-top: 0.5em; }
.jk-recent .lbl { color: var(--muted); font-size: var(--fs-sm, 13px); font-weight: 600; writing-mode: vertical-rl; letter-spacing: 0.1em; }
.jk-days { display: flex; border: 1px solid #d5deea; border-radius: 6px; overflow: hidden; }
.jk-day { display: flex; flex-direction: column; align-items: center; gap: 0.2em; padding: 0.25em 0.6em 0.35em; color: var(--text); text-decoration: none; }
.jk-day + .jk-day { border-left: 1px solid #d5deea; }
.jk-day:hover { background: #eef3fa; }
.jk-day .when { font-size: var(--fs-sm, 13px); font-weight: 600; white-space: nowrap; }
.jk-day .marks { display: flex; gap: 2px; }
.jk-day .marks span { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; font-size: 0.9em; font-weight: 700; font-variant-numeric: tabular-nums; }
.jk-day .w { background: #e53950; color: #fff; border-radius: 3px; }
.jk-day .p { background: #8f99a6; color: #fff; border-radius: 3px; }
.jk-day .n { background: #1c2430; color: #fff; border-radius: 50%; }
.hp-head .jk-recent { margin: 0 0 0 auto; }
.jk-legend { display: flex; align-items: center; justify-content: flex-end; gap: 0.3em; margin-bottom: 0.25em; color: var(--muted); font-size: var(--fs-sm, 13px); }
.jk-legend span { display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.5em; }
.jk-legend .w { background: #e53950; border-radius: 2px; }
.jk-legend .p { background: #8f99a6; border-radius: 2px; }
.jk-legend .n { background: #1c2430; border-radius: 50%; }
.jk-day.off .when { color: var(--muted); font-weight: 400; }
/* 馬匹頁：上名評分圖 */
.hp-table tr.now td { border-top: 1px dashed #c3cfdf; color: #005094; font-weight: 700; }
.rc-panel { margin-top: 0.6em; padding-top: 0.5em; border-top: 1px solid var(--line); }
.rc-cap { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; color: var(--muted); font-size: var(--fs-sm, 13px); }
.rc-cap b { color: #005094; }
.rc-cap .k { display: inline-block; width: 0.75em; height: 0.75em; margin: 0 0.25em 0 0.6em; border: 2px solid #005094; border-radius: 50%; vertical-align: -1px; }
.rc-cap .k.win { background: #005094; }
.rc-cap .k.now { width: 1.1em; height: 0; border: 0; border-top: 2px dashed #8f99a6; border-radius: 0; vertical-align: 3px; }
.rc-wrap { position: relative; }
.rc-svg { display: block; width: 100%; height: auto; font-family: Verdana, sans-serif; }
.rc-grid { stroke: #e6ebf2; stroke-width: 1; }
.rc-tick { fill: var(--muted); font-size: 11px; }
.rc-now { stroke: #8f99a6; stroke-width: 1.5; stroke-dasharray: 6 4; }
.rc-now-label { fill: #4b5563; font-size: 12px; font-weight: 700; }
.rc-line { fill: none; stroke: #9fb3cc; stroke-width: 1.5; }
.rc-dot { fill: #fff; stroke: #005094; stroke-width: 2; }
.rc-dot.win { fill: #005094; }
.rc-hit { fill: transparent; cursor: pointer; }
.rc-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); padding: 0.4em 0.7em; background: #fff; border: 1px solid #c9d3e0; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); font-size: var(--fs-sm, 13px); white-space: nowrap; pointer-events: none; }
.rc-tip .muted { color: var(--muted); }
.rc-btns { display: inline-flex; border: 1px solid #c9d3e0; border-radius: 5px; overflow: hidden; }
.rc-btn { padding: 0.05em 0.6em; border: 0; background: #fff; color: var(--text); font: inherit; font-size: var(--fs-sm, 13px); cursor: pointer; }
.rc-btn + .rc-btn { border-left: 1px solid #c9d3e0; }
.rc-btn.on { background: #005094; color: #fff; }
.rc-key { display: flex; justify-content: flex-end; align-items: center; margin-top: 0.2em; color: var(--muted); font-size: var(--fs-sm, 13px); }
.rc-key .k { display: inline-block; width: 0.75em; height: 0.75em; margin: 0 0.25em 0 0.6em; border: 2px solid #005094; border-radius: 50%; vertical-align: -1px; }
.rc-key .k.win { background: #005094; }
.rc-key .k.now { width: 1.1em; height: 0; border: 0; border-top: 2px dashed #8f99a6; border-radius: 0; vertical-align: 3px; }
.rc-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.4em; margin-top: 0.4em; font-size: var(--fs-sm, 13px); color: var(--muted); }
.rc-range b { margin-right: 0.9em; color: var(--text); font-size: 1.1em; font-variant-numeric: tabular-nums; }
.rc-range .now { color: #005094; }
.hp-panel > h2 + .rc-panel { margin-top: 0; padding-top: 0; border-top: 0; } /* 圖就喺標題下面，唔使分隔線 */
/* 騎練合作（舊站式表格：每位主角幾行，每行 4 組合作對象） */
.cb-panel { padding: 0.4em; }
.cb-wrap { overflow-x: auto; }
.cb-table { width: auto; border-collapse: collapse; font-size: var(--fs-sm, 13px); font-variant-numeric: tabular-nums; }
.cb-table th { padding: 0.3em 0.2em; color: var(--muted); font-weight: 500; text-align: center; border-bottom: 2px solid #c9d3e0; }
.cb-table td { min-width: 1.6em; padding: 0.05em 0.35em; line-height: 1.5; text-align: center; border-top: 1px solid #e6ebf2; }
.cb-table tbody { border-top: 2px solid #c9d3e0; }
.cb-table tbody.alt td { background: #f6f8fb; }
.cb-table .cb-ab { border-left: 2px solid #d5deea; font-weight: 700; }
.cb-table .cb-ab a { color: #005094; text-decoration: underline; }
.cb-table td a { color: var(--text); }
.cb-table td.w a { color: #c62828; font-weight: 700; }
.cb-table td.cb-pct { min-width: 2.6em; color: var(--muted); }
.cb-table td.cb-pct.hot { color: #c62828; }
.cb-table .cb-who { width: 9em; text-align: left; vertical-align: top; padding: 0.3em 0.8em 0.3em 0.5em; white-space: nowrap; line-height: 1.35; }
.cb-table .cb-who .nm { color: var(--text); font-size: 1.1em; font-weight: 700; text-decoration: none; }
.cb-table .cb-who .nm:hover { color: #005094; }
/* 主角格：冠亞季出四格對齊 */
.cb-k { display: grid; grid-template-columns: repeat(4, 2.2em); margin-top: 0.25em; text-align: center; }
.cb-k .h { color: var(--muted); font-size: 0.85em; }
.cb-k b { color: #005094; font-variant-numeric: tabular-nums; }
.cb-r { display: flex; gap: 0.9em; margin-top: 0.15em; color: var(--muted); }
.h1-link { margin-left: 0.8em; font-size: 0.5em; font-weight: 400; color: #005094; }
.cb-table th.cb-roi, .cb-table td.cb-roi { min-width: 4.2em; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.cb-table td.cb-roi.up, .cb-r.roi.up { color: #c62828; }
.cb-table td.cb-roi.down, .cb-r.roi.down { color: #1f5fbf; }
.cb-r.roi { font-weight: 700; }
/* 賽後頁：頭四名馬名大少少 */
.result-table tr.top4 td.name a { font-size: 1.15em; }
/* 排位表 */
.rc-table td.nm a { color: var(--text); font-weight: 700; font-size: 1.1em; }
.rc-silks { width: 2.2em; height: auto; vertical-align: middle; }
.rc-table tr.run { cursor: pointer; }
.rc-table tr.standby td { color: var(--muted); }
.rc-table tr.standby td.nm a { color: var(--muted); font-weight: 400; }
.rc-last6 { display: inline-flex; gap: 0.15em; font-variant-numeric: tabular-nums; }
.rc-last6 a { min-width: 1.3em; text-align: center; color: var(--text); }
.rc-last6 a.p1 { color: #c62828; font-weight: 700; }
.rc-last6 a.p3 { color: #c62828; font-weight: 700; }
.rc-rec { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-rec.win { color: #c62828; }
.rc-table .up { color: #c62828; }
.rc-table .down { color: #1f5fbf; }
.rc-table .muted { color: var(--muted); }
.rc-tag { padding: 0 0.35em; border-radius: 3px; background: #fff4d6; color: #8a5a00; font-weight: 700; }
.rc-hk { display: inline-block; margin-left: 0.25em; padding: 0 0.25em; border-radius: 3px; background: #fde2e2; color: #b42318; font-size: 0.75em; font-weight: 700; line-height: 1.4; vertical-align: middle; cursor: help; } /* 馬會更易事項（改騎師、改磅、後備補上、退出），2026-11-14 */
.rc-detail td { background: #f6f8fb; padding: 0.4em 0.8em 0.8em; text-align: left; }
.rc-last td.w { color: #c62828; font-weight: 700; }
.form-panel h2 .fs-clear { margin-left: auto; }
.rc-picker { margin-bottom: 0.6em; padding: 0.6em 0.8em; background: #eef3fa; border-radius: 6px; font-size: var(--fs-sm, 13px); }
.rc-presets { display: flex; align-items: center; gap: 0.4em; margin-bottom: 0.4em; }
.rc-presets .fs-clear { margin-left: 0; }
.rc-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.9em; padding: 0.2em 0; }
.rc-group b { min-width: 2.5em; color: #005094; }
.rc-group label { display: inline-flex; align-items: center; gap: 0.2em; cursor: pointer; }
.rc-table .horse-no.prio { background: #c62828; border-color: #c62828; color: #fff; }
.rc-gear.chg { color: #c62828; font-weight: 700; }
.rc-table th { line-height: 1.25; }
.rc-rate { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.rc-rate .pct { font-size: 0.9em; font-variant-numeric: tabular-nums; }
.rc-nums { display: grid; grid-template-columns: repeat(3, 1.6em) 2.1em; column-gap: 0.15em; color: var(--muted); font-size: 0.8em; font-variant-numeric: tabular-nums; }
.rc-nums span { text-align: right; }
.rc-sub { display: block; color: var(--muted); font-size: 0.85em; }
.rc-star { margin-left: 1px; color: #c62828; }
.rc-two { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 0.3em; line-height: 1.25; }
.rc-two .lbl { color: var(--muted); font-size: 0.75em; }
.rc-two .rc-nums { font-size: 0.85em; color: var(--text); }
.rc-lastrun { display: inline-flex; gap: 0.4em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-lastrun .odds { color: var(--muted); }
.rc-formstyle { display: inline-flex; flex-direction: column; gap: 0.1em; }
.rc-style { display: inline-flex; align-items: center; gap: 0.3em; font-size: 0.85em; color: var(--muted); white-space: nowrap; }
.rc-arrow { width: 3.2em; height: 1.1em; flex: none; }
/* 排位表欄多：左右留白收窄少少，1280 闊度先排得落 */
table.form.rc-table th, table.form.rc-table td { padding-left: 0.17em; padding-right: 0.17em; }
/* 排位表：負磅、檔位大字，檔位藍色（表頭唔受影響） */
table.form.rc-table td.rc-big { font-size: 1.2em; font-weight: 600; }
table.form.rc-table td.rc-weight { font-size: 1.05em; font-weight: 400; }
table.form.rc-table td.rc-draw { color: #1f5fbf; }
/* 排位表：每欄之間加淡色直線，分得清楚啲 */
table.form.rc-table th, table.form.rc-table td { border-left: 1px solid #dfe5ee; }
table.form.rc-table th:first-child, table.form.rc-table td:first-child { border-left: 0; }
table.form.rc-table thead th { border-left-color: #c9d3e0; }
table.form.rc-table tr.rc-detail td { border-left: 0; }
/* 排位表場頭：開跑時間、檔位統計 */
.rc-start { display: inline-block; width: auto; margin-right: 0.6em; padding: 0 0.4em; vertical-align: 0.05em; border-radius: 4px; background: #005094; color: #fff; font-variant-numeric: tabular-nums; }
.rc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.rc-head > .hp-head { grid-column: 1; }
.rc-head > :not(.hp-head):not(.rc-draws) { grid-column: 1; align-self: end; }
.rc-head > .rc-draws { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 0.3em 0.8em 0.3em 0; }
.rc-draws { font-size: var(--fs-sm, 13px); }
.rc-draws .cap { margin-bottom: 0.05em; line-height: 1.2; color: var(--muted); }
.rc-draws table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rc-draws th, .rc-draws td { min-width: 2.5em; padding: 0 0.25em; line-height: 1.22; text-align: center; border: 1px solid #e3e8ef; }
.rc-draws tbody tr > th:first-child { min-width: 3.4em; color: var(--muted); font-weight: 400; background: #f6f8fb; }
.rc-draws th.no { background: #eef3fa; color: #1f5fbf; font-weight: 700; }
/* 勝出率%、前四率% 兩行用淺綠底，同上面冠亞季殿賽分開 */
.rc-draws tr.rate td { background: #e8f5ec; color: #1d5e33; font-weight: 600; }
.rc-draws tbody tr.rate > th:first-child { background: #d6eedd; color: #1d5e33; }
.rc-draws tr.rate.first > * { border-top: 2px solid #8cc9a0; }
.rc-draws td.best { color: #c62828; font-weight: 700; }
.rc-draws td.n { color: var(--muted); }
.rc-table .horse-no { letter-spacing: -0.04em; } /* R1、R2 兩個字都擠得落個圈 */
/* 排位表行距收窄：兩行格（上名率、同程往績、近六仗＋跑法）行高壓細，上下留白減少 */
table.form.rc-table tbody td { padding-top: 0.12em; padding-bottom: 0.12em; line-height: 1.15; }
.rc-table .rc-rate, .rc-table .rc-two { line-height: 1.05; }
.rc-table .rc-formstyle { gap: 0; }
/* 馬匹頁：簡易排位表（今期有排位先出），左右兩邊各一半 */
.ent-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.ent-table { width: 100%; font-size: var(--fs-sm, 13px); }
/* 用家 2026-11-18：表頭一行換第二隻底色，搶眼少少（其他表頭係灰藍 #dfe7f1，呢度用主題綠；字號維持原狀） */
.form-panel table.form.ent-table thead th { background: #d3ebdf; color: #0b4f39; }
.ent-table th, .ent-table td { padding: 0.1em 0.25em; line-height: 1.2; white-space: nowrap; text-align: center; }
.ent-table td.l { text-align: left; }
.ent-table td.nm a { color: var(--text); font-weight: 700; }
.ent-table td.draw { color: #1f5fbf; }
.ent-table tr.me td { background: #fff1c2; }
.ent-table tr.standby td, .ent-table tr.standby td a { color: var(--muted); }
.ent-table tr.scr td { text-decoration: line-through; color: var(--muted); }
.ent-table .up { color: #c62828; }
.ent-table .down { color: #1f5fbf; }
.ent-table .adj { color: var(--muted); font-size: 0.85em; }
.ent-table .horse-no { letter-spacing: -0.04em; }
.ent-table .horse-no.prio { background: #c62828; border-color: #c62828; color: #fff; }
.ent-table .rc-gear.chg { color: #c62828; font-weight: 700; }
.ent-panel h2 a { color: inherit; }
/* 用家 2026-11-18：場頭（日期、場次、時間、班次、路程）字體加大 */
.hp-panel.ent-panel h2 { font-size: calc(var(--fs, 14px) * 1.3); }
.form-panel.ent-panel h2 .count { font-size: 0.85em; }
.ent-panel { scroll-margin-top: 70px; } /* 跳到簡易排位表時唔好俾頂部導航遮住 */
/* 排位表下面四個排名表（顏色跟報紙版：綠、粉紅、藍、橙） */
.rc-boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.rc-board { border: 2px solid var(--bc); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rc-board h3 { margin: 0; padding: 0.3em 0.6em; background: var(--bg2); color: #222; font-size: 1em; text-align: center; }
.rc-board ol { margin: 0; padding: 0.2em 0.5em; list-style: none; }
.rc-board li { display: flex; align-items: center; gap: 0.45em; padding: 0.22em 0; border-top: 1px solid var(--bg2); }
.rc-board li:first-child { border-top: 0; }
.rc-board li a { flex: 1; color: var(--text); font-weight: 600; }
.rc-board li b { font-variant-numeric: tabular-nums; }
.rc-board li:first-child b { color: #c62828; }
.rc-board .horse-no { letter-spacing: -0.04em; }
.rc-board p { margin: 0; padding: 0.5em 0.6em; }
.rc-board.b1 { --bc: #8cc9a0; --bg2: #d6eedd; }
.rc-board.b2 { --bc: #e8a3bd; --bg2: #f8dbe6; }
.rc-board.b3 { --bc: #9db7dc; --bg2: #dbe6f5; }
.rc-board.b4 { --bc: #efb98a; --bg2: #fbe3cf; }
.rc-board .cnt { display: grid; grid-template-columns: repeat(4, 1.7em) 2.4em; color: var(--muted); font-size: 0.82em; font-variant-numeric: tabular-nums; }
.rc-board .cnt span { text-align: right; }
.rc-board li b { min-width: 2.9em; text-align: right; }
.rc-board li.hd { padding: 0.05em 0; font-size: 0.85em; }
.rc-board li.hd .sp { flex: 1; }
.rc-board li.hd + li { border-top: 0; }
.rc-board li.hd .cnt { font-size: 1em; }
.rc-board li.hd + li b { color: #c62828; }
/* 騎練串Q及PQ表：右上騎師（藍）、左下練馬師（綠）；有Q嘅格紅字 */
.rc-pairs { margin-top: 12px; }
.rc-pairs-wrap { overflow-x: auto; }
.rc-pairs table { border-collapse: collapse; font-size: var(--fs-sm, 13px); font-variant-numeric: tabular-nums; margin: 0 auto; }
.rc-pairs th, .rc-pairs td { border: 1px solid #dfe5ee; text-align: center; padding: 0.1em 0.2em; min-width: 2.6em; height: 1.7em; }
.rc-pairs th.vt { height: auto; padding: 0.3em 0; font-weight: 600; }
.rc-pairs th.vt span { writing-mode: vertical-rl; letter-spacing: 0.05em; }
.rc-pairs th.vt.jk { background: #eef3fa; color: #1f4fa3; }
.rc-pairs th.vt.tr { background: #eaf6ee; color: #1d5e33; }
.rc-pairs th.side { white-space: nowrap; font-weight: 600; padding: 0 0.5em; }
.rc-pairs th.side.l { background: #eaf6ee; color: #1d5e33; text-align: right; }
.rc-pairs th.side.r { background: #eef3fa; color: #1f4fa3; text-align: left; }
.rc-pairs th.corner { border: 0; background: none; color: var(--muted); font-weight: 400; font-size: 0.85em; }
.rc-pairs td.jk { background: #f7faff; }
.rc-pairs td.tr { background: #f6fbf7; }
/* 每格分兩半：左 Q（騎師藍、練馬師粉紅，淺色底），右 PQ（黑字） */
.rc-pairs td.jk, .rc-pairs td.tr { padding: 0; white-space: nowrap; }
.rc-pairs td .q, .rc-pairs td .pq { display: inline-block; width: 1.45em; line-height: 1.7em; font-weight: 700; text-align: center; }
.rc-pairs td.jk .q:not(:empty) { background: #d9e7fb; color: #1f5fbf; }
.rc-pairs td.tr .q:not(:empty) { background: #fbdde8; color: #d6336c; }
.rc-pairs td .pq { color: #222; }
.rc-pairs td.diag { background: #e9edf3; }
.rc-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.rc-bottom > .rc-pairs, .rc-bottom > .rc-boards { margin-top: 0; }
.rc-bottom > .rc-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-bottom > .rc-boards:only-child { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 串Q表拆兩個階梯：練馬師表靠右喺上，騎師表靠左喺下，中間留空 */
.rc-pairs-wrap { display: flex; flex-direction: column; gap: 6px; }
.rc-pairs-wrap > table { margin: 0; }
.rc-pairs-wrap > table.tr-t { align-self: flex-end; }
.rc-pairs-wrap > table.jk-t { align-self: flex-start; }
.rc-pairs td.void { border: 0; background: none; }
.rc-pairs th.side.tr { background: #fbeef3; color: #b02a5b; }
.rc-pairs th.vt.tr { background: #fbeef3; color: #b02a5b; }
/* 串Q表名：黑字、冇底色；滑鼠指住一格，對應兩個名同嗰格變色 */
.rc-pairs th.vt.jk, .rc-pairs th.vt.tr, .rc-pairs th.side.jk, .rc-pairs th.side.tr { background: none; color: #222; }
.rc-pairs td.jk, .rc-pairs td.tr { background: none; }
.rc-pairs th.hl { background: #ffe08a !important; color: #000 !important; }
.rc-pairs td.hl { outline: 2px solid #e0a800; outline-offset: -2px; background: #fff6d6; }
/* 騎師表推高咗會疊住練馬師表：騎師表空白位唔接滑鼠，等下面練馬師嘅格都指得到 */
.rc-pairs table.jk-t { pointer-events: none; }
.rc-pairs table.jk-t td:not(.void), .rc-pairs table.jk-t th:not(.corner) { pointer-events: auto; }
/* 第三、四行排名表 */
.rc-board.b5 { --bc: #b9a3dc; --bg2: #ebe3f7; }
.rc-board.b6 { --bc: #86c5c2; --bg2: #d7efee; }
.rc-board.b7 { --bc: #d9c169; --bg2: #f6eecb; }
.rc-board.b8 { --bc: #a8b3c2; --bg2: #e4e8ee; }
.rc-board li .who { flex: 1; display: flex; gap: 0.5em; font-weight: 600; }
.rc-board li .who span + span { color: var(--muted); font-weight: 400; }
.rc-board li .sub { color: var(--muted); font-size: 0.82em; font-variant-numeric: tabular-nums; }
/* 排名表每行四個（全闊）；串Q表放佢下面，唔使拉到全闊 */
main#racecard > .rc-boards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
main#racecard > .rc-pairs { margin-top: 12px; width: max-content; max-width: 100%; }
.rc-board li .who { gap: 0.3em; white-space: nowrap; min-width: 0; overflow: hidden; }
.rc-board li .who span + span { font-size: 0.88em; }
.rc-board li a { white-space: nowrap; }
.rc-board.b6 .cnt { grid-template-columns: repeat(4, 1.2em) 1.7em; } /* 騎練合作次數少，數字欄收窄，留位俾兩個名 */
/* 串Q表喺左，右邊八個統計每行四個：格窄，字同數字收細 */
.rc-bottom > .rc-boards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 12px; }
.rc-bottom .rc-board h3 { font-size: 1.05em; padding: 0.3em 0.3em; }
.rc-bottom .rc-board ol { padding: 0.15em 0.35em; }
.rc-bottom .rc-board li { gap: 0.3em; }
.rc-bottom .rc-board .cnt { grid-template-columns: repeat(4, 1.35em) 2em; font-size: 0.8em; }
.rc-bottom .rc-board.b6 .cnt { grid-template-columns: repeat(4, 1.05em) 1.5em; }
.rc-bottom .rc-board li b { min-width: 2.6em; }
.rc-bottom .rc-board li .sub { font-size: 0.78em; white-space: nowrap; }
.rc-bottom .rc-board .cnt { grid-template-columns: repeat(4, 1.1em) 1.75em; column-gap: 0.1em; }
.rc-bottom .rc-board li b { min-width: 2.3em; }
.rc-bottom .rc-board li a, .rc-bottom .rc-board li .who { min-width: 0; overflow: hidden; }
/* 右邊八個統計：字放大；每項兩行（上：馬號、名、數值；下：冠亞季殿賽或說明，靠右） */
.rc-bottom > .rc-boards { font-size: 14px; }
.rc-bottom .rc-board li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 0.35em; row-gap: 0; padding: 0.2em 0; }
.rc-bottom .rc-board li > .horse-no { grid-column: 1; grid-row: 1; }
.rc-bottom .rc-board li > a, .rc-bottom .rc-board li > .who { grid-column: 2; grid-row: 1; }
.rc-bottom .rc-board li > b { grid-column: 3; grid-row: 1; min-width: 0; }
.rc-bottom .rc-board li > .cnt, .rc-bottom .rc-board li > .sub { grid-column: 1 / -1; grid-row: 2; justify-self: end; font-size: 0.78em; line-height: 1.2; }
.rc-bottom .rc-board .cnt, .rc-bottom .rc-board.b6 .cnt { grid-template-columns: repeat(4, 1.5em) 2.2em; }
.rc-bottom .rc-board li.hd { display: flex; justify-content: flex-end; padding: 0.1em 0 0; }
.rc-bottom .rc-board li.hd .sp, .rc-bottom .rc-board li.hd b { display: none; }
.rc-bottom .rc-board li.hd .cnt { font-size: 0.78em; }
/* 場頭：獎金、彩池關數、最佳／班際／標準時間 */
.rc-prize { margin-top: 0.3em; font-size: 12.5px; line-height: 1.35; }
.rc-prize .tot b { color: #1d6e3a; font-size: 1.1em; }
.rc-prize .split { display: grid; grid-template-columns: repeat(3, max-content); column-gap: 1.2em; font-variant-numeric: tabular-nums; }
.rc-prize .split i { font-style: normal; color: var(--muted); margin-right: 0.35em; }
.rc-prize .pools { display: flex; flex-wrap: wrap; gap: 0.3em; margin-top: 0.25em; }
.rc-prize .pools span { padding: 0 0.45em; border-radius: 3px; background: #fff1c2; color: #7a5600; font-size: 0.95em; }
.rc-times { margin-left: auto; align-self: center; border-collapse: collapse; font-size: 12.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.rc-times th { padding: 0.15em 0.5em; background: #005094; color: #fff; font-weight: 600; white-space: nowrap; border-bottom: 2px solid #fff; vertical-align: middle; }
.rc-times td { padding: 0.15em 0.5em; white-space: nowrap; border-bottom: 1px solid #e3e8ef; }
.rc-times .secs { display: inline-flex; gap: 0.6em; }
.rc-head .hp-head { align-items: center; }
/* 場頭獎金、時間字體放大；最佳時間表闊啲 */
.rc-prize { font-size: 14px; }
.rc-times { font-size: 14px; min-width: 300px; }
.rc-times th { padding: 0.25em 0.7em; }
.rc-times td { padding: 0.2em 0.8em; }
.rc-times .secs { gap: 0.8em; }
.rc-prize .split { grid-template-columns: repeat(2, max-content); } /* 兩欄三行（跟報紙），唔會撞到右邊時間表 */
/* 開跑時間：場次下面，灰底 */
.rc-badge-col { display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
.rc-badge-col .rc-start { margin: 0; padding: 0.05em 0.45em; border-radius: 4px; background: #e3e7ed; color: #333; font-weight: 700; font-size: 1.05em; }
.rc-times { min-width: 400px; } /* 最佳時間表再闊三分一 */
.rc-draws th, .rc-draws td { min-width: 2.1em; padding: 0 0.15em; } /* 檔位表收窄，讓位俾場頭時間表 */
.rc-draws tbody tr > th:first-child { min-width: 3em; }
.rc-head .hp-head { gap: 0.8em; }
/* 場頭標題一行：班次路程 + 盃賽（太長截斷） */
.rc-h1 { display: flex; align-items: baseline; gap: 0.6em; white-space: nowrap; min-width: 0; }
.rc-h1 > span:first-child { flex: none; }
.rc-h1 .rc-cup { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 0.62em; font-weight: 600; color: #8a5a00; }
.rc-prize .tot { display: flex; align-items: baseline; gap: 0.3em; white-space: nowrap; min-width: 0; }
.rc-prize .tot .rc-cup { margin-left: 0.8em; font-size: 1em; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: #8a5a00; }
/* 右邊八個統計字體再放大；第二行數字同標題字都大啲 */
.rc-bottom > .rc-boards { font-size: 15.5px; }
.rc-bottom .rc-board h3 { font-size: 1.05em; }
.rc-bottom .rc-board li > .cnt, .rc-bottom .rc-board li > .sub, .rc-bottom .rc-board li.hd .cnt { font-size: 0.85em; }
.rc-lastrun .odds.fav { color: #c62828; font-weight: 700; } /* 上賽大熱：賠率紅字 */
/* 騎練出馬表 */
main#jtcard { padding: 12px 10px 24px; font-size: var(--fs, 14px); }
.jt-head { display: flex; align-items: center; gap: 1em; padding: 0.7em 1em; margin-bottom: 10px; }
.jt-head h1 { margin: 0; font-size: 1.4em; }
.jt-head .jt-back { margin-left: auto; }
.jt-wrap { overflow-x: auto; }
.jt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jt-table th, .jt-table td { border: 1px solid #dfe5ee; padding: 0.2em 0.3em; vertical-align: top; text-align: left; }
.jt-table thead th { background: #dfe7f1; color: #24364d; text-align: center; white-space: nowrap; }
.jt-table thead th small { display: block; color: var(--muted); font-weight: 400; }
.jt-table th.nm { white-space: nowrap; background: #f6f8fb; }
.jt-table td.n { text-align: center; font-weight: 700; color: #1f5fbf; }
.jt-table tbody tr:nth-child(even) td, .jt-table tbody tr:nth-child(even) th { background: #eef2f8; }
.jt-table tbody tr:hover td, .jt-table tbody tr:hover th { background: #fff6d6; }
.jt-table .ride { display: flex; align-items: center; gap: 0.25em; color: var(--text); white-space: nowrap; line-height: 1.5; }
.jt-table .ride.sb { color: var(--muted); }
.jt-table .ride .horse-no { letter-spacing: -0.04em; }
.race-tabs .jt-link { margin-left: auto; } /* 排位表場次 tab 最右：騎練出馬表 */
/* 上賽場地底色 */
.rc-lastrun .venue { padding: 0 0.25em; border-radius: 3px; }
.rc-lastrun .venue.hv { background: #dcebfb; }
.rc-lastrun .venue.stt { background: #dcf2e0; }
.rc-lastrun .venue.aw { background: #f1e3d0; }
/* 騎練出馬表字體放大 */
.jt-table { font-size: 15px; }
.jt-table th, .jt-table td { padding: 0.25em 0.35em; }
.jt-table thead th small { font-size: 0.8em; }
/* 騎練出馬表今季成績 */
.jt-table td.rk { text-align: center; color: var(--muted); }
.jt-table td.ss { white-space: nowrap; vertical-align: middle; font-variant-numeric: tabular-nums; }
.jt-nums { display: grid; grid-template-columns: repeat(3, 1.6em) 2.3em; }
.jt-nums span { text-align: right; }
.jt-nums span:first-child { color: #c62828; font-weight: 700; }
.jt-table td.pc { text-align: center; line-height: 1.15; }
.jt-table td.pc small { display: block; color: var(--muted); font-size: 0.8em; }
.jt-table td.n { vertical-align: middle; }
.jt-table .ride > span { font-size: 0.93em; } .jt-table th, .jt-table td { padding: 0.25em 0.25em; } /* 加咗今季成績，馬名收細少少令十場放得落 */
/* 騎練出馬表：每匹固定三行一樣高 */
.jt-table .ride { display: grid; grid-template-rows: repeat(3, 1.35em); align-items: center; gap: 0; line-height: 1.35; }
.jt-table .ride + .ride { margin-top: 0.3em; padding-top: 0.3em; border-top: 1px dashed #c9d3e0; }
.jt-table .ride .l1 { display: flex; align-items: center; gap: 0.25em; white-space: nowrap; }
.jt-table .ride .l1 > span { font-size: 0.93em; }
.jt-table .ride .l2 { color: var(--muted); font-size: 0.85em; padding-left: 1.6em; white-space: nowrap; }
.jt-table .ride .l3 { color: #c62828; font-size: 0.85em; padding-left: 1.6em; }
/* 騎練出馬表：名下面今季成績；全部字放大 */
.jt-table { font-size: 16.5px; }
.jt-table thead th small { font-size: 0.75em; }
.jt-table th.nm { vertical-align: middle; }
.jt-table th.nm a { display: block; font-size: 1.05em; }
.jt-table th.nm .jt-nums { grid-template-columns: repeat(4, 1.45em) 2.1em; margin-top: 0.15em; font-size: 0.8em; font-weight: 400; color: var(--muted); }
.jt-table td.rk { vertical-align: middle; }
.jt-table .ride .l1 > span { font-size: 1em; }
.jt-table .ride .l2, .jt-table .ride .l3 { font-size: 0.88em; }
.jt-table .ride { grid-template-rows: repeat(3, 1.4em); }
/* 騎練出馬表：名同今季成績居中、成績字大啲；第二行簡稱 + 統計；揀統計 */
.jt-table th.nm { text-align: center; }
.jt-table th.nm .jt-nums { justify-content: center; font-size: 0.92em; color: var(--text); }
.jt-table thead th small { font-size: 0.8em; }
.jt-table .ride .l2 { display: flex; gap: 0.5em; color: var(--text); }
.jt-table .ride .l2 .st { color: #1f5fbf; font-variant-numeric: tabular-nums; }
.jt-stat { margin-left: auto; font-size: 0.9em; font-weight: 400; color: var(--muted); }
.jt-table .ride .l2 { gap: 0.3em; } .jt-table .ride .l2 .st { font-size: 0.88em; letter-spacing: -0.02em; } /* 統計數字收細少少，十場放得落 */
/* 騎練出馬表：統計字大啲；今季成績標題同數字大啲、唔用紅色 */
.jt-table .ride .l2 .st { font-size: 1em; letter-spacing: 0; }
.jt-table .jt-nums span:first-child { color: inherit; font-weight: inherit; }
.jt-table th.nm .jt-nums { font-size: 1em; }
.jt-table thead .jt-nums.hd { display: grid; grid-template-columns: repeat(4, 1.45em) 2.1em; justify-content: center; font-size: 0.85em; font-weight: 400; color: var(--muted); }
.jt-table th.nm .jt-nums, .jt-table thead .jt-nums.hd { grid-template-columns: repeat(4, 1.3em) 1.9em; }
.jt-table .ride .l2 .st { font-size: 0.95em; }
.jt-table th, .jt-table td { padding-left: 0.2em; padding-right: 0.2em; }
.jt-table .ride .l2 { gap: 0.2em; } .jt-table .ride .l2 .st { letter-spacing: -0.03em; } /* 歷季成績四個數都放得落 */
/* 騎練出馬表：今季冠亞季殿賽五個 column */
.jt-table th.cnt, .jt-table td.cnt { text-align: right; vertical-align: middle; padding: 0 0.3em; min-width: 1.4em; font-variant-numeric: tabular-nums; }
.jt-table td.cnt.n4 { color: var(--muted); }
.jt-table thead th.cnt { text-align: right; }
.jt-table th.cnt, .jt-table td.cnt { padding: 0 0.12em; min-width: 1.15em; font-size: 0.92em; }
.jt-table th.nm { padding: 0 0.3em; }
.jt-table .ride .l1 { gap: 0.15em; }
.jt-table th.nm a { display: inline; }
.jt-table th.nm .ab { margin-left: 0.1em; color: var(--muted); font-weight: 400; }
/* 排位表賠率欄、分時段賠率表 */
table.form.rc-table td.rc-odds { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rc-table .od.fav { color: #c62828; }
.rc-slots { margin-top: 12px; }
.rc-slots h2 { display: flex; align-items: baseline; gap: 0.8em; }
.rc-slot-btns { margin-left: auto; display: inline-flex; gap: 0.3em; }
.rc-slot-btns button { padding: 0.15em 0.8em; border: 1px solid #c9d3e0; border-radius: 4px; background: #fff; cursor: pointer; font: inherit; font-size: 0.85em; }
.rc-slot-btns button.on { background: #005094; border-color: #005094; color: #fff; }
.rc-slot-wrap { overflow-x: auto; }
.rc-slot-table { border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.rc-slot-table th, .rc-slot-table td { border: 1px solid #dfe5ee; padding: 0.15em 0.55em; text-align: right; white-space: nowrap; }
.rc-slot-table th { background: #dfe7f1; color: #24364d; font-weight: 600; text-align: center; line-height: 1.15; }
.rc-slot-table th small { display: block; font-weight: 400; font-size: 0.75em; color: var(--muted); }
.rc-slot-table td.l, .rc-slot-table th.l { text-align: left; }
.rc-slot-table td:first-child { text-align: center; }
.rc-slot-table tbody tr:nth-child(even) td { background: #f3f6fa; }
.rc-slot-table td.d10 { background: #e3e6ea !important; }
.rc-slot-table td.d20 { background: #c9ecd3 !important; }
.rc-slot-table td.d30 { background: #e8cfae !important; }
.jt-table .ride .l3 { color: var(--text); font-variant-numeric: tabular-nums; } .jt-table .ride .l3.fav { color: #c62828; font-weight: 700; }
/* 加咗獨贏、位置兩欄：上賽同上名率數字格收窄少少，1280 闊度放得落 */
.rc-lastrun { gap: 0.22em; }
.rc-nums { grid-template-columns: repeat(3, 1.4em) 1.9em; column-gap: 0.1em; }
.rc-lastrun { gap: 0.18em; } table.form.rc-table td.rc-odds { padding-left: 0.12em; padding-right: 0.12em; }
.rc-lastrun { letter-spacing: -0.01em; }
/* 獨贏／位置合做一欄：兩格對齊，標題第二行賠率時間 */
.rc-oddspair { display: inline-grid; grid-template-columns: 2.4em 2.2em; column-gap: 0.25em; }
.rc-oddspair > span { text-align: right; }
.rc-table thead .rc-oddspair > span { text-align: center; }
.rc-oddstime { color: var(--muted); font-size: 0.85em; font-weight: 400; }
.rc-oddspair { grid-template-columns: 2.15em 1.95em; column-gap: 0.15em; }
.rc-oddspair { column-gap: 0.08em; }
/* 獨贏／位置：兩格闊啲、置中；賠率前面一粒燈（跌 20% 綠、50% 啡），冇訊號留空位保持對齊 */
.rc-oddspair { grid-template-columns: 3.1em 2.9em; column-gap: 0.1em; }
.rc-oddspair > span, .rc-table thead .rc-oddspair > span { text-align: center; }
.rc-table .odc { display: inline-flex; align-items: center; justify-content: center; gap: 0.12em; }
.rc-table .odot { display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; flex: none; }
.rc-table .odot.g { background: #16a34a; }
.rc-table .odot.b { background: #8b4513; }
/* 賠率欄闊咗：近六仗數字格、上賽字收窄少少，1280 闊度放得落 */
.rc-last6 a { min-width: 1.12em; }
.rc-last6 { gap: 0.1em; }
.rc-lastrun { font-size: 0.96em; }
.rc-oddspair { grid-template-columns: 3em 2.8em; }
.rc-lastrun { font-size: 0.93em; } .rc-last6 a { min-width: 1.08em; }
/* 排位表欄闊每場一樣：先收窄留位，之後每欄用固定闊度（見下面 k-* 規則） */
table.form.rc-table th, table.form.rc-table td { padding-left: 0.11em; padding-right: 0.11em; }
.rc-oddspair { grid-template-columns: 2.85em 2.65em; }
/* 排位表欄闊每場一樣：table-layout fixed，每欄用十場入面最闊嗰個（1280 闊度量度，合共約 1219px）
   冇指定嘅自選欄位預設 54px；揀多咗欄就會闊過畫面，可以左右碌 */
table.form.rc-table { table-layout: fixed; width: 100%; }
table.form.rc-table > thead th { box-sizing: border-box; width: 54px; }
table.form.rc-table > thead th.k-odds { width: 70px; }
table.form.rc-table > thead th.k-trump,
table.form.rc-table > thead th.k-no,
table.form.rc-table > thead th.k-class_change,
table.form.rc-table > thead th.k-draw { width: 26px; }
table.form.rc-table > thead th.k-name { width: 57px; }
table.form.rc-table > thead th.k-gear { width: 53px; }
table.form.rc-table > thead th.k-jockey { width: 64px; }
table.form.rc-table > thead th.k-rec_jockey_dist,
table.form.rc-table > thead th.k-rec_trainer_dist { width: 66px; }
table.form.rc-table > thead th.k-weight { width: 28px; }
table.form.rc-table > thead th.k-trainer { width: 56px; }
table.form.rc-table > thead th.k-rec_combo_dist { width: 70px; }
table.form.rc-table > thead th.k-age { width: 15px; }
table.form.rc-table > thead th.k-rating { width: 44px; }
table.form.rc-table > thead th.k-placed_rating,
table.form.rc-table > thead th.k-won_rating { width: 48px; }
table.form.rc-table > thead th.k-rec_dist { width: 91px; }
table.form.rc-table > thead th.k-best { width: 51px; }
table.form.rc-table > thead th.k-days { width: 39px; }
table.form.rc-table > thead th.k-last_run { width: 148px; }
table.form.rc-table > thead th.k-form_style { width: 101px; }
/* 場頭每場一樣：場次｜標題（佔餘下位）｜最佳時間表（固定 400px），全部靠頂；彩池關數同盃賽唔斷行，高度唔會變 */
.rc-head > .hp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 400px; align-items: start; }
.rc-head .rc-times { width: 400px; margin-left: 0; align-self: start; table-layout: fixed; }
.rc-head .rc-times th { width: 6.2em; }
.rc-head .rc-times td { overflow: hidden; text-overflow: ellipsis; }
.rc-prize .pools { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.rc-head .hp-title { min-width: 0; }
/* 冠亞季出賽數字：0 淺灰、冠紅、出賽同前面分開；同程／變化地標籤做細底色標 */
.rc-table .rc-nums span { color: #1c2430; }
.rc-table .rc-nums span.z { color: #c3cad4; }
.rc-table .rc-nums span.w { color: #c62828; font-weight: 700; }
.rc-table .rc-nums span.t { border-left: 1px solid #d5dbe4; color: #5b6676; }
.rc-table .rc-nums span.t.z { color: #c3cad4; }
.rc-table .rc-two .lbl { padding: 0 0.3em; border-radius: 3px; background: #eef2f7; color: #5b6676; font-size: 0.72em; line-height: 1.5; text-align: center; }
.rc-table .rc-two .rc-nums { font-size: 0.95em; } /* 同程往績數字大啲 */
.rc-table .rc-two .rc-nums { grid-template-columns: repeat(3, 1.15em) 1.75em; column-gap: 0.12em; } .rc-table .rc-two { column-gap: 0.2em; }
.rc-table .rc-two { grid-template-columns: 2.4em auto; justify-content: start; } /* 標籤欄固定闊，每行對齊 */
.rc-table .rc-two { grid-template-columns: 2em auto; } .rc-table .rc-two .rc-nums { grid-template-columns: repeat(3, 1.1em) 1.65em; }
/* 馬匹資料賽績表：行距收窄（馬季分隔行、簡易排位表唔郁） */
main#horse .form-panel:not(.ent-panel) table.form > tbody > tr:not(.season) > td { padding-top: 0.12em; padding-bottom: 0.12em; line-height: 1.2; }
/* 馬匹頁：詳細資料收埋時嘅摘要行同開關掣 */
.hp-sum { display: flex; align-items: center; gap: 1em; margin: 10px 0 0; padding: 0.55em 1em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hp-sum .items { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2em 0.5em; flex: 1; min-width: 0; }
.hp-sum .sep { color: #c9d3e0; }
.hp-sum .ar { display: inline-flex; gap: 0.3em; font-variant-numeric: tabular-nums; }
.hp-sum .ar i { font-style: normal; color: var(--muted); }
.hp-sum .vet { color: var(--muted); cursor: help; }
.hp-sum .vet.recent { color: #c62828; font-weight: 700; }
.hp-toggle { flex: none; padding: 0.3em 0.9em; border: 1px solid #c9d3e0; border-radius: 4px; background: #fff; color: #005094; font: inherit; cursor: pointer; }
.hp-toggle:hover { background: #eef3fa; }
.hp-details[hidden] { display: none; }
/* 名次：三名以內紅（.place.top3），全站一樣 */
table.form td.place { font-size: inherit; } /* 名次同旁邊沿途走位一樣大（之前細咗一號，似唔同字體） */
/* 連贏／位置Q 賠率表：右上連贏、左下位置Q；時段掣一行 */
.rc-slots .rc-slot-btns { display: flex; flex-wrap: wrap; gap: 0.3em; margin: 0 0 0.6em; }
.rc-q-table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rc-q-table th, .rc-q-table td { border: 1px solid #dfe5ee; padding: 0.15em 0.35em; text-align: center; min-width: 2.9em; white-space: nowrap; }
.rc-q-table thead th, .rc-q-table tbody th { background: #dfe7f1; }
.rc-q-table th.corner { position: relative; min-width: 4.2em; height: 2.2em; background: linear-gradient(to top right, #dfe7f1 49%, #b9c6d6 50%, #dfe7f1 51%); font-size: 0.75em; font-weight: 400; }
.rc-q-table th.corner .qn { position: absolute; top: 0.1em; right: 0.3em; color: #1f4fa3; }
.rc-q-table th.corner .pn { position: absolute; bottom: 0.1em; left: 0.3em; color: #1d5e33; }
.rc-q-table td.qin { background: #f7faff; }
.rc-q-table td.qpl { background: #f6fbf7; }
.rc-q-table td.diag { background: #e9edf3; }
.rc-q-table td.fav { color: #c62828; font-weight: 700; }
.rc-q-table td.d10 { background: #e3e6ea; }
.rc-q-table td.d20 { background: #c9ecd3; }
.rc-q-table td.d30 { background: #e8cfae; }
.rc-q-table .odot { display: inline-block; width: 0.45em; height: 0.45em; border-radius: 50%; margin-right: 0.15em; vertical-align: 0.1em; }
.rc-q-table .odot.g { background: #16a34a; }
.rc-q-table .odot.b { background: #8b4513; }
/* 連贏／位置Q：跟馬會樓梯格式，兩個表並排 */
.rc-q-wrap { display: flex; flex-wrap: wrap; gap: 16px; overflow-x: auto; }
.rc-q-table { border-collapse: separate; border-spacing: 2px; font-size: 14px; }
.rc-q-table th, .rc-q-table td { border: 1px solid #c9d3e0; padding: 0.15em 0.3em; min-width: 2.2em; height: 1.7em; text-align: right; background: #fff; }
.rc-q-table thead th { border: 0; background: #005094; color: #fff; font-weight: 700; text-align: center; }
.rc-q-table thead th.qt { background: #b0177a; letter-spacing: 0.1em; }
.rc-q-table td.ql { border: 0; background: #005094; color: #fff; font-weight: 700; text-align: center; }
.rc-q-table td.qb { border: 0; background: #005094; }
.rc-q-table td.qe { border-color: #e3e8ef; background: #fff; }
.rc-q-table td.qin, .rc-q-table td.qpl { background: #fff; }
.rc-q-table td.fav { color: #c62828; font-weight: 700; }
.rc-q-table td.d10 { background: #e3e6ea; }
.rc-q-table td.d20 { background: #c9ecd3; }
.rc-q-table td.d30 { background: #e8cfae; }
/* 獨贏／位置 + 連贏／位置Q：用網站風格（淺藍標題、深藍字），左邊獨贏位置，右邊連贏同位置Q 上下排 */
.rc-q-wrap { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 18px; }
.rc-q-stack { display: flex; flex-direction: column; gap: 12px; }
.rc-wp-table, .rc-q-table { border-collapse: collapse; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.rc-wp-table th, .rc-wp-table td, .rc-q-table th, .rc-q-table td { border: 1px solid #dfe5ee; padding: 0.12em 0.4em; height: 1.75em; background: #fff; }
.rc-wp-table thead th, .rc-q-table thead th { background: #dfe7f1; color: #24364d; font-weight: 600; text-align: center; border-color: #cdd7e4; }
.rc-q-table thead th.qt { background: #005094; color: #fff; letter-spacing: 0.15em; }
.rc-wp-table td { text-align: right; }
.rc-wp-table td.c { text-align: center; }
.rc-wp-table td.l { text-align: left; }
.rc-wp-table td.nm { white-space: nowrap; max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
.rc-wp-table tbody tr:nth-child(even) td { background: #f6f8fb; }
.rc-q-table td { min-width: 2.3em; text-align: right; }
.rc-q-table td.ql { background: #eef3fa; color: #1f4fa3; font-weight: 700; text-align: center; border-color: #cdd7e4; }
.rc-q-table td.qb { background: #f3f6fa; border-color: #e3e8ef; }
.rc-q-table td.qe { background: #fbfcfd; border-color: #eef1f5; }
.rc-wp-table td.fav, .rc-q-table td.fav { color: #c62828; font-weight: 700; }
.rc-wp-table td.d10, .rc-q-table td.d10 { background: #e3e6ea; }
.rc-wp-table td.d20, .rc-q-table td.d20 { background: #c9ecd3; }
.rc-wp-table td.d30, .rc-q-table td.d30 { background: #e8cfae; }
.rc-wp-table .odot, .rc-q-table .odot { display: inline-block; width: 0.45em; height: 0.45em; border-radius: 50%; margin-right: 0.15em; vertical-align: 0.1em; }
.rc-wp-table .odot.g, .rc-q-table .odot.g { background: #16a34a; }
.rc-wp-table .odot.b, .rc-q-table .odot.b { background: #8b4513; }
/* 排位表白卡：連贏｜位置Q｜派彩 三欄 */
.rc-slots .rc-q-wrap { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px; align-items: start; }
.rc-slots .rc-q-table { font-size: 13px; }
.rc-slots .rc-q-table th, .rc-slots .rc-q-table td { min-width: 0; width: 1.9em; padding: 0.1em 0.2em; height: 1.7em; }
.rc-slots .rc-q-table thead th.qt { width: auto; }
.rc-div-box { min-width: 0; }
.rc-div-head { padding: 0.12em 0.5em; background: #005094; color: #fff; font-weight: 700; letter-spacing: 0.15em; font-size: 13px; }
.rc-div-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rc-div-table td { padding: 0.15em 0.4em; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.rc-div-table tr.first td { border-top: 1px solid #dfe5ee; }
.rc-div-table td.pool { color: #24364d; font-weight: 600; white-space: nowrap; }
.rc-div-table td.amt { text-align: right; white-space: nowrap; }
.rc-div-box p { margin: 0.5em 0.3em; }
/* 連贏／位置Q 放大；兩個表一行；冇賠率唔出白卡 */
.rc-slots[hidden] { display: none; }
.rc-slots .rc-q-wrap { display: flex; flex-wrap: wrap; gap: 16px; }
.rc-slots .rc-q-table { font-size: 15px; }
.rc-slots .rc-q-table th, .rc-slots .rc-q-table td { width: 2.15em; padding: 0.15em 0.25em; height: 1.85em; }
/* 賽果派彩（跟報紙格式）：名次各彩池｜位置Q｜時間距離分段 */
.rc-result:empty { display: none; }
.rc-res { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 14px; padding-top: 12px; border-top: 2px solid #1f8a70; font-size: 15px; font-variant-numeric: tabular-nums; }
.rc-res .box { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.75em; border: 2px solid #24364d; font-weight: 700; }
.rc-res .k { color: #5b6676; white-space: nowrap; }
.rc-res .v { min-width: 5.5em; padding: 0 0.3em; border-bottom: 1px solid #b8c2cf; white-space: nowrap; }
.rc-res-place { display: grid; grid-template-columns: repeat(12, auto); align-items: center; column-gap: 0.4em; row-gap: 0.35em; }
.rc-res-place .pn { font-size: 1.3em; font-weight: 700; color: #24364d; }
.rc-res-qpl { display: flex; align-items: center; gap: 0.5em; }
.rc-res-qpl .lbl { writing-mode: vertical-rl; text-orientation: upright; color: #5b6676; letter-spacing: 0.3em; } /* 直寫：Q 字企返正 */
.rc-res-qpl .row { display: flex; align-items: center; margin: 0.15em 0; }
.rc-res-qpl .row .v { margin-left: 0.5em; }
.rc-res-time { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; row-gap: 0.35em; column-gap: 0.6em; }
.rc-res-time .tag { padding: 0.1em 0.45em; background: #8a94a3; color: #fff; font-weight: 700; }
.rc-res-time .v { min-width: 0; }
/* 連贏／位置Q：滑鼠指住格，兩個馬號變黃 */
.rc-q-table td.ql.hl, .rc-q-table thead th.hl { background: #ffe08a; color: #000; }
.rc-q-table td.hl { outline: 2px solid #e0a800; outline-offset: -2px; background: #fff6d6; }
/* 連贏／位置Q 圖例 */
.rc-q-legend { display: inline-flex; align-items: center; gap: 0.35em; }
.rc-q-legend .fav { margin-left: 1em; color: #c62828; font-weight: 700; }
.rc-q-legend .odot { display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; margin-left: 1em; }
.rc-q-legend .odot.g { background: #16a34a; }
.rc-q-legend .odot.b { background: #8b4513; }
/* 騎師、練馬師頁賽績表：行距收窄（同馬匹資料賽績表一樣） */
main#person .form-panel table.form > tbody > tr:not(.season):not(.meet) > td { padding-top: 0.12em; padding-bottom: 0.12em; line-height: 1.2; }
/* 騎練出馬表：馬名連去馬匹資料 */
.jt-table .ride .hn { color: var(--text); }
.jt-table .ride .hn:hover { color: var(--accent); text-decoration: underline; }
.jt-table .ride.sb .hn { color: var(--muted); }

/* 賽果派彩獨立一張卡（出賽馬匹前面）：唔使上面分隔線 */
.rc-result-panel .rc-res { margin-top: 0; padding-top: 0; border-top: 0; }
/* 賽果派彩卡：左頭四名（同全日賽果），右派彩 */
/* 1280 闊都要擺得落一行：收窄派彩格同間距 */
.rc-res-wrap { display: flex; gap: 20px 24px; align-items: flex-start; }
.rc-res-wrap .rc-top4 { width: auto; flex: 0 0 auto; font-size: 15px; }
.rc-res-wrap .rc-res { flex: 1 1 auto; min-width: 0; gap: 16px; }
.rc-res-wrap .rc-res .v { min-width: 4.6em; }

/* 賠率下跌訊號：Q/PQ 成格落底色；獨贏位置用一條窄直 bar（20% 綠、50% 啡） */
/* 顏色跟馬會（bet.hkjc.com drop20 / drop50）：綠 #2aa217、啡 #993300，格內白字 */
.rc-q-table td.drop-g, .rc-q-legend .sw.drop-g { background: #2aa217; color: #fff; }
.rc-q-table td.drop-b, .rc-q-legend .sw.drop-b { background: #993300; color: #fff; }
.rc-q-table td.fav.drop-g, .rc-q-table td.fav.drop-b { color: #fff; text-decoration: underline; } /* 熱門落咗底色：白字加底線 */
.rc-q-legend .sw { display: inline-block; width: 1.1em; height: 0.85em; margin-left: 1em; border-radius: 2px; }
.rc-table .odot { width: 3px; height: 1.05em; border-radius: 1px; }
.rc-table .odot.g { background: #2aa217; }
.rc-table .odot.b { background: #993300; }

/* 騎練出馬表：第三行今日名次（W 紅、2-3 藍、4 灰）＋ 賠率 */
/* 名次牌放喺第三行左邊縮入嗰格（1.6em，同第二行對齊），唔會令格變闊；冇名次就留空位 */
.jt-table .ride .l3 { display: flex; align-items: center; gap: 0; padding-left: 0; }
.jt-table .ride .l3::before { content: ""; width: 1.6em; flex: none; }
.jt-table .ride .l3:has(.jt-pl)::before { display: none; }
.jt-table .ride .od3.fav { color: #c62828; font-weight: 700; }
.jt-pl { flex: none; margin-right: 0.25em; display: inline-flex; align-items: center; justify-content: center; width: 1.35em; height: 1.2em; padding: 0 0.15em; border-radius: 3px; color: #fff; font-weight: 700; font-size: 0.95em; line-height: 1; }
.jt-pl.p1 { background: #d32f2f; }
.jt-pl.p2, .jt-pl.p3 { background: #d32f2f; } /* 三名以內紅 */
.jt-pl.p4 { background: #7a8594; }

/* 頭四名表（全日賽果、排位表派彩卡）：三名以內名次紅 */
.top4 td.pl.top3 { color: var(--win); font-weight: 700; }
/* 派彩卡頭四名：沿途走位（細字灰色，空格分隔） */
.rc-top4 td.run { color: var(--muted); font-size: 0.88em; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 開跑時間下面嘅倒數：細字；十分鐘內紅字 */
.rc-countdown { padding: 0.15em 0.5em; border-radius: 4px; background: #fff1cc; color: #7a4b00; font-size: 1.15em; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-countdown.soon { background: #c62828; color: #fff; } /* 十分鐘內：紅底白字 */
/* 場次欄固定闊（倒數長短唔同都唔會推郁標題）；倒數兩行置中 */
.rc-badge-col { width: 7.4em; flex: none; }
.rc-countdown { display: flex; flex-direction: column; align-items: center; line-height: 1.25; text-align: center; }
.rc-countdown[hidden] { display: none; }
/* 賽果派彩卡：淺藍底，同其他白卡分開 */
.rc-result-panel { background: #eef4fb; border-color: #c9d8ea; }
.rc-result-panel .rc-top4 { background: transparent; }

/* ---- 賠率區（/odds.html，彈出視窗）---- */
body.odds-popup { background: var(--bg, #f4f6f9); }
main#oddsroom { max-width: none; padding: 8px 10px 16px; font-size: 14px; }
.or-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 10px; border-radius: 8px; background: #005094; color: #fff; }
.or-title b { margin-right: 0.6em; font-size: 1.15em; }
.or-races { display: flex; flex-wrap: wrap; gap: 3px; }
.or-races button { display: flex; flex-direction: column; align-items: center; min-width: 2.9em; padding: 2px 4px; border: 1px solid rgba(255,255,255,0.4); border-radius: 5px; background: transparent; color: #fff; line-height: 1.15; cursor: pointer; }
.or-races button small { font-size: 0.72em; opacity: 0.85; }
.or-races button.on { background: #fff; color: #005094; font-weight: 700; }
.or-info { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.or-race { font-weight: 700; }
.or-cd { padding: 1px 6px; border-radius: 4px; background: #fff1cc; color: #7a4b00; font-weight: 700; }
.or-cd:empty { display: none; }
.or-cd.soon { background: #c62828; color: #fff; }
.or-time { font-size: 0.85em; opacity: 0.9; }
.or-tabs { margin: 8px 0; }
.or-tabs a.off { color: #a9b2bf; cursor: not-allowed; }
.or-body { padding: 10px; border: 1px solid var(--line, #dfe5ee); border-radius: 8px; background: #fff; }
.or-wrap { overflow-x: auto; }
.or-legend { display: flex; align-items: center; gap: 0.35em; margin: 8px 0 0; color: var(--muted); font-size: 0.85em; }
.or-legend .fav { color: #c62828; font-weight: 700; }
.or-legend .sw { display: inline-block; width: 1.1em; height: 0.85em; margin-left: 1em; border-radius: 2px; }
.or-legend .sw.drop-g, .or-winall td.drop-g, .or-horses td.drop-g { background: #2aa217; color: #fff; }
.or-legend .sw.drop-b, .or-winall td.drop-b, .or-horses td.drop-b { background: #993300; color: #fff; }
/* 各場獨贏 */
.or-winall { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.or-winall th, .or-winall td { min-width: 3.4em; padding: 0.2em 0.35em; border: 1px solid #dfe5ee; text-align: center; white-space: nowrap; }
.or-winall thead th { background: #eef3f9; line-height: 1.2; }
.or-winall thead th small { display: block; color: var(--muted); font-size: 0.75em; font-weight: 400; }
.or-winall thead th.on { background: #005094; }
.or-winall thead th.on a, .or-winall thead th.on small { color: #fff; }
.or-winall td.fav { color: #c62828; font-weight: 700; }
.or-winall td.fav.drop-g, .or-winall td.fav.drop-b { color: #fff; text-decoration: underline; }
.or-winall td.scr { color: var(--muted); font-size: 0.85em; }
.or-winall td.na { background: #f6f7f9; }
.or-winall td.paid:not(.drop-g):not(.drop-b) { background: #f3f4f6; color: #7b8494; }
/* 連贏及位置 */
.or-horses { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.or-horses th, .or-horses td { padding: 0.2em 0.45em; border-bottom: 1px solid #e6ebf1; text-align: center; white-space: nowrap; }
.or-horses thead th { background: #eef3f9; font-size: 0.9em; }
.or-horses th.l, .or-horses td.l { text-align: left; }
.or-horses td.od { min-width: 3em; font-weight: 700; }
.or-horses td.fav { color: #c62828; }
.or-horses td.fav.drop-g, .or-horses td.fav.drop-b { color: #fff; text-decoration: underline; }
.or-horses th.sl, .or-horses td.sl { color: #5b6676; font-size: 0.9em; }
.or-horses td.sl.fav { color: #c62828; font-weight: 700; }
.or-horses tr.scr td { color: #a9b2bf; }
.or-inv { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0; color: #5b6676; }
.or-inv b { color: var(--text); }
.or-q { margin-top: 6px; }
/* 排位表場次 tab 最右：賠率區（彈窗） */
.race-tabs .odds-link { margin-left: 0.6em; padding: 0.2em 0.7em; border-radius: 5px; background: #005094; color: #fff !important; font-weight: 700; }
.or-q { display: flex; flex-wrap: wrap; gap: 14px; }
.or-q .rc-q-table { font-size: 14px; }
.or-horses th.inv, .or-horses td.inv { min-width: 6.5em; text-align: right; color: #33475e; }
/* 賠率區字體放大 */
main#oddsroom { font-size: 16px; }
.or-q .rc-q-table { font-size: 16px; }
.or-horses td.od { font-size: 1.1em; }
.or-q .rc-q-table th, .or-q .rc-q-table td { min-width: 2.45em; padding: 0.15em 0.22em; }
.or-wq { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; }
.or-wq .or-q { flex-direction: column; margin-top: 0; }
.or-wq > div:first-child { max-width: 32em; } /* 投注額行跟馬匹表咁闊，自動換行 */
/* 賠率區馬匹表：欄位分得清楚啲（間距加大、獨贏 / 位置兩組之間有直線、隔行淺底） */
.or-horses th, .or-horses td { padding: 0.3em 0.6em; }
.or-horses tbody tr:nth-child(even) td { background: #f6f9fc; }
.or-horses th:nth-child(4), .or-horses td:nth-child(4),
.or-horses th:nth-child(6), .or-horses td:nth-child(6) { border-left: 2px solid #c9d6e6; }
.or-horses td.inv { border-left: 1px dashed #dfe5ee; }
.or-horses tbody tr:nth-child(even) td.drop-g { background: #2aa217; }
.or-horses tbody tr:nth-child(even) td.drop-b { background: #993300; }
.or-wq > div:first-child { max-width: 36em; }
/* 賠率區：馬名大啲 */
.or-horses td.nm a { font-size: 1.12em; font-weight: 600; color: var(--text); }
/* 對比時段揀選 */
.or-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; }
.or-slots .lbl { margin-right: 6px; color: #5b6676; font-weight: 700; }
.or-slots button { min-width: 2.6em; padding: 0.2em 0.6em; border: 1px solid #c9d6e6; border-radius: 5px; background: #fff; color: #24364d; cursor: pointer; font: inherit; }
.or-slots button.on { background: #005094; border-color: #005094; color: #fff; font-weight: 700; }
.or-slots button:disabled { color: #b9c1cc; background: #f6f7f9; cursor: not-allowed; }
/* 馬匹表分組標題：即時 / 時段 */
.or-horses thead th.grp { color: #fff; }
.or-horses thead th.grp.now { background: #005094; }
.or-horses thead th.grp.cmp { background: #6b7a8f; }
.or-horses thead th.grp small { opacity: 0.85; font-weight: 400; }
.or-horses th:nth-child(4), .or-horses td:nth-child(4), .or-horses th:nth-child(6), .or-horses td:nth-child(6) { border-left: 0; }
.or-horses th.g1, .or-horses th.g2 { border-left: 2px solid #c9d6e6; }
.or-horses td.od { position: relative; border-left: 2px solid #c9d6e6; }
.or-horses td.then { color: #5b6676; }
.or-horses td.od.then { font-weight: 600; }
.or-horses tfoot td { padding-top: 0.4em; border-top: 2px solid #c9d6e6; background: #eef3f9; font-weight: 700; }
/* 馬會下跌燈：即時賠率前面一條窄直 bar */
.obar { display: inline-block; width: 4px; height: 1.05em; margin-right: 0.35em; vertical-align: -0.12em; border-radius: 1px; }
.obar.g { background: #2aa217; }
.obar.b { background: #993300; }
/* 連贏、位置Q 對比：上即時、下時段；熱咗幅度落色（跟舊站） */
.or-q .rc-q-table.cmp td.q2 { padding: 0.1em 0.25em; line-height: 1.15; }
.rc-q-table td.q2 .n, .rc-q-table td.q2 .o { display: block; }
.rc-q-table td.q2 .o { color: #5b6676; font-size: 0.85em; }
.rc-q-table td.q2.fav .n { color: #c62828; font-weight: 700; }
.rc-q-table td.h5, .or-legend .sw2.h5 { background: #ffff99; }
.rc-q-table td.h10, .or-legend .sw2.h10 { background: #c8c8c8; }
.rc-q-table td.h20, .or-legend .sw2.h20 { background: #ff9f9f; }
.rc-q-table td.h30, .or-legend .sw2.h30 { background: #ff9900; }
.or-legend .sw2 { padding: 0 0.45em; border-radius: 2px; color: #24364d; }
.or-legend .obar { margin-left: 0.6em; }
.or-wq > div:first-child { max-width: none; }
/* 對比模式：連贏表細少少，令馬匹表同連贏表並排（彈窗 1440 闊） */
.or-q .rc-q-table.cmp { font-size: 14px; }
/* 賠率區：馬匹表收窄、連贏位置Q 放大；Q 彩池放表頭 */
.or-horses th, .or-horses td { padding: 0.25em 0.35em; }
.or-horses th.inv, .or-horses td.inv { min-width: 5.6em; }
.or-horses td.od { min-width: 2.6em; }
.or-q .rc-q-table, .or-q .rc-q-table.cmp { font-size: 16px; }
.or-q .rc-q-table th, .or-q .rc-q-table td { min-width: 2.7em; }
.rc-q-table th.qt .qpool { display: block; font-size: 0.72em; font-weight: 400; opacity: 0.9; }
.or-tfoot-label { white-space: nowrap; }
.or-q .rc-q-table th, .or-q .rc-q-table td { min-width: 2.55em; }
.or-wq { gap: 16px 18px; }
/* 馬會燈：固定喺賠率格左邊（唔跟數字長短郁），全部排齊 */
.or-horses td.od { position: relative; padding-left: 0.85em; text-align: right; }
.or-horses td.od .obar { position: absolute; left: 0.3em; top: 0.35em; bottom: 0.35em; height: auto; margin: 0; }
.or-horses td.od.then { padding-left: 0.5em; }
.or-slots button + button { margin-left: 0; }
/* 無對比時：時段一組留空（灰底），版面同有對比一樣 */
.or-horses thead th.grp.cmp.off { background: #b9c3d0; }
.rc-q-table td.q2.drop-g, .rc-q-table td.q2.drop-b { color: #fff; }
.rc-q-table td.q2.drop-g .o, .rc-q-table td.q2.drop-b .o { color: #fff; }
.rc-q-table td.q2.fav.drop-g .n, .rc-q-table td.q2.fav.drop-b .n { color: #fff; text-decoration: underline; }
/* 固定欄闊：有冇對比、數字長短都唔會令個表郁 */
.or-horses td.od, .or-horses th.g1, .or-horses th.g2 { width: 3.6em; min-width: 3.6em; }
.or-horses td.inv, .or-horses th.inv { width: 6.4em; min-width: 6.4em; }
.or-horses td.nm { width: 7.5em; }
/* 1440 闊要並排：馬匹表欄位收緊、連贏表 15px */
.or-horses th, .or-horses td { padding: 0.25em 0.2em; }
.or-horses td.od, .or-horses th.g1, .or-horses th.g2 { width: 3.1em; min-width: 3.1em; }
.or-horses td.od { padding-left: 0.75em; }
.or-horses td.inv, .or-horses th.inv { width: 5.3em; min-width: 5.3em; }
.or-horses td.nm { width: 6em; }
.or-q .rc-q-table, .or-q .rc-q-table.cmp { font-size: 15px; }
.or-horses { table-layout: fixed; width: 43.6em; }
.or-horses col.c-no { width: 2.4em; }
.or-horses col.c-nm { width: 6.4em; }
.or-horses col.c-od { width: 3.4em; }
.or-horses col.c-inv { width: 5.3em; }
.or-horses td.od, .or-horses th.g1, .or-horses th.g2, .or-horses td.inv, .or-horses th.inv, .or-horses td.nm { width: auto; min-width: 0; }
.or-horses td.nm { overflow: hidden; text-overflow: clip; }
.or-horses { width: 45.6em; }
.or-horses col.c-inv { width: 5.8em; }
.or-horses td.inv { padding-left: 0.1em; padding-right: 0.3em; }
.or-q .rc-q-table th, .or-q .rc-q-table td { min-width: 2.45em; }
/* 兩行時段揀選 */
.or-pick { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.or-pick .or-slots { margin-bottom: 0; }
.or-pick .or-slots .lbl { width: 8.5em; }
/* 40分鐘走勢圖（照賠率站） */
.or-trend-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.or-trend-bar label { font-weight: 700; color: #475569; }
.or-scale { width: 9em; padding: 3px 6px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.or-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.or-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1.5px solid #e2e8f0; border-radius: 20px; background: #f8fafc; color: #94a3b8; font-weight: 700; cursor: pointer; user-select: none; }
.or-chip i { width: 12px; height: 12px; border-radius: 2px; opacity: 0.35; }
.or-chip.on { background: #fff; color: #1e293b; }
.or-chip.on i { opacity: 1; }
.or-trend { width: 100%; border-collapse: collapse; }
.or-trend th { padding: 6px; background: #f1f5f9; color: #475569; font-size: 0.85em; text-align: left; }
.or-trend td { padding: 4px 6px; border-top: 1px solid #eef2f7; vertical-align: middle; }
.or-trend tbody tr:nth-child(even) { background: #fafbfc; }
.or-trend .t-no { width: 2.4em; text-align: center; }
.or-trend .t-name { width: 7em; font-weight: 700; white-space: nowrap; }
.or-trend .t-odds { width: 3.6em; text-align: center; font-weight: 700; color: #92400e; }
.or-trend .t-spark { min-width: 500px; }
.or-trend .spark-box { position: relative; width: 100%; height: 44px; }
.or-trend .spark-box.tall { height: 30px; margin-top: 4px; }
.or-trend .spark-box canvas { display: block; }
/* 排位表展開對上 6 仗：用返馬匹賽績頁嘅 table.form 樣式（唔跟外層排位表嘅格式） */
.rc-detail table.rc-last6form { width: auto; table-layout: auto; margin: 0; font-size: var(--fs, 15px); }
.rc-detail table.rc-last6form td, .rc-detail table.rc-last6form th { padding: 0.12em 0.45em; text-align: center; background: none; border-left: 0; }
.rc-detail table.rc-last6form td.l { text-align: left; }
.rc-detail table.rc-last6form tr.run.turf td { background: var(--turf); }
.rc-detail table.rc-last6form tr.run.dirt td { background: var(--dirt); }
.rc-detail table.rc-last6form tr.run.alt td { filter: brightness(0.97); }
/* 表頭第二行（沿途走位 1-2-3、分段、三甲等）：細字、灰色、淺底，同表身數字分得開 */
table.form tr.sub-head th, .form-panel table.form thead tr.sub-head th { font-size: 0.72em; font-weight: 400; color: #6b7a8f; background: #eef2f7; letter-spacing: 0.05em; line-height: 1.3; }
table.form tr.sub-head th, .form-panel table.form thead tr.sub-head th { font-size: 0.8em; }
/* 簡易賽績：名次要搶眼（大字粗體、淺黃底）；三名以內仍然紅字 */
.rc-detail table.rc-last6form td.place { font-size: 1.3em !important; font-weight: 800 !important; background: #fff6d6 !important; min-width: 1.8em; }
.rc-detail table.rc-last6form thead th.place-h { background: #f2d77a; color: #24364d; font-weight: 800; }
/* 名次搶眼（全站賽績表：馬匹、騎練、賽後頁、排位表簡易賽績）：粗體、淺黃底；表頭深黃底；字只係大少少 */
table.form td.place { font-weight: 800; background: #fff6d6 !important; }
table.form thead th.place-h, .form-panel table.form thead th.place-h { background: #f2d77a; color: #24364d; font-weight: 800; }
.rc-detail table.rc-last6form td.place { font-size: 1.1em !important; }
table.form tr.run td.place { font-size: 1.08em; }
/* 賽後頁賽果表：固定欄闊（colgroup），每場一樣；太長嘅字截斷唔撐闊 */
table.result-table.fixed { table-layout: fixed; }
table.result-table.fixed td, table.result-table.fixed th { overflow: hidden; text-overflow: clip; }
/* 賽後頁、馬匹／騎練賽績頁、排位表簡易賽績：同排位表一樣，每欄之間淺色直線分開 */
table.form.result-table th, table.form.result-table td,
.form-wrap table.form th, .form-wrap table.form td,
.rc-detail table.rc-last6form th, .rc-detail table.rc-last6form td { border-left: 1px solid #dfe5ee; }
table.form.result-table th:first-child, table.form.result-table td:first-child,
.form-wrap table.form th:first-child, .form-wrap table.form td:first-child,
.rc-detail table.rc-last6form th:first-child, .rc-detail table.rc-last6form td:first-child { border-left: 0; }
table.form.result-table thead th, .form-wrap table.form thead th, .rc-detail table.rc-last6form thead th { border-left-color: #c9d3e0; }
/* 馬季分隔行（成行一格）唔使直線 */
.form-wrap table.form tr.season td { border-left: 0; }
table.form.rc-table tr.rc-detail table.rc-last6form td, table.form.rc-table tr.rc-detail table.rc-last6form th { border-left: 1px solid #dfe5ee; }
table.form.rc-table tr.rc-detail table.rc-last6form td:first-child, table.form.rc-table tr.rc-detail table.rc-last6form th:first-child { border-left: 0; }
/* 配備太長就斷行，唔好截咗 */
table.result-table.fixed td.gear { white-space: normal; word-break: break-all; line-height: 1.15; }
/* 窄欄表頭（王牌、優權、優序、馬齡）分兩行，唔好截咗 */
table.result-table.fixed thead th { white-space: normal; word-break: break-all; line-height: 1.15; }
.rc-besttime { color: inherit; text-decoration: none; border-bottom: 1px dotted #9aa7b8; }
.rc-besttime:hover { color: #005094; border-bottom-color: #005094; }

/* 排位表數據提示（旺門 / 盲目）：旺橙、盲灰藍，避開頭三名紅字 */
.rc-tip-tag { display: inline-block; margin-left: .35em; padding: 0 .4em; border-radius: 3px; font-size: .8em; font-weight: 700; line-height: 1.5; text-decoration: none; vertical-align: .1em; white-space: nowrap; }
.rc-tip-tag.hot { background: #fde7cf; color: #a34a00; border: 1px solid #f2b878; }
.rc-tip-tag.cold { background: #e3eaf3; color: #34557d; border: 1px solid #a9bcd4; }
a.rc-tip-tag:hover { filter: brightness(.95); }
.rc-tips-table { width: auto; }
.rc-tips-table th, .rc-tips-table td { padding: .3em .7em; }
.rc-tips-table td .rc-tip-tag { margin-left: 0; }
.rc-tips-table tr.cont td { border-top-color: transparent; }
.rc-tips-table .rc-tip-rate { font-weight: 700; }
.rc-tips-table .rc-tip-rate.hot { color: #a34a00; }
.rc-tips-table .rc-tip-rate.cold { color: #34557d; }
.rc-tips-table tr.flash td { background: #fff6d6; transition: background .3s; }
.rc-table td.nm .rc-tip-line { display: block; line-height: 1.2; margin-top: .1em; }
.rc-table td.nm .rc-tip-line .rc-tip-tag { margin: 0 .25em 0 0; font-size: .75em; }
.rc-tip-who { display: inline-block; min-width: 3.2em; padding: 0 .3em; border-radius: 3px; font-size: .85em; text-align: center; background: #eef1f5; color: #4a5566; }
.rc-tip-who.w-h { background: #e7f3ea; color: #2f6b3d; }
.rc-tip-who.w-js { background: #f1ebf7; color: #5b3f80; }
.rc-tips-notes { margin: .6em 0 .2em; padding-left: 1.2em; color: var(--muted); font-size: .85em; line-height: 1.6; }
.rc-tips-notes b { color: var(--text); font-weight: 600; margin-right: .2em; }
table.form td.wide { white-space: nowrap; }
/* 本場提示：唔出旺 / 盲字，第一格係色條（橙 = 好過平均、灰藍 = 差過平均），成行淡底色 */
.rc-tips-table td.rc-tip-bar { width: 6px; padding: 0 !important; }
.rc-tips-table td.rc-tip-bar.hot { background: #f2a65a; }
.rc-tips-table td.rc-tip-bar.cold { background: #7f9cc0; }
.rc-tips-table tr:has(td.rc-tip-bar.hot) td:not(.rc-tip-bar) { background: #fff7ee; }
.rc-tips-table tr:has(td.rc-tip-bar.cold) td:not(.rc-tip-bar) { background: #f3f6fa; }
/* 未開售：獨贏／位置欄收到 0 闊（唔好用 display:none，展開嗰行 colspan 會多咗一欄，成個表迫埋） */
table.form.rc-table.no-odds > thead th.rc-odds, .rc-table.no-odds td.rc-odds { width: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; font-size: 0; visibility: hidden; }

/* ---- 網站分區：賽事區 / 資料區 ---- */
.zone-switch { display: flex; gap: 2px; background: rgba(255,255,255,.12); border-radius: 7px; padding: 2px; }
.zone-switch a { padding: 4px 12px; border-radius: 5px; color: #dce8f5; font-size: 14px; white-space: nowrap; }
.zone-switch a.on { background: #fff; color: #005094; font-weight: 700; }
.zone-switch a:not(.on):hover { color: #fff; background: rgba(255,255,255,.15); }
.topbar.zone-race { background: #1d5c3a; } /* 賽事區用草地綠、資料區用藍，一眼分到喺邊個區 */
.topbar.zone-race .zone-switch a.on { color: #1d5c3a; }
/* 賽事區賽日列：左邊賽日（即將 / 賽果），右邊而家賽日嘅分頁 */
.meeting-bar { position: sticky; top: 50px; z-index: 9; display: flex; align-items: center; gap: 4px; padding: 5px 16px; background: #eef3f9; border-bottom: 1px solid #cfdbe8; font-size: 14px; }
.meeting-bar .mb-lab { color: #6b7d92; font-size: 13px; margin: 0 4px 0 10px; }
.meeting-bar .mb-lab:first-child { margin-left: 0; }
.meeting-bar .mb-day { padding: 3px 9px; border-radius: 5px; color: #0b3d6b; white-space: nowrap; }
.meeting-bar a.mb-day:hover { background: #dde8f4; }
.meeting-bar .mb-day.on { background: #0b3d6b; color: #fff; font-weight: 700; }
.meeting-bar .mb-more { position: relative; }
.meeting-bar .mb-more summary { list-style: none; cursor: pointer; padding: 3px 9px; color: #4a5f78; border-radius: 5px; }
.meeting-bar .mb-more summary::-webkit-details-marker { display: none; }
.meeting-bar .mb-more summary:hover { background: #dde8f4; }
/* 賽果掣上面嘅日子：撳日子直接去嗰日全日賽果，撳 ▾ 先開選單（用家 2026-11-18） */
.meeting-bar .mb-more summary a.mb-res-go { color: inherit; text-decoration: none; }
.meeting-bar .mb-more summary a.mb-res-go:hover { text-decoration: underline; }
.meeting-bar .mb-pop { position: absolute; top: 100%; left: 0; z-index: 20; display: flex; gap: 10px; padding: 8px; background: #fff; border: 1px solid #cfdbe8; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,40,80,.15); }
.meeting-bar .mb-recent { display: flex; flex-direction: column; min-width: 130px; padding-right: 10px; border-right: 1px solid #e4ebf2; }
.meeting-bar .mb-recent b, .meeting-bar .mc-head b { font-size: 13px; color: #6b7d92; padding: 2px 9px 4px; }
.meeting-bar .mb-cal { width: 266px; }
.meeting-bar .mc-head { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.meeting-bar .mc-head b { color: #0b3d6b; font-size: 14px; padding: 0 4px; min-width: 84px; text-align: center; }
.meeting-bar .mc-head button { border: 1px solid #cfdbe8; background: #fff; border-radius: 4px; width: 26px; height: 24px; cursor: pointer; color: #0b3d6b; }
.meeting-bar .mc-head button:disabled { color: #c5ced8; cursor: default; }
.meeting-bar .mc-head select { margin-left: auto; font-size: 13px; padding: 2px; border: 1px solid #cfdbe8; border-radius: 4px; }
.meeting-bar .mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.meeting-bar .mc-grid .wk { font-size: 12px; color: #8a99ab; padding: 2px 0; }
.meeting-bar .mc-grid .cd { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 34px; border-radius: 5px; font-size: 13px; color: #b3bdc9; line-height: 1.1; }
.meeting-bar .mc-grid a.cd { color: #fff; font-weight: 700; }
.meeting-bar .mc-grid a.cd i { font-style: normal; font-size: 11px; font-weight: 400; }
.meeting-bar .mc-grid a.cd.v-S { background: #005094; }
.meeting-bar .mc-grid a.cd.v-H { background: #1f7a3d; }
.meeting-bar .mc-grid a.cd:hover { filter: brightness(1.15); }
.meeting-bar .mc-grid a.cd.on { outline: 2px solid #f2a65a; outline-offset: 1px; }
.meeting-bar .mb-tabs { display: flex; gap: 2px; margin-left: auto; padding-left: 16px; }
.meeting-bar .mb-tab { padding: 3px 11px; border-radius: 5px; color: #005094; }
.meeting-bar a.mb-tab:hover { background: #dde8f4; }
.meeting-bar .mb-tab.on { background: #005094; color: #fff; font-weight: 700; }
.meeting-bar .mb-tab.off { color: #a3afbd; cursor: default; }
.meeting-bar .mb-more { margin-left: 10px; }
.meeting-bar .mb-more summary.on { background: #0b3d6b; color: #fff; font-weight: 700; }
.meeting-bar .mb-day.os { color: #7a4a00; } /* 越洋轉播 */
.meeting-bar .mb-day.os.on { background: #8a5a00; color: #fff; }

/* ---- 越洋轉播排位表 ---- */
.os-head .os-facts { color: var(--muted); margin-top: 2px; }
.os-head .os-en, .os-table .os-en, .os-result-table .os-en { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.os-head h1 .os-en { display: inline; margin-left: 8px; font-size: 14px; }
.os-links { margin-top: 6px; display: flex; gap: 14px; font-size: 14px; }
.os-ext::after { content: " ↗"; font-size: 11px; }
.os-table td.nm b { font-size: 1.05em; }
.os-table .os-last { white-space: nowrap; letter-spacing: -0.02em; }
.os-table .os-last .top3, .os-form td.top3 { color: var(--win); font-weight: 700; }
.os-table .os-scr { margin-left: 4px; color: #c62828; font-size: 12px; }
.os-detail { padding: 8px 6px; }
.os-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: 14px; }
.os-info b { color: #4a5f78; font-weight: 600; margin-right: 6px; }
table.form.os-form { width: 100%; font-size: 13px; }
.os-form td.os-comment { color: #4a5566; max-width: 360px; }
.os-notes { color: var(--muted); font-size: 13px; padding-left: 1.2em; }
table.form.rc-table.os-table { table-layout: fixed; } /* 跟本地排位表固定欄寬（colgroup） */
.os-form td.os-comment, .os-form td.os-race { white-space: normal; min-width: 14em; }
.os-form td.os-comment { min-width: 22em; }
.os-detail { max-width: 0; min-width: 100%; } /* 展開內容唔好撐闊主表 */

/* ---- 年度統計 ---- */
.st-page { max-width: 1280px; margin: 0 auto; padding: 16px; }
.st-page.loading { opacity: .6; }
.st-layout { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: start; }
.st-side { position: sticky; top: 64px; background: #fff; border: 1px solid #d6e0eb; border-radius: 10px; padding: 8px; }
.st-side .st-grp + .st-grp { margin-top: 6px; border-top: 1px solid #e4ebf2; padding-top: 6px; }
.st-side h3 { font-size: 12px; color: #8a99ab; font-weight: 400; margin: 2px 6px 4px; }
.st-side a { display: block; padding: 5px 8px; border-radius: 6px; color: #0b3d6b; font-size: 14px; }
.st-side a:hover { background: #eef3f9; }
.st-side a.on { background: #005094; color: #fff; font-weight: 700; }
.st-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.st-head h1 { font-size: 22px; margin: 0; color: #0b3d6b; }
.st-note { margin: 4px 0 8px; color: var(--muted); }
.st-ctrl { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.st-ctrl select, .st-min select { font-size: 14px; padding: 3px 6px; border: 1px solid #cfdbe8; border-radius: 5px; }
.st-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.st-card { background: #fff; border: 1px solid #d6e0eb; border-radius: 10px; padding: 10px 12px; }
.st-card .st-lab { font-size: 13px; color: #6b7d92; }
.st-card .st-val { font-size: 24px; font-weight: 700; color: #0b3d6b; font-variant-numeric: tabular-nums; margin: 2px 0; }
.st-card .st-sub { font-size: 12px; color: var(--muted); }
.st-bar { position: relative; height: 6px; background: #e8eef5; border-radius: 3px; margin-top: 6px; }
.st-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #005094; border-radius: 3px; }
.st-bar b { position: absolute; top: -3px; width: 2px; height: 12px; background: #c62828; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table.form.st-table { width: 100%; }
.st-table th.st-sort { cursor: pointer; }
.st-table th.st-sort.on { color: #c62828; }
.st-table td.st-hl { font-weight: 700; }
.st-table tr.cur td { background: #fff6d6; }
.st-table tr.retired td { color: var(--muted); }
.st-table .gain, .st-card .st-val.gain { color: #1f5fbf; }
.st-table .loss, .st-card .st-val.loss { color: #c62828; }
.st-foot { display: flex; gap: 16px; align-items: center; font-size: 13px; }
/* 頁頂搜尋：分組標題、鍵盤揀選 */
.search-results li.sr-group { padding: 5px 12px 3px; font-size: 12px; color: #8a99ab; background: #f5f8fb; border-top: 1px solid #e4ebf2; }
.search-results li.sr-group:first-child { border-top: 0; }
.search-results li.sr-empty { padding: 8px 12px; color: var(--muted); font-size: 14px; }
.search-results a.sel { background: #e6eef8; }
.search-results { max-height: 70vh; overflow-y: auto; }
.search-results { right: auto; width: max(100%, 600px); }
.search-results a > span:first-child { white-space: nowrap; }
.search-results a .meta { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---- 搜尋區：馬匹 / 賽事分頁、賽事搜尋 ---- */
.srch-tabs { display: flex; gap: 4px; margin: 0 0 12px; border-bottom: 2px solid #005094; }
.srch-tabs a { padding: 8px 22px; border-radius: 8px 8px 0 0; color: #005094; font-weight: 600; font-size: 16px; }
.srch-tabs a:hover { background: #eef3f9; }
.srch-tabs a.on { background: #005094; color: #fff; }
.rs-page { max-width: 1280px; margin: 0 auto; padding: 16px; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.rs-filters label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #6b7d92; }
.rs-filters select, .rs-filters input { font-size: 14px; padding: 4px 6px; border: 1px solid #cfdbe8; border-radius: 5px; min-width: 90px; }
.rs-filters .rs-cup input { width: 150px; }
#rs-out { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
#rs-out.loading { opacity: .6; }
.rs-table tr.run { cursor: pointer; }
/* 賽事區賽日列跟綠色 */
.meeting-bar { background: #eef5f0; border-bottom-color: #cfe3d6; }
.meeting-bar .mb-day { color: #1d4a33; }
.meeting-bar a.mb-day:hover, .meeting-bar a.mb-tab:hover, .meeting-bar .mb-more summary:hover { background: #dcebe1; }
.meeting-bar .mb-day.on, .meeting-bar .mb-more summary.on, .meeting-bar .mb-tab.on { background: #1d5c3a; color: #fff; }
.meeting-bar .mb-tab { color: #1d5c3a; }
/* 自選欄排位體重兩行（欄寬喺 racecard.js EXTRA_W） */
.rc-table .rc-rate small { font-size: 0.85em; }
/* 騎練出馬表場頭：第幾場 / 班次 / 路程，草地綠底、泥地啡底，字大啲 */
.jt-table thead th.jt-race { font-size: 1.05em; line-height: 1.3; padding-top: 0.3em; padding-bottom: 0.3em; }
.jt-table thead th.jt-race a { display: block; font-weight: 700; font-size: 1.1em; }
.jt-table thead th.jt-race span { display: block; font-weight: 600; }
.jt-table thead th.jt-race.turf { background: #d6eedd; color: #1d4a33; }
.jt-table thead th.jt-race.dirt { background: #f0e1cb; color: #5a3a14; }
.jt-table thead th.jt-race.turf a { color: #1d5c3a; }
.jt-table thead th.jt-race.dirt a { color: #7a4a14; }

/* ---- 首頁 ---- */
.home { max-width: 1280px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.home h3 { font-size: 16px; margin: 0 0 8px; color: #0b3d6b; display: flex; align-items: baseline; gap: 10px; }
.home .home-more { margin-left: auto; font-size: 14px; font-weight: 400; }
.home-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.home-side { display: flex; flex-direction: column; gap: 14px; }
.home-next { display: flex; gap: 18px; align-items: center; }
.home-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px; border-radius: 10px; background: #005094; color: #fff; }
.home-next.venue-H .home-date { background: #1f7a3d; }
.home-date b { font-size: 44px; line-height: 1; }
.home-date span { font-size: 13px; margin-top: 4px; white-space: nowrap; }
.home-what h2 { font-size: 26px; margin: 2px 0; color: #0b3d6b; }
.home-lab { font-size: 13px; color: #6b7d92; }
.home-sub { color: var(--muted); font-size: 14px; }
.home-count { color: #c62828; font-weight: 700; }
.home-btns { display: flex; gap: 8px; margin-top: 10px; }
.home-btn { padding: 7px 16px; border-radius: 7px; background: #005094; color: #fff; font-weight: 600; }
.home-btn:hover { background: #0b3d6b; color: #fff; }
.home-btn.off { background: #e4ebf2; color: #a3afbd; }
.home-search .search { max-width: none; }
.home-search input { width: 100%; font-size: 15px; padding: 8px 10px; border: 1px solid #cfdbe8; border-radius: 7px; }
.home-search .home-more { display: inline-block; margin-top: 8px; }
.home-list { list-style: none; margin: 0; padding: 0; }
.home-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #eef2f6; font-size: 14px; }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-stat .home-val { font-size: 20px; font-weight: 700; color: #0b3d6b; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.home-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.home-tbl th { font-size: 12px; color: #8a99ab; font-weight: 400; padding: 2px 4px; }
.home-tbl td { padding: 4px; border-top: 1px solid #eef2f6; text-align: center; white-space: nowrap; }
.home-tbl .l { text-align: left; }
.home-tbl td.up { color: #c62828; font-weight: 700; }
.home-tbl td.home-move { color: #1f5fbf; }
.home-notes { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.home-notes li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef2f6; }
.home-notes p { margin: 4px 0 0; color: #4a5566; line-height: 1.6; }

/* ---- 配磅表 / 練馬師出馬表（配磅） ---- */
.en-page { max-width: 1400px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.en-head h1 { font-size: 22px; margin: 2px 0 6px; color: #1d4a33; }
.en-remark { margin: 4px 0; color: #4a5566; font-size: 14px; line-height: 1.6; }
.en-note { font-size: 13px; margin: 4px 0; }
.en-page .race-tabs a.dirt { background: #f7efe1; }
.en-page .race-tabs a.dirt.on { background: #8a5a2b; border-color: #8a5a2b; }
.en-race.turf > h2 { border-left: 6px solid #2e7d4f; padding-left: 8px; }
.en-race.dirt > h2 { border-left: 6px solid #8a5a2b; padding-left: 8px; }
table.form.en-table { width: 100%; }
.en-table td.nm a { font-weight: 700; font-size: 1.05em; color: var(--text); }
.en-table tr.en-reserve td { color: var(--muted); background: #f6f7f9; }
.en-table td.up { color: #c62828; font-weight: 700; }
.en-table td.down { color: #1f5fbf; font-weight: 700; }
.en-flag { display: inline-block; font-size: 11px; padding: 0 4px; border-radius: 3px; margin-right: 2px; color: #fff; }
.en-flag.pr { background: #c62828; }
.en-flag.tr { background: #8a5a00; }
.en-flag.lt { background: #6b7d92; }
.en-last6 a { display: inline-block; min-width: 1.2em; text-align: center; color: var(--text); }
.en-last6 a.top3 { color: var(--win); font-weight: 700; }
.en-jt .ride.en-reserve, .en-jt .ride.en-reserve a { color: var(--muted); }
.en-jt .ride small { color: var(--muted); }
.en-jt .ride { display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; padding: 2px 0; min-height: 0; }
.en-jt td { vertical-align: top; }
.en-jt th.nm { white-space: nowrap; }
/* 配磅表：字大啲；後備第一欄 R1、R2…；正選同後備之間加分隔線 */
table.form.en-table { font-size: 1.12em; }
.en-table td.nm a { font-size: 1.08em; }
.en-table td.en-r { font-weight: 700; color: #6b7d92; }
.en-table tr:not(.en-reserve) + tr.en-reserve td { border-top: 2px solid #b8c4d2; }
.en-jt { font-size: 1.08em; }
/* 配磅表場頭字大啲 */
.en-race > h2 { font-size: 21px; }
.en-race > h2 .count { font-size: 16px; color: #4a5566; }
.en-page .race-tabs a { font-size: 15px; }
/* 賽日列：即將舉行嘅賽日前面嘅階段標籤（海外賽 / 排位 / 配磅） */
.meeting-bar .mb-stage { display: inline-block; font-size: 12px; padding: 0 5px; margin-right: 5px; border-radius: 3px; background: #dcebe1; color: #1d4a33; font-weight: 600; vertical-align: 1px; }
.meeting-bar .mb-day.os .mb-stage { background: #f3e3c7; color: #7a4a00; }
.meeting-bar .mb-day.on .mb-stage { background: rgba(255,255,255,.25); color: #fff; }
/* 配磅練馬師出馬表：組別放大少少；評分升降顏色 */
.jt-table thead th.jt-race .jt-grp { font-weight: 700; font-size: 1.1em; }
.jt-table .ride .up { color: #c62828; font-weight: 700; margin-left: 2px; }
.jt-table .ride .down { color: #1f5fbf; font-weight: 700; margin-left: 2px; }
/* 配磅練馬師出馬表：每匹一行（後備 R + 馬名） */
.jt-table .ride.en1 { display: flex; align-items: center; gap: 0.25em; grid-template-rows: none; line-height: 1.6; white-space: nowrap; }
.jt-table .ride.en1.sb, .jt-table .ride.en1.sb a { color: var(--muted); }
/* 配磅表、配磅練馬師出馬表：固定欄闊 */
table.form.en-table { table-layout: fixed; }
.en-table td, .en-table th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.jt-table.en-jtt { table-layout: fixed; }
.en-jtt td, .en-jtt th { overflow: hidden; }
.en-jtt .ride.en1 { overflow: hidden; }
.en-jtt .ride.en1 .hn { overflow: hidden; text-overflow: ellipsis; }
.en-jtt th.nm { white-space: nowrap; }
.en-jtt .ride.en1 { font-size: 0.9em; gap: 0.15em; } .en-jtt td { padding-left: 0.2em; padding-right: 0.2em; }
/* 配磅表：同排位表一樣嘅欄；字細返少少令全部欄擺得落；最佳時間「近」字 */
table.form.en-table.rc-table { font-size: 1.15em; } /* 同排位表差唔多（排位表欄多、字細啲；配磅欄少，可以大啲） */
.en-table th { line-height: 1.25; }
.en-table td { white-space: nowrap; }
.en-best { display: inline-flex; align-items: center; gap: 3px; }
.en-recent { font-size: 11px; padding: 0 3px; border-radius: 3px; background: #1d5c3a; color: #fff; font-weight: 700; }
.en-table td.nm a { font-size: 1.12em; } .en-table td.rc-weight { font-size: 1.1em; font-weight: 600; }
.en-rank { display: inline-block; min-width: 1.4em; padding: 0 3px; border-radius: 3px; font-size: 0.78em; text-align: center; background: #e8eef5; color: #4a5f78; font-weight: 700; } .en-rank.top { background: #c62828; color: #fff; }
.en-best { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; gap: 0; }
.en-best1 { display: inline-flex; align-items: center; gap: 3px; }
.en-best-date { font-size: 0.78em; color: var(--muted); }
/* 本場提示分頁：數據提示 / 配備提示 */
.rc-tip-tabs { display: flex; gap: 4px; margin: 2px 0 8px; border-bottom: 2px solid #1d5c3a; }
.rc-tip-tabs a { padding: 5px 14px; border-radius: 6px 6px 0 0; color: #1d5c3a; font-weight: 600; }
.rc-tip-tabs a.on { background: #1d5c3a; color: #fff; }
.rc-tip-tabs a .n { display: inline-block; margin-left: 6px; min-width: 1.4em; padding: 0 4px; border-radius: 9px; font-size: 12px; background: #dcebe1; color: #1d4a33; text-align: center; }
.rc-tip-tabs a.on .n { background: rgba(255,255,255,.25); color: #fff; }
/* 上仗落飛分頁 */
.rc-drop-table td.rc-drop-final { font-weight: 700; color: #c62828; }
.rc-drop-table td.rc-drop-comment { white-space: normal; min-width: 22em; color: #4a5566; font-size: 0.92em; line-height: 1.5; }
.rc-drop-comment mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
/* 配磅表本組提示：字大啲 */
.en-tips .rc-tip-tabs a { font-size: 16px; }
.en-tips .rc-tips-table { font-size: 16px; }
.en-tips .rc-tips-table th { font-size: 14px; }
.en-tips .rc-drop-table td.rc-drop-comment { font-size: 15px; }
.en-tips .rc-tips-notes { font-size: 14px; }
/* 派彩卡：平頭幾匹馬並排；同彩池幾組派彩逐行寫 */
.rc-res .boxes { display: inline-flex; gap: 3px; }
.rc-res-place .v { line-height: 1.35; }
.os-table .od.scr { color: var(--muted); font-weight: 400; } /* 退出：灰字寫喺獨贏格 */
/* 越洋轉播詳細賽果 */
table.form.os-result-table { table-layout: fixed; width: auto; }
.os-result-table td.os-pl.top3 { color: var(--win); }
.os-result-table td.os-pl small { font-size: 0.6em; color: var(--muted); }
.os-result-table td.os-fav { color: #e40b0b; font-weight: 700; }
.rc-result-panel h2 .os-more { margin-left: auto; color: #1d5c3a; font-weight: 600; }
.os-divs { display: grid; grid-template-columns: repeat(2, minmax(0, 24em)); gap: 24px; margin-top: 14px; }
.rc-result-panel h2 .os-replay, #os-full h2 .os-replay { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
/* 管理頁 */
.ad-page { max-width: 980px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ad-panel h2 { display: flex; align-items: center; gap: 10px; }
.ad-panel h2 .tool { margin-left: auto; }
.ad-tag { padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ad-tag.on { background: #dcf3e3; color: #1d6e3a; }
.ad-tag.off { background: #fde2e2; color: #b42318; }
.ad-tag.warn { background: #fff1c2; color: #7a5600; }
.ad-pause { color: #b42318; }
.ad-table th { text-align: left; width: 10em; color: var(--muted); font-weight: 500; }
.ad-table td.ad-warn { color: #b42318; font-weight: 600; }
.ad-drop { border: 2px dashed #b8c2cf; border-radius: 8px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-drop.over { border-color: #1d5c3a; background: #eef7f1; }
.ad-list { list-style: none; padding: 0; margin: 10px 0 0; }
.ad-list li.ok { color: #1d6e3a; }
.ad-list li.bad { color: #b42318; }
/* 配磅同 FoxPro 核對：綠 = 一致、紅 = 分組或馬號唔同、黃 = 未能核對 */
.ad-check { margin: 4px 0 2px; padding: 4px 8px; border-left: 4px solid; border-radius: 3px; color: #222; }
.ad-check.ok { border-color: #1d6e3a; background: #eef8f1; }
.ad-check.bad { border-color: #b42318; background: #fdeceb; color: #b42318; font-weight: 600; }
.ad-check.warn { border-color: #c98a00; background: #fff6df; }
.ad-check ul { margin: 4px 0 0 18px; padding: 0; font-weight: normal; }
.ad-login { max-width: 420px; }
.ad-row { display: flex; gap: 8px; }
.ad-input { flex: 1; padding: 6px 10px; font: inherit; border: 1px solid #c9d3e0; border-radius: 4px; }
.ad-act th, .ad-act td { text-align: left; }
.ad-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #9aa5b4; }
.ad-dot.on { background: #1f9d55; }
.ad-dot.wait { background: #e0a100; }
.ad-dot.done { background: #9aa5b4; }
.ad-dot.off { background: #d64545; }
.meeting-bar .mb-os summary { white-space: nowrap; }
/* 賽日列分兩區：海外賽、本地賽 */
.meeting-bar .mb-group { display: inline-flex; align-items: center; gap: 6px; }
.meeting-bar .mb-group + .mb-group { margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(0, 0, 0, 0.15); }
/* 區名做成實色標籤，一眼分到兩個區 */
.meeting-bar .mb-group .mb-lab { margin: 0 4px 0 0; padding: 2px 10px; border-radius: 4px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.meeting-bar .mb-group.os .mb-lab { background: #a0661b; }
.meeting-bar .mb-group.local .mb-lab { background: #1d5c3a; }
.meeting-bar .mb-group + .mb-group { margin-left: 14px; padding-left: 14px; border-left: 2px solid rgba(0, 0, 0, 0.18); }
.meeting-bar .mc-grid a.cd.v-os { background: #a0661b; }
/* 賽日列：區名係實色標籤；揀咗嘅賽日 / 賽果改淺色底加框，唔再同區名一樣，海外啡、本地綠 */
.meeting-bar .mb-group .mb-day.on, .meeting-bar .mb-group .mb-more summary.on { background: #dcefe2; color: #1d5c3a; box-shadow: inset 0 0 0 2px #1d5c3a; font-weight: 700; }
.meeting-bar .mb-group.os .mb-day.on, .meeting-bar .mb-group.os .mb-more summary.on { background: #f8e8cc; color: #7a4a00; box-shadow: inset 0 0 0 2px #a0661b; }
.meeting-bar .mb-group .mb-day.on .mb-stage { background: #1d5c3a; color: #fff; }
.meeting-bar .mb-group.os .mb-more summary:hover, .meeting-bar .mb-group.os a.mb-day:hover { background: #f3e3c7; }
/* 越洋轉播全日賽果：按場地分區 */
.os-day-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.os-day-nav a { padding: 5px 12px; border-radius: 6px; background: #f8e8cc; color: #7a4a00; box-shadow: inset 0 0 0 1px #d9b98a; }
.os-day-nav a.on { box-shadow: inset 0 0 0 2px #a0661b; font-weight: 700; }
.os-day-nav a b { margin-right: 4px; }
.os-day-sec { scroll-margin-top: 100px; margin-bottom: 18px; }
.os-day-head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; padding-bottom: 6px; border-bottom: 3px solid #a0661b; color: #5a3a00; font-size: 20px; }
.os-day-code { padding: 1px 10px; border-radius: 4px; background: #a0661b; color: #fff; font-size: 18px; }
.os-day-head .count { font-size: 14px; color: var(--muted); font-weight: 400; }
.rc-q-box .qpool-foot { margin: 4px 2px 0; text-align: right; color: var(--muted); font-size: 13px; } .rc-q-box .qpool-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.rc-q-box .qpool-foot { margin: 4px 2px 0; text-align: right; color: var(--muted); font-size: 13px; }
.rc-q-box .qpool-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.or-title .or-date { font: inherit; font-weight: 700; padding: 1px 4px; margin-left: 6px; }
.or-title .or-past { margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: #eef1f5; color: var(--muted); font-size: 12px; }
/* 40 分鐘走勢圖：一頁睇晒全部馬匹（行高由 JS 按視窗計，--spark-h） */
.or-trend tbody td { padding-top: 1px; padding-bottom: 1px; }
.or-trend tbody .spark-box { height: var(--spark-h, 44px); }
.or-trend tbody .horse-no { width: 1.5em; height: 1.5em; font-size: 0.8em; }
.or-trend thead th { padding-top: 3px; padding-bottom: 3px; }
.rc-table thead th.rc-odds .rc-oddstime { display: block; text-align: center; } /* 賠率時間喺「獨贏 位置」下面（本地、海外一樣） */
.or-trend-bar { margin-bottom: 4px; }
/* 賠率區：賠率變化（三張百分比表並排） */
.or-chg-wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.or-chg-box { flex: 1 1 300px; min-width: 0; }
.or-chg-title { margin: 0 0 4px; padding: 3px 8px; background: #005094; color: #fff; font-size: 14px; border-radius: 4px 4px 0 0; }
table.or-chg { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.or-chg th, .or-chg td { border: 1px solid #e3d3b8; padding: 2px 4px; text-align: right; }
.or-chg thead th { background: #f3e3c7; color: #5a3a00; text-align: center; font-weight: 600; }
.or-chg tbody th { background: #f3e3c7; color: #5a3a00; text-align: center; width: 2.2em; }
.or-chg tbody tr:nth-child(even) td { background: #fbf6ee; }
.or-chg td.max { color: #e40b0b; font-weight: 700; }
.or-chg td.up, .or-legend .or-chg-up { background: #d8f0d8 !important; }
.or-chg td.down, .or-legend .or-chg-down { background: #e4e4e4 !important; }
.or-chg tfoot td { color: var(--muted); font-size: 12px; }
/* 賠率區：隔夜賠率（每粒鐘一格，表闊就橫捲） */
.or-on-box { overflow-x: auto; margin-bottom: 12px; }
table.or-on { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.or-on th, .or-on td { border: 1px solid #e3d3b8; padding: 2px 5px; }
.or-on thead th { background: #f3e3c7; color: #5a3a00; font-weight: 600; text-align: center; }
.or-on thead th.grp { background: #005094; color: #fff; }
.or-on thead th.or-on-title { background: #005094; color: #fff; font-size: 15px; }
.or-on tbody th { background: #f3e3c7; color: #5a3a00; font-weight: 600; }
.or-on tbody th.nm { text-align: left; min-width: 5.5em; }
.or-on td { text-align: right; min-width: 2.6em; }
.or-on tbody tr:nth-child(even) td { background: #fbf6ee; }
.or-on td.d10, .or-legend .or-on-d10 { background: #dcdcdc !important; }
.or-on td.d20, .or-legend .or-on-d20 { background: #f7a8a8 !important; }
.or-on td.d30, .or-legend .or-on-d30 { background: #ff9900 !important; color: #fff; }
.or-legend .or-on-d10, .or-legend .or-on-d20, .or-legend .or-on-d30 { padding: 0 6px; margin: 0 3px; }
.or-on tfoot th, .or-on tfoot td { background: #dbeafe; color: #1e3a8a; }
/* 賠率區：獨贏走勢 */
.or-wt td.cur, .or-wt th.cur { background: #fff7e0; font-weight: 700; }
.or-wt td.fav { color: #e40b0b; }
.or-wt td.o { border-right: 0; }
.or-wt td.amt { border-left: 0; color: var(--muted); font-size: 12px; text-align: left; min-width: 2.2em; }
.or-wt td.hot, .or-wt-rank td.hot, .or-wt-allup td.hot, .or-legend .or-wt-hot { background: #c8ecc8 !important; color: #14532d; font-weight: 700; }
.or-legend .or-wt-hot { padding: 0 4px; }
.or-legend .or-wt-limit { width: 4em; font: inherit; }
.or-wt-bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-top: 8px; }
.or-wt-card td.l { text-align: left; }
/* 賠率區：孖寶、二重彩方陣 */
.or-mx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.or-mx-bar .lbl { color: var(--muted); font-size: 13px; margin-right: 2px; }
.or-mx-bar button { font: inherit; font-size: 13px; padding: 2px 8px; border: 1px solid #c9d3e0; border-radius: 4px; background: #fff; cursor: pointer; }
.or-mx-bar button.on { background: #005094; color: #fff; border-color: #005094; }
.or-mx-bar button:disabled { opacity: 0.4; cursor: default; }
table.or-mx { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; table-layout: fixed; width: auto; }
.or-mx col.c-head { width: 7.5em; }
.or-mx th.corner, .or-mx th.tot { white-space: normal; }
.or-mx col.c-cell { width: 4.8em; }
.or-mx col.c-tot { width: 6.5em; }
.or-mx th, .or-mx td { border: 1px solid #c9d3e0; padding: 2px 4px; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.or-mx thead th, .or-mx tbody th { background: #3a9a3a; color: #fff; font-weight: 600; }
.or-mx th small { display: block; font-weight: 400; font-size: 11px; opacity: 0.9; }
.or-mx th.corner { background: #005094; font-size: 12px; }
.or-mx td .then { display: block; color: var(--muted); font-size: 11px; }
.or-mx td .now { display: block; }
.or-mx td.qb { background: #005094; }
.or-mx td.d10 { background: #dcdcdc; } .or-mx td.d20 { background: #f7a8a8; } .or-mx td.d30 { background: #ff9900; }
.or-mx td.wup { color: #15803d; } .or-mx td.wdown { color: #c62828; }
.or-mx .tot { background: #eef2f7 !important; color: #1e3a8a !important; font-size: 12px; }
/* 賠率區：大票房 */
.or-bp { display: flex; gap: 14px; align-items: flex-start; }
/* 直排：先由上至下填滿一欄先去下一欄（高度跟視窗），欄多過闊度就橫捲 */
.or-bp-list { flex: 1; min-width: 0; columns: 21em; column-gap: 24px; column-fill: auto; height: calc(100vh - 180px); min-height: 420px; overflow-x: auto; background: #fffff0; border: 1px solid #e5e2c0; padding: 6px; }
.or-bp-item { display: grid; grid-template-columns: 3.2em 2em 3.4em 2.6em 1em 2.6em 2.6em 2.6em 1fr 2.2em; align-items: baseline; gap: 4px; padding: 1px 4px; font-size: 13px; font-variant-numeric: tabular-nums; break-inside: avoid; border-bottom: 1px dotted #e5e2c0; }
.or-bp-item .a { text-align: right; font-weight: 700; }
.or-bp-item .a.g { background: #009933; color: #fff; padding: 0 4px; justify-self: end; }
.or-bp-item .a.b { background: #8a4b08; color: #fff; padding: 0 4px; justify-self: end; }
.or-bp-item .p { color: #005094; font-weight: 700; }
.or-bp-item.g, .or-bp-side td.g, .or-legend .or-bp-g { background: #009933; color: #fff; }
.or-bp-item.b, .or-bp-side td.b, .or-legend .or-bp-b { background: #8a4b08; color: #fff; }
.or-legend .or-bp-g, .or-legend .or-bp-b { padding: 0 4px; }
.or-bp-side td.fav { color: #e40b0b; font-weight: 700; }
/* 賠率區各分頁：馬會大熱紅字、馬會下跌訊號（跌 20% 綠、50% 啡） */
.or-on td.fav, .or-mx td.fav .now, .or-mx td.fav { color: #e40b0b; font-weight: 700; }
.or-mx th.favh small { color: #ffe08a; font-weight: 700; }
.or-on td.drop-g, .or-mx td.drop-g { background: #c8ecc8; }
.or-on td.drop-b, .or-mx td.drop-b { background: #e8cfae; }
/* 騎練出馬表：馬主連線（SVG 疊喺表上面） */
.jt-wrap { position: relative; }
svg.jt-own { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
svg.jt-own line { stroke-width: 2.5; stroke-linecap: round; opacity: 0.75; pointer-events: stroke; }
svg.jt-own.focus line { opacity: 0.15; }
svg.jt-own.focus line.on { opacity: 1; stroke-width: 4; }
.jt-own-toggle { margin-left: 12px; font-size: 13px; font-weight: 400; color: var(--muted); cursor: pointer; }
/* 馬主連線：平時色條（左 = 同一馬主，右 = 有關係），指住先有線；資料備註 */
.jt-table .ride.own { box-shadow: inset 4px 0 0 var(--own); }
.jt-table .ride.own-rel { box-shadow: inset -4px 0 0 #6b21a8; }
.jt-table .ride.own.own-rel { box-shadow: inset 4px 0 0 var(--own), inset -4px 0 0 #6b21a8; }
.jt-table .ride.own, .jt-table .ride.own-rel { cursor: help; }
.jt-own-toggle { display: inline-flex; flex-direction: column; vertical-align: middle; }
.jt-own-toggle label { cursor: pointer; }
.jt-own-note { color: #b45309; font-size: 11px; }
.jt-own-tip { position: fixed; z-index: 50; max-width: 360px; padding: 6px 8px; background: #1f2937; color: #fff; font-size: 12px; line-height: 1.5; border-radius: 4px; white-space: pre-line; pointer-events: none; }
/* 馬主連線聚焦：其他無關嘅馬變淡；指住嗰匹深色框，同一馬主同色實線框，有關係紫色虛線框 */
.jt-wrap.own-focus .ride:not(.own-me):not(.own-hit-same):not(.own-hit-rel) { opacity: 0.25; }
.jt-wrap.own-focus .ride.own-me { outline: 3px solid #111827; outline-offset: -2px; }
.jt-wrap.own-focus .ride.own-hit-same:not(.own-me) { outline: 3px solid var(--own); outline-offset: -2px; }
.jt-wrap.own-focus .ride.own-hit-rel:not(.own-me) { outline: 3px dashed #6b21a8; outline-offset: -2px; }
.jt-wrap .ride { transition: opacity 0.12s; }
/* 馬主連線固定咗：指住嗰匹加個圖釘位提示 */
.jt-wrap.own-pinned .ride.own-me { outline-style: double; outline-width: 4px; }
.jt-wrap .ride.own, .jt-wrap .ride.own-rel { cursor: pointer; }

/* 練馬師／騎師頁：降班成績備註 */
.hp-drop-note { margin: 6px 0 0; font-size: 12px; }

/* 賠率區：騎師王、練馬師王 */
.or-fo-wrap { overflow-x: auto; }
table.or-fo { width: auto; font-size: 14px; }
.or-fo th.nm { width: auto; text-align: left; white-space: nowrap; padding-right: 10px; }
.or-fo td { min-width: 3.4em; }
.or-fo thead th { white-space: nowrap; }

/* 40分鐘走勢圖：開售至開跑前 40 分鐘大注 */
.or-early-box { margin-top: 16px; }
.or-early-title { margin: 0 0 4px; padding: 3px 8px; background: #005094; color: #fff; font-size: 14px; border-radius: 4px 4px 0 0; display: inline-block; }
table.or-early { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.or-early th, .or-early td { border: 1px solid #e3d3b8; padding: 3px 8px; text-align: right; white-space: nowrap; }
.or-early thead th { background: #f3e3c7; color: #5a3a00; text-align: center; }
.or-early td.sel { text-align: left; }
.or-early td.hi { color: #e40b0b; font-weight: 700; }
.or-fo th.sep, .or-fo td.sep { min-width: 0; width: 1.6em; padding: 2px 1px; background: #005094 !important; color: #fff; font-size: 12px; }
.or-fo thead th small { font-weight: 400; font-size: 11px; }
/* 大票房：時間、彩池、選項靠左；賠率（前 → 後）同金額靠右對齊 */
.or-bp-item .ow, .or-bp-item .o, .or-bp-item .dp, .or-bp-item .mv { text-align: right; }
.or-bp-item .mv { color: var(--muted); }
.or-bp-item .ar { text-align: center; color: var(--muted); }
.or-bp-item.g .ar, .or-bp-item.b .ar { color: inherit; }

/* 馬匹賽績：馬房簡號 */
.form td.stable { text-align: center; white-space: nowrap; }
.form td.fd { white-space: nowrap; }
.form td.fd .draw-c { font-size: 1.3em; line-height: 1; vertical-align: -0.08em; }
.or-bp-item .au { font-size: 11px; color: #7c3aed; font-weight: 700; text-align: right; }
.or-bp-item.g .au, .or-bp-item.b .au { color: #fff; }
.or-early td.au { color: #7c3aed; font-weight: 700; text-align: center; }

/* 賠率區：分段賠率（每格 = 該時段新增投注；落色跟舊站：黃 5%、灰 10%、綠 20%、啡 30%） */
.or-seg-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.or-seg-modes { display: inline-flex; gap: 4px; }
.or-seg-modes button { padding: 3px 12px; border: 1px solid #c9b48a; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.or-seg-modes button.on { background: #005094; border-color: #005094; color: #fff; }
.or-seg-bar .or-legend { margin: 0; }
.or-seg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 12px; align-items: start; }
table.or-seg { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.or-seg th, .or-seg td { border: 1px solid #e3d3b8; padding: 2px 3px; text-align: right; }
.or-seg thead th { background: #f3e3c7; color: #5a3a00; text-align: center; font-weight: 600; }
.or-seg tbody th { background: #f3e3c7; color: #5a3a00; text-align: center; width: 2em; }
.or-seg tbody tr:nth-child(even) td { background: #fbf6ee; }
.or-seg tfoot td { background: #eee; color: var(--muted); font-size: 12px; }
.or-seg td.s5, .or-seg-bar .s5 { background: #ffff99 !important; font-weight: 700; }
.or-seg td.s10, .or-seg-bar .s10 { background: #bdbdbd !important; font-weight: 700; }
.or-seg td.s20, .or-seg-bar .s20 { background: #298a08 !important; color: #fff; font-weight: 700; }
.or-seg td.s30, .or-seg-bar .s30 { background: #8a4b08 !important; color: #fff; font-weight: 700; }
.or-seg-bar .s5, .or-seg-bar .s10, .or-seg-bar .s20, .or-seg-bar .s30 { padding: 0 4px; }

/* 上仗強組（Key Race）：上仗同場已有 2 匹或以上下仗贏 */
.rc-lastrun .kr, .hf-kr { display: inline-block; padding: 0 0.3em; border-radius: 3px; background: #7c3aed; color: #fff; font-size: 0.85em; font-weight: 700; line-height: 1.3; }
.kr-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-cell.strong { color: #7c3aed; font-weight: 700; }

/* KeyRaces（Key Race） */
#keyrace { max-width: 1240px; margin: 0 auto; padding: 12px 16px; }
.kr-h1 { font-size: 22px; margin: 6px 0; }
.kr-h1 small { font-size: 15px; font-weight: 400; color: var(--muted); }
.kr-intro, .kr-note { font-size: 13px; }
.kr-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0; font-size: 14px; }
.kr-bar select, .kr-bar input { font-size: 14px; padding: 2px 4px; }
.kr-min { width: 3.5em; }
table.kr-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--card, #fff); }
.kr-table th { background: #f3e3c7; color: #5a3a00; padding: 4px 6px; font-weight: 600; white-space: nowrap; }
.kr-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.kr-table td.l { text-align: left; }
.kr-table td.w { color: #c62828; font-weight: 700; }
.kr-table td.hi { font-weight: 700; }
.kr-table tr.kr-row { cursor: pointer; }
.kr-table tr.kr-row:hover td { background: #fbf3e4; }
.kr-back { margin: 4px 0; font-size: 14px; }
.kr-sum { font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.kr-later { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.kr-run { display: inline-flex; gap: 3px; align-items: baseline; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); text-decoration: none; font-size: 13px; }
.kr-run small { color: var(--muted); font-size: 11px; }
.kr-run.next { border-color: #7c3aed; }
.kr-run.plc b { color: #1565c0; }
.kr-run.win { background: #fde8e8; }
.kr-run.win b { color: #c62828; }
.kr-run i { font-style: normal; font-size: 11px; }
.kr-run i.up { color: #2e7d32; }
.kr-run i.dn { color: var(--muted); }
.kr-tag { margin-left: 4px; }

/* 馬匹頁：進口前外地賽績（自購馬，馬會 PDF 轉換） */
.ovs-panel h2 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.ovs-info { font-size: 14px; margin: 4px 0 8px; }
table.ovs-sum, table.ovs-runs { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.ovs-sum { margin-bottom: 10px; }
.ovs-sum th, .ovs-runs th { background: #f3e3c7; color: #5a3a00; padding: 3px 6px; font-weight: 600; white-space: nowrap; }
.ovs-sum td, .ovs-runs td { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.ovs-sum tr.tot td { color: var(--muted); }
.ovs-runs td.l { text-align: left; }
.ovs-runs td.r { text-align: right; }
.ovs-runs td small { color: var(--muted); font-size: 11px; }
.ovs-runs td.place.top3 { color: #c62828; font-weight: 700; }
.ovs-top3 { font-size: 12px; line-height: 1.3; }
.ovs-note { font-size: 12px; margin-top: 6px; }
.ovs-btn { padding: 1px 10px; border: 1px solid #c9b48a; background: #fff; border-radius: 4px; cursor: pointer; font-size: 13px; }
.ovs-btn:hover { background: #fbf3e4; }
.or-seg td.closed { color: var(--muted); background: #eeeeee !important; }
.or-seg td.nonew { color: var(--muted); text-align: center; }
.or-seg tfoot td.closed { font-size: 11px; }
/* 獨贏走勢：過關投注 */
.or-wt-allup-h { display: inline-block; margin-top: 14px; }
.or-wt-allup-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
table.or-wt-allup td { text-align: right; min-width: 6em; }
table.or-wt-allup th small { display: block; font-weight: 400; font-size: 11px; }
.rc-result-panel h2 .rc-res-more { float: right; font-size: 14px; font-weight: 400; }
.or-seg-from { font-size: 13px; padding: 0 2px; max-width: 9em; }
/* 配磅表：組別標題後面嘅班次 · 草泥 · 途程（大啲字）、頂部草地跑道 */
.en-race h2 .en-facts { margin-left: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.en-remark .en-rail { color: #0a7a3a; }
/* 騎師王、練馬師王：直排（每人一欄，時間由上至下，最新喺最底），表身碌，表頭固定 */
.or-fo-v-wrap, .or-fo-wrap:has(.or-fo-v) { max-height: calc(100vh - 220px); overflow: auto; }
table.or-fo-v { width: auto; }
.or-fo-v thead { position: sticky; top: 0; z-index: 1; }
.or-fo-v thead th { min-width: 4.2em; padding: 1px 4px; }
.or-fo-v thead th.nm { white-space: nowrap; }
.or-fo-v thead th.sub { font-weight: 400; font-size: 12px; }
.or-fo-v thead th .no { display: block; font-size: 11px; opacity: 0.8; }
.or-fo-v thead th .nm { display: block; white-space: nowrap; }
.or-fo-v thead th small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.or-fo-v th.t { white-space: nowrap; text-align: left; padding-right: 8px; min-width: 6em; }
.or-fo-v tr.sep th { background: #005094 !important; color: #fff; text-align: left; font-size: 12px; padding: 1px 6px; }
.or-fo-v tr.cur th, .or-fo-v tr.cur td { border-top: 2px solid #005094; font-weight: 700; }
.or-fo-v td.fo-out { color: var(--muted); font-size: 12px; white-space: nowrap; }
.or-fo-v tr.sep td { background: #e8f0fa !important; color: #005094; font-weight: 700; text-align: center; font-size: 12px; padding: 1px 4px; }
.or-fo-v tr.sep td.w { color: #c62828; }
/* 賠率變化：固定欄闊（每個時段一樣闊，空欄唔會變窄、有數唔會撐闊） */
.or-chg-box table.or-chg { table-layout: fixed; }
.or-chg-box table.or-chg thead th:first-child { width: 2.4em; }
.or-chg-box { overflow-x: auto; }
.or-chg-box table.or-chg { min-width: 30em; }
/* 孖寶、二重彩：每行一樣高（冇馬嘅 13、14 號都同有數嘅行一樣），揀比較時段兩行字都放得落 */
.or-mx tbody th, .or-mx tbody td { height: 3.3em; box-sizing: border-box; }
.or-mx tfoot th, .or-mx tfoot td { height: 2em; }
.or-legend .or-mx-sw { padding: 0 4px; border-radius: 2px; color: #fff; }
.or-legend .or-mx-sw.drop-g { background: #2aa217; }
.or-legend .or-mx-sw.drop-b { background: #993300; }
/* 配備提示重點：以往上名率 50% 或以上 */
.rc-tips-table tr.rc-gear-key td { background: #fff7ee; }
.rc-gear-badge { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #f2a65a; color: #fff; font-size: 12px; font-weight: 700; }
.or-os { margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: #1d4ed8; color: #fff; font-size: 12px; }
/* 檔位統計：無論有幾多個檔位都一樣闊（等於 14 個檔位嘅闊度），檔位少每格就闊啲 */
.rc-draws table { table-layout: fixed; width: 32.5em; }
.rc-draws tbody tr:first-child > th:first-child { width: 3em; }
.rc-draws th, .rc-draws td { min-width: 0; }
/* 騎練出馬表：今季冠亞季殿賽放返名下面，分五格（2026-11-05） */
.jt-table th.nm .nm1 { display: flex; align-items: baseline; justify-content: center; gap: 0.15em; white-space: nowrap; }
.jt-table th.nm .nm1 a { display: inline; }
.jt-table th.nm .jt-nums, .jt-table thead .jt-nums.hd { display: grid; grid-template-columns: repeat(4, 1.5em) 2.1em; justify-content: center; font-variant-numeric: tabular-nums; }
.jt-table th.nm .jt-nums { margin-top: 0.15em; font-size: 0.85em; font-weight: 400; color: var(--text); }
.jt-table thead .jt-nums.hd { margin-top: 0.1em; font-size: 0.8em; font-weight: 400; color: var(--muted); }
.jt-table .jt-nums span { text-align: right; }
.jt-table .jt-nums span.n4 { color: var(--muted); }
/* 冠亞季殿賽：五格加框同淺底色 */
.jt-table th.nm .jt-nums, .jt-table thead .jt-nums.hd { grid-template-columns: repeat(4, 1.7em) 2.3em; gap: 0; margin-top: 0.2em; border: 1px solid #c9d6e6; border-radius: 3px; overflow: hidden; width: max-content; margin-left: auto; margin-right: auto; }
.jt-table .jt-nums span { padding: 0 0.2em; border-left: 1px solid #c9d6e6; background: #f1f6fc; text-align: center; }
.jt-table .jt-nums span:first-child { border-left: 0; }
.jt-table th.nm .jt-nums span:first-child { background: #fdecec; color: #c62828; font-weight: 700; }
.jt-table .jt-nums span.n4 { background: #f3f4f6; }
.jt-table thead .jt-nums.hd span { background: #e8eff8; }
.jt-own-how { max-width: 46em; color: var(--muted); font-size: 11px; line-height: 1.4; white-space: normal; }
.os-page .race-tabs .odds-link { margin-left: auto; } /* 越洋轉播：賠率區靠右（同本地排位表一樣） */

/* 資料聲明（全日賽果、馬匹賽績）：轉彎疊數來源 */
.src-note { color: var(--muted); font-size: 12px; margin: 8px 2px 0; }

/* 40 分鐘走勢圖：canvas 唔撐闊個表（成頁放大 zoom 時 Chart.js 量度會越量越闊） */
.or-trend .spark-box { overflow: hidden; }
.or-trend .spark-box canvas { position: absolute; left: 0; top: 0; }

/* 獨贏走勢下半部：過關投注同落飛最多／排位資料並排（盡量一頁睇晒） */
.or-wt-lower { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.or-wt-lower-l { flex: 0 1 auto; max-width: 34em; }
.or-wt-lower .or-wt-bottom { margin-top: 14px; }

/* 大場（13 匹或以上）密排：行距收窄，盡量一頁睇晒（oddsroom.js body() 加 .or-big） */
.or-big .or-on td, .or-big .or-on tbody th, .or-big .or-seg td, .or-big .or-seg tbody th { padding-top: 0; padding-bottom: 0; line-height: 1.15; }
.or-big .or-on thead th, .or-big .or-seg thead th { padding-top: 1px; padding-bottom: 1px; }
.or-big .or-seg-grid { row-gap: 6px; }
.or-big .or-chg-title { padding-top: 1px; padding-bottom: 1px; }
.or-big .or-horses th, .or-big .or-horses td { padding-top: 0.08em; padding-bottom: 0.08em; }
.or-big .or-q .rc-q-table th, .or-big .or-q .rc-q-table td { padding-top: 0.05em; padding-bottom: 0.05em; line-height: 1.2; }
.or-big .or-mx td, .or-big .or-mx th { padding-top: 0; padding-bottom: 0; line-height: 1.1; }
.or-big .or-q .rc-q-table th, .or-big .or-q .rc-q-table td { height: 1.4em; }
.or-big .or-q .rc-q-table th.corner { height: 1.8em; }
.or-big .or-mx tbody th, .or-big .or-mx tbody td { height: 2.7em; }
.or-big .or-seg-bar { margin-bottom: 2px; }
.or-big .or-horses th, .or-big .or-horses td { line-height: 1.25; }
.or-big .or-seg-grid { gap: 4px 12px; }
.or-big .or-seg-bar .or-legend { line-height: 1.3; }
.or-big .or-q .rc-q-table.cmp td.q2 { line-height: 1; padding-top: 0; padding-bottom: 0; }
main#oddsroom.or-big { padding-bottom: 4px; }
.or-big .or-seg td, .or-big .or-seg tbody th { line-height: 1.1; }

/* 賠率區放大：頁頂同分頁列只跟窗口（固定），內容區按內容高度（oddsroom.js fitZoom） */
main#oddsroom > .or-head, main#oddsroom > .or-tabs { zoom: var(--or-head-zoom, 1); }
main#oddsroom > #or-body { zoom: var(--or-body-zoom, 1); }
/* 放大後都保持每排 4 格（1920 闊）：每格最少 400px */
.or-seg-grid { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
/* 連贏及位置Q 馬匹表：獨贏、位置時段二比時段一轉熱，同連贏表一樣變底色（蓋過隔行底色） */
.or-horses td.od.h5 { background: #ffff99 !important; }
.or-horses td.od.h10 { background: #c8c8c8 !important; }
.or-horses td.od.h20 { background: #ff9f9f !important; }
.or-horses td.od.h30 { background: #ff9900 !important; }
/* 隔夜賠率：下面有位就加高行高（oddsroom.js stretchRows 設 --or-row-h） */
#or-body table.or-on tbody tr { height: var(--or-row-h, auto); }
/* 分段賠率：每排 4 格後格仔窄咗，粗體數字（例如 27.5）會出格；左右留白收窄、粗體字距收少少、馬號欄收窄 */
.or-seg th, .or-seg td { padding-left: 1px; padding-right: 2px; }
.or-seg tbody th { width: 1.7em; }
.or-seg td.s5, .or-seg td.s10, .or-seg td.s20, .or-seg td.s30 { letter-spacing: -0.03em; }
.or-seg td { overflow: hidden; white-space: nowrap; }
/* 分段賠率：固定每排 3 格（用家揀），每格夠闊放粗體數字同金額 */
.or-seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 時段增加明細（檢測頁）：大字百分比、下面細字升跌 */
.or-segck td.ck small { display: block; font-size: 10px; font-weight: 400; opacity: 0.75; line-height: 1; }
.or-seg-grid.or-segck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 檢測頁每排 2 場，格夠闊睇細字 */
/* 時段增加明細（逐份賠率）：時間欄同彩池增加欄靠左、馬名細字 */
.or-segck-wrap { overflow-x: auto; }
table.or-segck { width: auto; table-layout: auto; }
.or-segck th.tm { white-space: nowrap; text-align: left; padding: 1px 6px; }
.or-segck th.tm small, .or-segck thead th small { display: block; font-size: 10px; font-weight: 400; opacity: 0.75; }
.or-segck td.amt { white-space: nowrap; padding: 1px 6px; }
.or-segck td.ck { min-width: 3.4em; }
/* 配磅表：優先出賽 *、王牌 + 用符號（用家要求），字放大少少 */
.en-flag.pr, .en-flag.tr { font-size: 13px; font-weight: 700; min-width: 1.1em; text-align: center; }
.ad-panel h2 .ad-import { margin-left: auto; }
/* 大票房：預設規則標記、還原預設按鈕 */
.or-legend .or-bp-def { background: #e8f0f8; color: #005094; padding: 0 6px; border-radius: 3px; font-weight: 700; }
.or-legend .or-bp-reset { background: #fff; color: #005094; border: 1px solid #005094; border-radius: 3px; padding: 0 6px; font: inherit; font-weight: 700; cursor: pointer; }
/* 大票房：條件面板（取代舊嘅一大段說明文字） */
.or-bp-panel { margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--line, #d5dce6); border-radius: 6px; font-size: 0.88em; color: var(--text, #24364d); }
.or-bp-panel .or-bp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em; margin-bottom: 6px; color: var(--muted, #5b6b80); }
.or-bp-panel .or-bp-def { background: #e8f0f8; color: #005094; padding: 1px 8px; border-radius: 3px; font-weight: 700; white-space: nowrap; }
.or-bp-panel .or-bp-reset { background: #fff; color: #005094; border: 1px solid #005094; border-radius: 3px; padding: 1px 8px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.or-bp-panel .or-bp-rules { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.or-bp-panel .or-bp-link { padding-left: 8px; color: var(--muted, #5b6b80); font-weight: 700; }
.or-bp-panel .or-bp-rule { display: flex; align-items: center; gap: 0.4em; padding: 4px 8px; background: #f3f6fa; border-radius: 4px; white-space: nowrap; }
.or-bp-panel .or-wt-limit { width: 4em; font: inherit; }
.or-bp-panel .or-bp-b { background: #8a4b08; color: #fff; padding: 0 4px; margin: 0 2px; }
/* 大票房：頂部 = 條件面板 + 橫向即時賠率（獨贏、位置） */
.or-bp-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin: 8px 0; }
.or-bp-top .or-bp-panel { margin: 0; flex: none; }
.or-bp-live { margin: 0; }
.or-bp-live th.tm { background: #005094; color: #fff; text-align: center; }
.or-bp-live th.h { padding: 2px 4px; text-align: center; font-weight: 600; line-height: 1.2; }
.or-bp-live th.h .no { display: block; font-size: 14px; color: #005094; }
.or-bp-live th.h .nm { display: block; font-size: 12px; font-weight: 400; color: #5a3a00; }
.or-bp-live th.lb { text-align: center; }
.or-bp-live td { text-align: center; min-width: 2.8em; }
/* 大票房：右邊直欄 = 預設規則（上）+ 即時賠率（下） */
.or-bp-right { display: flex; flex-direction: column; gap: 8px; flex: none; }
.or-bp-right .or-bp-panel { margin: 0; }
/* 大票房即時賠率：偶數行底色（.or-on tbody tr:nth-child(even) td）會蓋走綠、啡底，白字變得睇唔到，要加重優先次序 */
.or-on.or-bp-side tbody tr td.g { background: #009933; color: #fff; }
.or-on.or-bp-side tbody tr td.b { background: #8a4b08; color: #fff; }
/* 大票房列表：欄位對齊（時間、彩池、組合靠左／置中，賠率、跌幅、金額靠右），每欄固定闊度 */
.or-bp-list { columns: 28em; column-gap: 26px; }
.or-bp-item { grid-template-columns: 3em 1.8em 3.6em 2.4em 0.9em 2.4em 2.8em 2.4em 3.6em 2.4em; gap: 3px; padding: 2px 4px; }
.or-bp-item .t { text-align: left; color: #444; }
.or-bp-item .p { text-align: center; }
.or-bp-item .s { text-align: left; font-weight: 600; }
.or-bp-item .ow { text-align: right; color: #666; }
.or-bp-item .ar { text-align: center; color: #999; }
.or-bp-item .o { text-align: right; font-weight: 700; }
.or-bp-item .dp { text-align: right; color: #c62828; }
.or-bp-item .mv { text-align: right; color: #8a8a8a; }
.or-bp-item .a { text-align: right; }
.or-bp-item .au { text-align: left; color: #7b3fa0; font-size: 12px; }
/* 大票房列表：欄闊度固定、由左排起，空位留喺右邊（取代 CSS columns 會將每欄撐闊） */
.or-bp-list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 26px); grid-auto-columns: 380px; column-gap: 24px; align-content: start; columns: auto; }
.or-bp-list .or-bp-item { height: 26px; box-sizing: border-box; align-items: center; }
.or-bp-list .empty { grid-row: 1; grid-column: 1; white-space: nowrap; }
/* 大票房右邊直欄壓縮：條件面板 5 行、即時賠率表行高縮細；萬一都放唔落就欄內捲動（唔拉頁面） */
.or-bp-right { gap: 6px; }
.or-bp-panel { padding: 5px 8px; }
.or-bp-panel .or-bp-head { margin-bottom: 3px; }
.or-bp-panel .or-bp-rules { gap: 1px; }
.or-bp-panel .or-bp-rule { padding: 2px 8px; }
.or-bp-panel .or-bp-rule .pre { display: inline-block; width: 2.6em; color: var(--muted, #5b6b80); font-weight: 700; }
.or-bp-panel .or-bp-link { padding: 0 8px; font-weight: 400; font-size: 0.92em; }
.or-bp-right .or-bp-side th, .or-bp-right .or-bp-side td { padding-top: 1px; padding-bottom: 1px; font-size: 12.5px; line-height: 1.25; }
/* 越洋轉播簡易賽績（點馬匹展開）：血統／資料分行、成績標籤、近 5 仗兩層格 */
.os-info2 { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.os-info2 .os-row { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; }
.os-info2 .os-kv b { margin-right: 6px; padding: 0 6px; border-radius: 3px; background: #eef2f7; color: #4a5f78; font-size: 12px; font-weight: 600; }
.os-info2 .os-kv > span { font-weight: 600; }
.os-info2 .chips { gap: 6px; }
.os-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 1px 8px; border: 1px solid #d5dce6; border-radius: 999px; background: #fff; font-size: 12.5px; }
.os-chip i { font-style: normal; color: var(--muted, #5b6b80); }
.os-chip b { font-variant-numeric: tabular-nums; }
table.os-form2 { table-layout: fixed; width: 100%; font-size: 13px; border-collapse: collapse; }
.os-form2 th { padding: 3px 4px; background: #f3e3c7; color: #5a3a00; font-weight: 600; line-height: 1.25; text-align: center; }
.os-form2 th.l, .os-form2 td.l { text-align: left; }
.os-form2 td { padding: 4px 6px; text-align: center; vertical-align: middle; border-bottom: 1px solid #ece3d2; line-height: 1.3; }
.os-form2 tbody tr:nth-child(even) td { background: #fbf6ee; }
.os-form2 td .m { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
.os-form2 td small { display: block; color: var(--muted, #5b6b80); font-size: 11.5px; font-weight: 400; }
.os-form2 td.pl .pill { display: inline-block; min-width: 2.6em; padding: 1px 6px; border-radius: 999px; background: #eceff3; color: #33475b; font-weight: 700; }
.os-form2 td.pl .pill small { display: inline; font-size: 11px; font-weight: 400; color: inherit; opacity: .7; }
.os-form2 td.pl .pill.top3 { background: #fde9a8; color: #b3261e; }
.os-form2 td.od { font-variant-numeric: tabular-nums; }
.os-form2 td.os-win, .os-form2 td.os-comment { white-space: normal; }
.os-form2 td.os-comment { color: #4a5566; font-size: 12px; }
.os-form2 .os-race .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-form2 .os-race small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-form2 td.os-win { color: #4a5566; font-size: 12px; }
.os-form2 .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.os-info2 .os-kv { min-width: 0; max-width: 100%; }
.os-info2 .os-kv > span { overflow-wrap: anywhere; }
/* 越洋轉播簡易賽績：字體加大 */
.os-info2 { font-size: 15px; }
.os-info2 .os-kv b { font-size: 13.5px; }
.os-chip { font-size: 14px; }
table.os-form2 { font-size: 15px; }
.os-form2 th { font-size: 14px; }
.os-form2 td small { font-size: 13px; }
.os-form2 td.pl .pill small { font-size: 12.5px; }
.os-form2 td.os-win, .os-form2 td.os-comment { font-size: 13.5px; }
table.form.os-form.os-form2 td, table.form.os-form.os-form2 td .m { font-size: 15px; }
table.form.os-form.os-form2 th { font-size: 14px; }
table.form.os-form.os-form2 td small { font-size: 13px; }
table.form.os-form.os-form2 td.os-win, table.form.os-form.os-form2 td.os-comment { font-size: 14px; }
table.form.os-form.os-form2 td.pl .pill small { font-size: 12.5px; }
/* 排位表、配磅表「上賽」名次：CSS 畫圈，入面普通粗體數字（Unicode 圈碼 ⑩–⑭ 太細難睇）；三名內紅圈 */
.rc-lastrun .lr-pl { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 1.5em; height: 1.5em; padding: 0 0.2em;
  border: 1.5px solid #6b7686; border-radius: 999px; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 0.92em; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; color: #2b3442; align-self: center; }
.rc-lastrun .lr-pl.up { border-color: #c62828; color: #c62828; }

/* 馬匹頁晨操紀錄（horse.js trackworkCard）：每日一行，同日幾樣並排；預設只出最近 30 日 */
.tw-panel h2 .tw-more { margin-left: auto; }
.tw-sum { display: inline-block; margin-right: 0.6em; }
.tw-table { width: 100%; }
.tw-table td { padding: 0.25em 0.5em; vertical-align: top; border-top: 1px solid #eef1f5; }
.tw-table td.tw-date { width: 6.5em; white-space: nowrap; color: var(--muted); }
.tw-table td.tw-date small { margin-left: 0.3em; }
.tw-panel:not(.tw-open) tr.tw-old { display: none; }
.tw-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25em 0.7em; padding: 0.1em 0; }
/* 晨操齋出字，唔用顏色分類 */
.tw-tag { display: inline-block; min-width: 4.6em; font-weight: 700; }
.tw-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.tw-sec { font-variant-numeric: tabular-nums; color: var(--muted); }
.tw-gear { color: var(--muted); font-size: 0.85em; }
.tw-pass { font-weight: 700; }
.tw-comm { flex-basis: 100%; color: #475569; font-size: 0.9em; }
.tw-note { font-size: 12px; margin: 6px 2px 0; }
/* 晨操月曆（horse.js trackworkCard）：預設收埋；日至六，每格出晨操簡寫同出賽，撳日子下面出詳細 */
.tw-panel h2 .tw-toggle { margin-left: auto; }
.tw-body { margin-top: 6px; }
.tw-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tw-nav .tw-month { font-size: 1.1em; min-width: 7em; text-align: center; }
.tw-nav .muted { margin-right: auto; font-size: 12px; } /* 2026-11-13：日數靠左，月份切換靠右 */
table.tw-cal { width: 100%; table-layout: fixed; border-collapse: collapse; }
.tw-cal th { padding: 3px; background: #eef2f7; color: #475569; font-weight: 600; text-align: center; border: 1px solid #dfe5ee; }
.tw-cal th:first-child, .tw-cal td.tw-day:first-child .tw-dn { color: #c62828; }
.tw-cal td { height: 5.2em; padding: 2px 3px; vertical-align: top; border: 1px solid #dfe5ee; background: #fff; }
.tw-cal td.tw-blank { background: #f6f8fa; }
.tw-cal td.has { cursor: pointer; }
.tw-cal td.has:hover { background: #f5f9ff; }
.tw-cal td.on { box-shadow: inset 0 0 0 2px #475569; }
.tw-cal td.today .tw-dn { display: inline-block; min-width: 1.4em; border-radius: 999px; background: #005094; color: #fff; text-align: center; }
.tw-dn { font-size: 14px; font-weight: 700; color: #64748b; margin-bottom: 1px; }
.tw-chip { margin: 1px 0 3px; font-size: 12px; line-height: 1.4; color: var(--text, #1f2937); font-variant-numeric: tabular-nums; }
.tw-chip > div:first-child { font-weight: 600; }
.tw-chip a { color: inherit; }
.tw-race { display: block; margin: 1px 0 3px; color: var(--text, #1f2937) !important; font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: underline; }
.tw-detail { margin-top: 8px; padding: 6px 8px; border: 1px solid #dfe5ee; border-radius: 4px; }
.tw-detail h3 { margin: 0 0 4px; font-size: 14px; }

/* 晨操月曆格直接出詳細（用 .tw-item），格入面收細啲 */
.tw-cal .tw-item { display: block; margin: 1px 0 4px; padding: 0; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tw-cal .tw-item > * { margin-right: 0.4em; }
.tw-cal .tw-tag { min-width: 0; }
.tw-cal .tw-comm { display: block; }
.tw-cal .tw-item a { color: inherit; text-decoration: underline; }
/* 性質（出賽、試閘、踱步…）灰底；快操紅底（用家要求） */
.tw-cal .tw-tag { display: inline-block; padding: 0 3px; margin-right: 3px; border-radius: 2px; background: #e2e6eb; color: #1c2430; font-weight: 700; }
.tw-cal .tw-tag.tw-G { background: #c62828; color: #fff; }
.tw-cal .tw-race-row { margin: 1px 0 4px; font-size: 14px; line-height: 1.4; }
.tw-cal .tw-race-row .tw-race { display: inline; }
.tw-cal .tw-tag.tw-B { background: #c62828; color: #fff; }
/* 賽績表試閘行：淺灰底，紅底「試閘」 */
/* 試閘行：淺黃底，上下橙線，同賽事行一眼分到 */
table.form tr.trial-row td { background: #fff4d6 !important; color: #3d3320; border-top: 1px solid #e0b44a; border-bottom: 1px solid #e0b44a; }
table.form tr.trial-row td:first-child { box-shadow: inset 4px 0 0 #c62828; }
table.form tr.trial-row .trial-tag { display: inline-block; padding: 0 4px; border-radius: 2px; background: #c62828; color: #fff; }
table.form tr.trial-row td.trial-comm { color: #475569; white-space: normal; }
.form-panel h2 .trial-toggle { margin-left: auto; font-size: 14px; font-weight: 400; cursor: pointer; }
/* ---- 試閘結果頁（trial.html）---- */
#trial { max-width: 1400px; margin: 0 auto; padding: 12px 16px; }
.tri-title { font-size: 20px; margin: 4px 0 8px; }
.tri-title .muted { font-size: 14px; font-weight: 400; }
.tri-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tri-nav .muted { font-size: 12px; }
.tri-group { margin-bottom: 10px; }
.tri-group h2 .count { font-weight: 400; }
table.tri-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tri-table th { padding: 4px 6px; background: #eef2f7; color: #475569; font-weight: 600; border: 1px solid #dfe5ee; white-space: nowrap; }
.tri-table td { padding: 4px 6px; border: 1px solid #dfe5ee; text-align: center; white-space: nowrap; }
.tri-table td.l { text-align: left; }
.tri-table td.comm { white-space: normal; width: 40%; }
.tri-table td.pos { font-weight: 700; }
.tri-table td.pos.top3 { color: #c62828; }
.tri-table td.time { font-weight: 700; }
.tri-table tbody tr:nth-child(even) td { background: #f8fafc; }
.tri-note { font-size: 12px; }
.tw-cal .tw-tag.tw-RACE { background: #1565c0; color: #fff; } /* 月曆出賽藍底 */
/* 試閘結果頁：由馬匹頁跳入嘅組同馬 */
.tri-group.focus { box-shadow: 0 0 0 2px #c62828; }
.tri-table tr.focus td { background: #ffe9e9 !important; font-weight: 700; }
.tri-group h2 .clip-btn { margin-left: 6px; }
.tw-cal .clip-btn { vertical-align: middle; }
table.form tr.trial-row .trial-tag { display: inline-block; box-sizing: border-box; width: 23px; font-size: 11px; line-height: 1.3; padding: 0; text-align: center; vertical-align: middle; } /* 用家要求 11px */
.tw-cal .tw-partner { display: block; } /* 有拍跳馬就另起一行 */
.vid-btn.vid-gap { display: inline-block; width: 18px; height: 1px; visibility: hidden; } /* 試閘行補位，令片段掣同賽事行對齊 */
table.form td.fd .fd-n { display: inline-block; min-width: 1.2em; text-align: right; } /* 出馬數一位、兩位都對齊 */
table.form td.fd .draw-c { display: inline-block; min-width: 1em; text-align: center; }
/* 試閘頁字體加大（用家要求） */
#trial .tri-title { font-size: 24px; }
#trial .tri-title .muted { font-size: 16px; }
#trial .tri-nav, #trial .tri-nav input, #trial .tri-nav button { font-size: 15px; }
#trial .tri-group h2 { font-size: 18px; }
#trial .tri-group h2 .count { font-size: 15px; }
#trial table.tri-table { font-size: 16px; }
#trial .tri-table th { font-size: 15px; }
#trial .tri-note { font-size: 14px; }
#trial .tri-nav .muted { font-size: 14px; }


/* 管理頁：本機指令（ps1）用法 */
.ad-ps1-item { margin: 10px 0 14px; }
.ad-ps1-item h3 { margin: 0 0 4px; font-size: 15px; }
.ad-ps1-item h3 code { margin-left: 8px; font-size: 13px; color: #555; font-weight: 400; }
.ad-ps1-item p { margin: 0 0 6px; color: #444; font-size: 14px; }
.ad-ps1-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.ad-ps1-table td { padding: 3px 6px; border-bottom: 1px solid #eee; vertical-align: middle; }
.ad-ps1-table td:first-child { white-space: nowrap; width: 15em; color: #333; }
.ad-ps1-table code { font-size: 12.5px; word-break: break-all; }
.ad-copy { padding: 1px 8px; font-size: 12px; }

/* KeyRaces 詳細：之後三仗，每格固定闊度、內容對齊（日期｜名次｜評分加減） */
.kr-later { display: grid; grid-template-columns: repeat(3, 8.6em); gap: 4px; }
.kr-later .kr-run { display: grid; grid-template-columns: 3.1em 1.7em 2.6em; align-items: baseline; justify-items: end; padding: 1px 5px; }
.kr-later .kr-run small { justify-self: start; }

/* 強組排名標記（強1–強10）：KeyRaces、排位表上賽、馬匹賽績、賽後頁 */
.kr-strong { display: inline-block; padding: 0 4px; border-radius: 3px; background: #fff3e0; color: #e65100; border: 1px solid #ffb74d; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; cursor: help; }
.race-strong { margin: 2px 0 4px; font-size: 14px; color: #8a4b00; } .hf-strong { margin-left: 2px; text-decoration: none; font-size: 10px; }
/* 馬匹賽績表：KR、強組標記放喺片段圖示後面；場次格靠左，片段圖示每行對齊 */
.form td.race-no { text-align: left; white-space: nowrap; }
.form td.race-no .hf-kr, .form td.race-no .hf-strong { margin-left: 2px; vertical-align: middle; font-size: 10px; line-height: 1.3; }
/* 晨操月曆：從化操練標記 */
.tw-cal .tw-ch, .tw-ch { display: inline-block; padding: 0 3px; border-radius: 3px; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; font-size: 11px; line-height: 1.4; }
.tw-dn .tw-ch { margin-left: 6px; vertical-align: 1px; }

/* 孖寶、二重彩方陣：收窄格仔，字體唔變（用家要求；本地、海外共用） */
.or-mx col.c-head { width: 6.2em; }
.or-mx col.c-cell { width: 4.2em; } /* 升蝕水「+164%」要 4.2em */
.or-mx col.c-tot { width: 5em; }
.or-mx th, .or-mx td { padding: 2px 2px; }
.or-mx tbody th, .or-mx tbody td { height: 2.9em; }
/* 場次號碼同試閘標籤：同一個固定闊度（唔跟字體闊度），片段圖示喺任何字體／縮放都對齊 */
.form td.race-no .race-num, table.form tr.trial-row .trial-tag { display: inline-block; box-sizing: border-box; width: 28px; text-align: center; vertical-align: middle; }
/* 近六仗＋最佳跑法：箭咀同文字靠右，對齊近六仗右邊（用家要求；排位表、配磅表共用） */
.rc-formstyle .rc-style { align-self: flex-end; }
/* 近六仗＋最佳跑法（用家要求）：
   - 成格咁闊，跑法中文字永遠貼格右邊（每行同一條直線），唔跟近六仗長短
   - 跑法一行用淺色虛線同近六仗分開，睇得出係兩樣嘢 */
.rc-formstyle { display: flex; width: 100%; }
.rc-formstyle .rc-style { align-self: stretch; justify-content: flex-end; margin-top: 1px; padding-top: 1px; border-top: 1px dashed #b8c4d4; }
/* 排位表：初出自購馬外地成績（上賽格）同外地賽績（展開） */
.rc-ovs { display: inline-flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.rc-ovs small { color: var(--muted); }
.rc-ovs-tag { display: inline-block; padding: 0 3px; border-radius: 3px; background: #ede7f6; color: #4527a0; font-size: 11px; font-weight: 700; }
.rc-ovs-note { margin: 4px 0 6px; font-size: 13px; color: #444; }
/* 大票房右邊即時賠率表（2026-11-07 整靚）：藍色標題、欄名、馬號圈、間條、退出灰色 */
table.or-bp-side2 { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: #fff; border: 1px solid #c9d3e0; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 40, 90, 0.08); }
.or-bp-side2 th, .or-bp-side2 td { padding: 4px 8px; border: 0; border-bottom: 1px solid #edf0f4; line-height: 1.35; }
.or-bp-side2 thead th.ttl { background: #005094; color: #fff; font-size: 15px; font-weight: 700; text-align: left; padding: 6px 10px; }
.or-bp-side2 thead th.ttl .tm { float: right; font-weight: 400; font-size: 13px; opacity: 0.9; }
.or-bp-side2 thead tr.hd th { background: #eef3f9; color: #34506f; font-size: 12px; font-weight: 600; text-align: right; border-bottom: 1px solid #c9d3e0; }
.or-bp-side2 thead tr.hd th:first-child { text-align: center; }
.or-bp-side2 thead tr.hd th.nm { text-align: left; }
.or-bp-side2 tbody tr:nth-child(even) td { background: #f7f9fc; }
.or-bp-side2 tbody tr:last-child td { border-bottom: 0; }
.or-bp-side2 td.no { text-align: center; width: 2.4em; }
.or-bp-side2 td.nm { text-align: left; color: #1f2d3d; }
.or-bp-side2 td.od { text-align: right; width: 3.6em; font-weight: 600; color: #1f2d3d; }
.or-bp-side2 td.od.fav { color: #e40b0b; background: #fdecec !important; }
.or-bp-side2 td.od.g { background: #009933 !important; color: #fff; }
.or-bp-side2 td.od.b { background: #8a4b08 !important; color: #fff; }
.or-bp-side2 tr.scr td { color: #9aa5b1; background: #f4f5f7 !important; }
.or-bp-side2 tr.scr td.nm { text-decoration: line-through; }
.or-bp-side2 tr.scr td.scr-t { text-align: center; font-size: 12px; letter-spacing: 2px; }
.or-bp-side2 tr.scr .horse-no, .or-bp-side2 tr.scr .hno { opacity: 0.5; }
/* 大票房落注列表（2026-11-07 整靚）：白底圓角、彩池色標、跌幅紅字、金額靠右加粗、大額啡底膠囊 */
.or-bp-list { background: #fff; border: 1px solid #c9d3e0; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 40, 90, 0.08); padding: 4px 8px; column-gap: 28px; column-rule: 1px solid #edf0f4; }
.or-bp-item { border-bottom: 1px solid #f0f2f5; padding: 3px 4px; border-radius: 3px; font-size: 14px; }
.or-bp-item:hover { background: #f3f7fc; }
.or-bp-item .t { color: #6b7a8c; }
.or-bp-item .p { justify-self: start; min-width: 1.7em; padding: 0 4px; border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; color: #fff; background: #607d8b; }
/* 彩池標籤用淺色底、深色字（用家要求淺色系） */
.or-bp-item .p { color: #455a64; background: #eceff1; border: 1px solid #cfd8dc; }
.or-bp-item .p.p-W { background: #e3f0fc; color: #1565c0; border-color: #bbd8f5; }
.or-bp-item .p.p-P { background: #e6f4e7; color: #2e7d32; border-color: #c3e2c5; }
.or-bp-item .p.p-Q { background: #f1e8f7; color: #6a1b9a; border-color: #dcc7ea; }
.or-bp-item .p.p-QP { background: #e0f4f5; color: #00727c; border-color: #b9e2e5; }
.or-bp-item .p.p-D { background: #fdf0e1; color: #c25800; border-color: #f6d6b3; }
.or-bp-item .s { font-weight: 700; color: #1f2d3d; }
.or-bp-item .ow { color: #8a96a3; }
.or-bp-item .o { font-weight: 700; color: #1f2d3d; }
.or-bp-item .dp { color: #c62828; }
.or-bp-item .mv { color: #8a96a3; }
.or-bp-item .a { color: #1f2d3d; }
.or-bp-item .a.b { border-radius: 3px; }
.or-bp-item .au { justify-self: start; font-size: 11px; color: #ad1457; font-weight: 700; }
.or-bp-list .empty { color: #6b7a8c; }
/* 右邊直欄舊規則（12.5px、上下 1px）唔適用新表 */
.or-bp-right .or-bp-side2 th, .or-bp-right .or-bp-side2 td { font-size: 14px; padding-top: 3px; padding-bottom: 3px; line-height: 1.35; }
.or-bp-right .or-bp-side2 thead tr.hd th { font-size: 12px; }
.or-bp-right .or-bp-side2 thead th.ttl { font-size: 15px; padding-top: 6px; padding-bottom: 6px; }
/* 賽後頁「此賽事各駒下仗」：撳入 KeyRaces 詳細 */
.form-panel h2 a.later-win { text-decoration: none; cursor: pointer; }
.form-panel h2 a.later-win:hover { background: #ffe9b0; text-decoration: underline; }
.form-panel h2 a.later-win .later-go { font-weight: 700; }
/* 本地賽果日曆：田草綠、谷草藍、泥地啡、草泥混合左綠右啡 */
.meeting-bar .mc-grid a.cd.rd-st { background: #1f7a3d; }
.meeting-bar .mc-grid a.cd.rd-hv { background: #1565c0; }
.meeting-bar .mc-grid a.cd.rd-dirt { background: #8a5a2b; }
.meeting-bar .mc-grid a.cd.rd-mix { background: linear-gradient(90deg, #1f7a3d 50%, #8a5a2b 50%); }
/* 排位表：場次牌同場次分頁按跑道上色（草地綠、泥地啡） */
.rc-head .race-badge.rd-turf { background: #1f7a3d; }
.rc-head .race-badge.rd-dirt { background: #8a5a2b; }
.race-tabs a.rd-turf { color: #1f7a3d; border-color: #b7dcc3; background: #f1f9f3; }
.race-tabs a.rd-dirt { color: #7a4a1d; border-color: #e2c9a8; background: #fbf4ea; }
.race-tabs a.rd-turf:hover { background: #e2f3e7; } .race-tabs a.rd-dirt:hover { background: #f5e8d6; }
.race-tabs a.rd-turf.on { background: #1f7a3d; border-color: #1f7a3d; color: #fff; }
.race-tabs a.rd-dirt.on { background: #8a5a2b; border-color: #8a5a2b; color: #fff; }
/* 排位表場頭最佳／班際／標準時間：標籤改淺色系（用家要求） */
.rc-times th { background: #e8f0fa; color: #1f4e79; border-bottom: 2px solid #fff; }
/* 窄畫面（視窗窄過 1280px）：場頭標題唔夠位，最佳時間表落第二行、排喺標題下面，唔再疊住標題 */
@media (max-width: 1279px) {
  .rc-head > .hp-head { grid-template-columns: auto minmax(0, 1fr); }
  .rc-head .rc-times { grid-column: 2; width: 100%; max-width: 400px; margin-top: 0.3em; }
}
/* 大票房：撳右邊馬名標示該馬嘅大額落注（hit 淺黃底＋左邊橙線；其他變淡）；揀咗嗰隻馬成行淺黃 */
.or-bp-item.hit { background: #fff6d6; box-shadow: inset 3px 0 0 #f0a400; }
.or-bp-item.hit:hover { background: #ffefb8; }
.or-bp-item.dim { opacity: 0.35; }
.or-bp-side2 tr.pick { cursor: pointer; }
.or-bp-side2 tr.pick:hover td { background: #eef4fb; }
.or-bp-side2 tr.pick.on td { background: #fff6d6 !important; font-weight: 700; }
.or-bp-side2 tr.pick.on td.nm { box-shadow: inset 3px 0 0 #f0a400; }
/* 場次下面「離開跑」倒數：字細啲、少啲留白，放得落場頭原本高度，有冇倒數場頭都唔會彈高彈低 */
.rc-badge-col .rc-countdown { font-size: 11px; line-height: 1.2; padding: 1px 4px; }
/* 海外賽場頭：場次欄靠頂（同本地排位表一樣），有冇倒數場次格都唔會上下郁 */
.os-head > .hp-head { align-items: start; }
/* 倒數唔再有「離開跑」，得一行：字可以大返少少 */
.rc-badge-col .rc-countdown { font-size: 12px; padding: 1px 4px; }
/* 騎練出馬表：馬主連線「包括團體會員」剔格 */
.jt-own-toggle .jt-own-mem { margin-left: 1.4em; font-size: 12px; }
/* 排位表上賽欄：KR、強組細標籤喺右邊直排（有標籤嗰行日期唔出年份騰位），唔會出格；撳入去睇 Key Race */
.rc-lr-wrap { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.rc-lr-wrap .rc-lastrun { gap: 0.12em; }
.rc-lr-tags { display: inline-flex; gap: 1px; line-height: 1; align-items: center; }
.rc-lr-tags .hf-kr, .rc-lr-tags .kr-strong { font-size: 9.5px; line-height: 1.05; padding: 1px 0; min-width: 1.15em; text-align: center; cursor: pointer; text-decoration: none; }
/* 強組：「強」同名次分兩行，窄啲；KR 同樣兩行（K / R） */
.rc-lr-tags .kr-strong b, .rc-lr-tags .hf-kr b { display: block; font-weight: 700; }
/* KR 同強組都有：一個標籤上下兩行 */
.rc-lr-tags .kr-both { display: inline-flex; flex-direction: column; font-size: 9.5px; line-height: 1.1; text-align: center; text-decoration: none; border-radius: 3px; overflow: hidden; border: 1px solid #ffb74d; }
.rc-lr-tags .kr-both b { display: block; font-weight: 700; padding: 0 1px; }
.rc-lr-tags .kr-both .k { background: #7c3aed; color: #fff; }
.rc-lr-tags .kr-both .s { background: #fff3e0; color: #e65100; }
.rc-lr-tags .kr-both:hover { filter: brightness(0.92); }
.rc-lr-tags .kr-strong:hover, .rc-lr-tags .hf-kr:hover { filter: brightness(0.92); text-decoration: underline; }

/* 賽果表分段時間：細字窄欄，五段都唔使左右拉（race.js resultPanel） */
.form-panel td.sec, .form-panel th.sec { font-size: 0.76em; padding-left: 1px; padding-right: 1px; }

/* 馬匹頁晨操卡：曾操騎師（horse.js ridersLine） */
.tw-panel .tw-riders { margin: 4px 0 6px; font-size: var(--fs-sm, 13px); color: var(--muted); }
.tw-panel .tw-riders b { color: var(--text, #1f2937); font-weight: 600; }
.tw-panel .tw-rider { cursor: help; }

/* 馬匹頁、排位表字號（2026-11-08 用家試過 14／15／16px，定咗 16px；排位表同日跟，騎師／練馬師頁 #person、騎練出馬表 #jtcard 11-09 跟）：只改呢兩頁主要字號，上限 18px → 16px，
   其他字（表頭、標題）跟比例；刪走呢一段即還原做 18px */
main#horse, main#racecard, main#person, main#jtcard { --fs: clamp(12px, calc((100vw - 70px) / 114), 16px); --fs-sm: calc(var(--fs) * 0.92); }

/* 連贏及位置Q：左邊獨贏位置表字細一成；行高由 oddsroom.js stretchRows 拉到表底齊右邊位置Q（--or-row-h） */
.or-wq > .or-wrap .or-horses { font-size: 0.9em; }
.or-wq > .or-wrap .or-horses tbody tr { height: var(--or-row-h, auto); }

/* 2026-11-09 用家要求：
   大票房內容字細一成；分段賠率、獨贏走勢反正都要捲動，唔再密排（蓋過上面 .or-big 嘅收窄），行距加大好睇啲 */
.or-bp { zoom: 0.9; } /* 入面好多 px 字號，用 zoom 一次過細一成；oddsroom.js bpFit 嘅 BP_ZOOM 要同步 */
#or-body .or-seg td, #or-body .or-seg tbody th { padding-top: 3px; padding-bottom: 3px; line-height: 1.35; }
#or-body .or-wt td, #or-body .or-wt tbody th, #or-body .or-wt-allup td, #or-body .or-wt-allup tbody th,
#or-body .or-wt-rank td, #or-body .or-wt-rank tbody th, #or-body .or-wt-card td, #or-body .or-wt-card tbody th { padding-top: 3px; padding-bottom: 3px; line-height: 1.35; }
/* 騎練出馬表主表跟上面統一字號（之前固定 16.5px） */
main#jtcard .jt-table { font-size: var(--fs); }

/* ---- 會員：頁頂掣、被踢提示、會員頁 ---- */
.topbar .mlink { margin-left: auto; display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.topbar .mlink a { color: #fff; padding: 3px 10px; border-radius: 5px; font-size: 14px; background: rgba(255,255,255,.12); }
.topbar .mlink a:hover { background: rgba(255,255,255,.25); }
.topbar .mlink i { font-style: normal; font-size: 12px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #f3c74c; color: #4a3600; }
.kick-note { position: relative; z-index: 9; background: #fff1c2; color: #5c4300; border-bottom: 1px solid #e6c766; padding: 8px 16px; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.kick-note a { font-weight: 700; }
.kick-note button { margin-left: auto; border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; }
.ad-page.ad-wide { max-width: 1280px; }
.ad-mtable td, .ad-mtable th { text-align: left; vertical-align: middle; }
.ad-mtable td.ok { color: #1d6e3a; }
.ad-mtable td.bad { color: #b42318; }
.ad-num { width: 4em; }
.ad-date { width: 9.5em; }
.ad-note { width: 12em; margin: 0 4px; }
.ad-pay-act { white-space: nowrap; }
.ad-pay-act .tool { margin-left: 4px; }
.ad-ua { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mb-proofs img, .ad-proofs img { height: 48px; max-width: 80px; object-fit: cover; border: 1px solid var(--line); border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.ad-proofs { display: inline-flex; gap: 4px; }
/* 頁頂會員掣：同藍／綠色頂欄分得開 —— 登入白底、註冊金色、已登入白底用戶名 */
.topbar .mlink a { background: #fff; color: #005094; font-weight: 600; border: 1px solid #fff; padding: 3px 12px; }
.topbar .mlink a:hover { background: #e8f0fa; color: #003a6c; }
.topbar.zone-race .mlink a { color: #1d5c3a; }
.topbar.zone-race .mlink a:hover { background: #e9f5ee; }
.topbar .mlink a[href*="v=register"] { background: #f3c74c; border-color: #f3c74c; color: #4a3600; }
.topbar .mlink a[href*="v=register"]:hover { background: #ffd862; color: #3a2a00; }

/* 試閘頁月曆：有試閘嘅日子啡金底色 */
.tri-pick { position: relative; }
.tri-pick > summary { list-style: none; cursor: pointer; }
.tri-pick > summary::-webkit-details-marker { display: none; }
.tri-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; width: 260px; padding: 8px; background: #fff; border: 1px solid #cfdbe8; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,40,80,.15); font-size: 14px; }
.tri-pop .mc-head { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.tri-pop .mc-head b { color: #0b3d6b; font-size: 14px; min-width: 84px; text-align: center; }
.tri-pop .mc-head button { border: 1px solid #cfdbe8; background: #fff; border-radius: 4px; width: 26px; height: 24px; cursor: pointer; color: #0b3d6b; font-size: 14px; }
.tri-pop .mc-head button:disabled { color: #c5ced8; cursor: default; }
.tri-pop .mc-head select { margin-left: auto; font-size: 13px; padding: 2px; border: 1px solid #cfdbe8; border-radius: 4px; }
.tri-pop .mc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tri-pop .mc-grid .wk { font-size: 12px; color: #8a99ab; padding: 2px 0; }
.tri-pop .mc-grid .cd { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 5px; font-size: 13px; color: #b3bdc9; }
.tri-pop .mc-grid a.cd.tr { background: #b8741a; color: #fff; font-weight: 700; text-decoration: none; }
.tri-pop .mc-grid a.cd.tr:hover { filter: brightness(1.15); }
.tri-pop .mc-grid a.cd.on { outline: 2px solid #005094; outline-offset: 1px; }
.tri-cal-foot { margin-top: 6px; font-size: 12px; color: #6b7d92; text-align: center; }
.tri-pick > summary { padding: 3px 10px; border: 1px solid #b8c4d2; border-radius: 4px; background: #fff; color: #0b3d6b; font-weight: 600; }
.tri-pick[open] > summary { background: #eef3f9; }
.topbar .mlink a.ml-admin { background: #b42318; border-color: #b42318; color: #fff; }
.topbar .mlink a.ml-admin:hover { background: #d03a2e; color: #fff; }

/* ---- 會員頁（member.html）：登入／註冊用置中細卡，我的帳戶用名牌 ＋ 分格 ---- */
.mb-page { --mb-blue: #005094; --mb-ink: #1c2b3a; --mb-soft: #f4f7fb; --mb-line: #dde4ee; margin: 0 auto; padding: 28px 16px 40px; color: var(--mb-ink); font-size: 15px; }
.mb-page h1, .mb-page h2, .mb-page h3 { color: var(--mb-ink); }
.mb-auth { max-width: 440px; }
.mb-acct { max-width: 940px; display: flex; flex-direction: column; gap: 14px; }
.mb-authcard, .mb-card, .mb-hero { background: #fff; border: 1px solid var(--mb-line); border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 40, 80, .06); }
.mb-authcard { padding: 26px 30px 24px; }
.mb-authhead { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.mb-authhead div { display: flex; flex-direction: column; line-height: 1.25; }
.mb-authhead b { font-size: 15px; color: var(--mb-blue); }
.mb-authhead span:not(.mb-logo) { font-size: 12px; color: #6b7d92; letter-spacing: .2em; }
.mb-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--mb-blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.mb-authcard h1 { font-size: 22px; margin: 0 0 4px; }
.mb-sub { margin: 0 0 14px; color: #5b6b7d; font-size: 14px; }
.mb-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.mb-field { display: flex; flex-direction: column; gap: 5px; }
.mb-field > span { font-size: 14px; font-weight: 600; color: #34475c; }
.mb-field > small { font-size: 12px; color: #7c8b9c; }
.mb-input { padding: 9px 12px; font: inherit; border: 1px solid #c9d3e0; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.mb-input:focus { outline: none; border-color: var(--mb-blue); box-shadow: 0 0 0 3px rgba(0, 80, 148, .15); }
.mb-input[type=file] { padding: 7px 10px; background: var(--mb-soft); }
.mb-forgot { align-self: flex-end; margin-top: -8px; font-size: 13px; }
.mb-primary { display: inline-block; padding: 10px 22px; border: 0; border-radius: 8px; background: var(--mb-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.mb-primary:hover { background: #003f76; color: #fff; }
.mb-primary:disabled { background: #8aa6c2; cursor: default; }
.mb-auth .mb-primary { width: 100%; }
.mb-ghost { padding: 7px 18px; border: 1px solid #c9d3e0; border-radius: 8px; background: #fff; color: #34475c; font: inherit; cursor: pointer; }
.mb-ghost:hover { background: var(--mb-soft); }
.mb-msg { margin: 0; font-size: 14px; }
.mb-msg:empty { display: none; }
.mb-msg.ok { color: #1d6e3a; }
.mb-msg.bad, .mb-warn { color: #b42318; }
.mb-banner { padding: 8px 12px; border-radius: 8px; background: #fdecea; margin-bottom: 4px; }
.mb-switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: #5b6b7d; display: flex; justify-content: center; gap: 6px; }
.mb-switch a { font-weight: 600; }
.mb-note { margin-top: 18px; padding: 10px 12px; border-radius: 8px; background: var(--mb-soft); color: #5b6b7d; font-size: 13px; line-height: 1.6; }
.mb-done { width: 56px; height: 56px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: #e8f0fa; color: var(--mb-blue); }
.mb-done.ok { background: #e3f4e9; color: #1d6e3a; }
.mb-auth .mb-done + .mb-msg { text-align: center; margin-bottom: 14px; }
.mb-resend { margin: 0; font-size: 14px; }

/* 我的帳戶 */
.mb-hero { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: linear-gradient(120deg, #005094, #1a6db5); border: 0; color: #fff; }
.mb-hero .mb-ghost { margin-left: auto; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.mb-hero .mb-ghost:hover { background: rgba(255,255,255,.25); }
.mb-avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; background: #fff; color: var(--mb-blue); }
.mb-avatar.t1 { background: #f3c74c; color: #4a3600; }
.mb-avatar.t2 { background: #e2d4ff; color: #4b2a8f; }
.mb-who h1 { margin: 0; font-size: 22px; color: #fff; display: flex; align-items: center; gap: 10px; }
.mb-who p { margin: 4px 0 0; color: #d6e5f5; font-size: 14px; }
.mb-who .mb-warn { color: #ffd9d4; }
.mb-dot { margin: 0 6px; opacity: .6; }
.mb-badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; }
.mb-badge.t1 { background: #f3c74c; color: #4a3600; }
.mb-badge.t2 { background: #e2d4ff; color: #4b2a8f; }
.mb-card { padding: 18px 22px 20px; }
.mb-card h2 { margin: 0 0 12px; font-size: 17px; padding-bottom: 10px; border-bottom: 1px solid var(--mb-line); }
.mb-h3 { margin: 18px 0 8px; font-size: 15px; }
.mb-facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mb-facts dl > div { padding: 10px 12px; background: var(--mb-soft); border-radius: 8px; min-width: 0; }
.mb-facts dt { font-size: 12px; color: #6b7d92; margin-bottom: 3px; }
.mb-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mb-facts dd small { display: block; font-weight: 400; font-size: 12px; color: #6b7d92; }
.mb-info-banner { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: #e3f4e9; color: #1d6e3a; font-size: 14px; }
.mb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mb-tile { border: 1px solid var(--mb-line); border-radius: 10px; padding: 14px 16px; border-top: 4px solid #f3c74c; }
.mb-tile.t2 { border-top-color: #8b6ad6; }
.mb-tile h3 { margin: 0; font-size: 16px; }
.mb-desc { margin: 2px 0 8px; font-size: 13px; color: #6b7d92; }
.mb-tile ul { list-style: none; margin: 0; padding: 0; }
.mb-tile li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px dashed var(--mb-line); font-size: 14px; }
.mb-tile li b { color: var(--mb-blue); }
.mb-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mb-methods > div { padding: 10px 12px; background: var(--mb-soft); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mb-methods span { color: #5b6b7d; }
.mb-form.mb-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; align-items: start; margin-top: 4px; }
.mb-form.mb-pay .mb-file, .mb-form.mb-pay .mb-msg { grid-column: 1 / -1; }
.mb-form.mb-pay .mb-primary { grid-column: 1 / -1; justify-self: start; }
.mb-scroll { overflow-x: auto; }
.mb-plist { border-collapse: collapse; width: 100%; font-size: 14px; }
.mb-plist th { text-align: left; font-size: 12px; font-weight: 600; color: #6b7d92; padding: 6px 8px; border-bottom: 1px solid var(--mb-line); white-space: nowrap; }
.mb-plist td { padding: 8px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.mb-st { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mb-st.st0 { background: #fff1c2; color: #7a5600; }
.mb-st.st1 { background: #dcf3e3; color: #1d6e3a; }
.mb-st.st2 { background: #fde2e2; color: #b42318; }
.mb-proofs img, .ad-proofs img { height: 44px; max-width: 70px; object-fit: cover; border: 1px solid var(--mb-line, #dde4ee); border-radius: 4px; margin-right: 4px; vertical-align: middle; }
.mb-proofs .mb-add { font-size: 12px; padding: 3px 9px; border: 1px solid #c9d3e0; border-radius: 6px; background: #fff; cursor: pointer; }
.mb-proofs .mb-warn { display: block; font-size: 12px; }
.mb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mb-two .mb-form { margin-top: 0; }
.mb-two .mb-primary { align-self: flex-start; }

/* ---- 我的評述 ---- */
.nt-btn { margin: 0 0 0 2px; padding: 0 3px; border: 1px solid transparent; border-radius: 4px; background: none; color: #9aa7b6; font-size: 0.95em; line-height: 1.3; cursor: pointer; }
.nt-btn:hover { border-color: #c9d3e0; background: #fff; color: #00539f; }
.nt-btn.has { background: #fff3c4; border-color: #e3c25a; color: #8a5a00; }
.nt-shade { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh; background: rgba(15, 30, 50, .35); }
.nt-dialog { --mb-blue: #005094; --mb-soft: #f4f7fb; width: 460px; max-width: calc(100vw - 32px); padding: 18px 20px 16px; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.nt-dialog h3 { margin: 0 0 4px; font-size: 17px; color: #00539f; }
.nt-dialog .muted { margin: 0 0 10px; }
.nt-dialog .nt-input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #c9d3e0; border-radius: 7px; font: inherit; font-size: 16px; }
.nt-dialog .nt-input:focus { outline: 2px solid #8fb6e0; border-color: #00539f; }
.nt-hint { margin: 6px 0 12px; font-size: 12px; color: #6b7a8c; }
.nt-btns { display: flex; align-items: center; gap: 8px; }
.nt-btns .mb-primary { padding: 7px 20px; }
.nt-state { font-size: 13px; color: #6b7a8c; }
.nt-state.ok { color: #0b6e4f; }
.nt-state.bad { color: #c0392b; }
.result-table td.name .nt-btn { float: right; }
/* 評述行：跟喺嗰匹馬 / 嗰仗下面，淡黃底，撳一下改 */
table.form tr.note-row td { padding: 3px 10px 5px 14px; border-top: 0; text-align: left; font-size: 0.92em; color: #5a4200; cursor: pointer; }
table.form tr.note-row td { background: #fffbea; }
table.form tr.note-row:hover td { background: #fff3c4; }
.nt-lab { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px; background: #e9c46a; color: #4a3500; font-size: 0.85em; font-weight: 700; }
.nt-sub { margin-right: 8px; color: #8a7340; font-size: 0.9em; }
.nt-text { white-space: normal; }

/* ==== 新首頁（試做 index_new.php / home_new.js）==== */
.hn-body { background: #eef1ee; }
main.hn { max-width: 1280px; margin: 0 auto; padding: 0 16px 28px; display: flex; flex-direction: column; gap: 16px; } /* 只限首頁 <main class="hn">：騎練出馬表馬名都用 .hn（a.hn），唔好撞（2026-11-10） */
/* 橫幅：草地綠漸層，背景跑道線條；夜馬換深藍 */
.hn-hero { position: relative; margin: 14px 0 0; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 140% at 85% 0%, #2f8a57 0%, #1d5c3a 45%, #123d27 100%); box-shadow: 0 10px 30px rgba(18, 61, 39, .25); }
.hn-hero.night { background: radial-gradient(120% 140% at 85% 0%, #2c4f86 0%, #172f57 50%, #0c1a33 100%); box-shadow: 0 10px 30px rgba(12, 26, 51, .3); }
.hn-art { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; pointer-events: none; }
.hn-hero-in { position: relative; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: center; padding: 30px 34px; }
.hn-next { display: flex; gap: 26px; align-items: center; }
.hn-date { flex: none; width: 128px; padding: 12px 0 14px; border-radius: 14px; background: #fff; color: #1d5c3a; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.hn-date.v-H { color: #1f5fa8; }
.hn-date .m { display: block; font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.hn-date b { display: block; font: 700 58px/1 Verdana, sans-serif; margin: 4px 0 2px; }
.hn-date .w { display: block; font-size: 14px; color: #667085; }
.hn-what { min-width: 0; }
.hn-lab { font-size: 13px; letter-spacing: 2px; color: #ffd76a; font-weight: 700; }
.hn-what h1 { display: flex; align-items: center; gap: 14px; margin: 2px 0 4px; font-size: 38px; line-height: 1.2; letter-spacing: 2px; }
.hn-dn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 17px; letter-spacing: 0; font-weight: 600; }
.hn-sub { font-size: 16px; color: rgba(255, 255, 255, .85); }
.hn-count { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.hn-cd-lab { margin-right: 4px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hn-cd { display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 13px; color: rgba(255, 255, 255, .8); }
.hn-cd b { font: 700 22px/1 Verdana, sans-serif; color: #fff; }
.hn-started { display: inline-block; white-space: nowrap; color: #fff; /* 原本叫 hn-live，同網內人數紅點撞名被壓成細圓點（2026-11-14） */  padding: 4px 12px; border-radius: 8px; background: #c62828; font-weight: 700; }
.hn-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hn-btn { padding: 9px 20px; border-radius: 10px; background: #ffd76a; color: #3d2a00; font-weight: 700; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.hn-btn:hover { background: #ffe597; color: #3d2a00; }
.hn-btn + .hn-btn { background: rgba(255, 255, 255, .92); color: #123d27; }
.hn-hero.night .hn-btn + .hn-btn { color: #172f57; }
.hn-btn + .hn-btn:hover { background: #fff; }
.hn-btn.off { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); box-shadow: none; cursor: default; }
.hn-hero-side { display: flex; flex-direction: column; gap: 12px; }
.hn-search .search { position: relative; }
.hn-search input { width: 100%; padding: 13px 16px; border: 0; border-radius: 12px; font-size: 15px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.hn-search .search-results { z-index: 30; color: var(--text); }
.hn-adv { display: inline-block; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.hn-adv:hover { color: #fff; }
.hn-later { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; border: 1px solid rgba(255, 255, 255, .18); }
a.hn-later:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hn-later .hn-lab { letter-spacing: 1px; }
.hn-tag { margin-left: auto; padding: 1px 8px; border-radius: 99px; background: #ffd76a; color: #3d2a00; font-size: 12px; font-weight: 700; }
/* 日 / 夜 / 黃昏圖示 */
.hn-ico { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }
.hn-ico.sun { background: #f6b100; box-shadow: 0 0 0 3px rgba(246, 177, 0, .25); }
.hn-ico.moon { background: transparent; box-shadow: inset -4px 3px 0 0 #f3d46b; transform: rotate(-20deg); }
.hn-ico.dusk { background: linear-gradient(180deg, #f6b100 50%, #e07b39 50%); }
/* 中間：月曆 ＋ 右欄 */
.hn-mid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.hn-cal, .hn-card { background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(20, 40, 30, .07); }
.hn-cal { padding: 18px 20px 14px; }
.hn-cal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.hn-cal-head h2 { margin: 0; font-size: 20px; color: #123d27; letter-spacing: 1px; }
.hn-season { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hn-season .bar { display: inline-block; width: 120px; height: 7px; border-radius: 99px; background: #e3ebe5; overflow: hidden; }
.hn-season .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f8a57, #1d5c3a); }
.hn-cal-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hn-cal-range { min-width: 110px; text-align: center; font-weight: 700; color: #123d27; }
.hn-nav { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #d5ded8; border-radius: 8px; background: #fff; color: #1d5c3a; font-size: 18px; line-height: 1; cursor: pointer; }
.hn-nav:hover { background: #eef6f1; }
.hn-today { font-size: 13px; }
.hn-months { display: block; }
.hn-mh { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 6px; }
.hn-mh b { font-size: 17px; color: #123d27; }
.hn-mh span { font-size: 12px; color: var(--muted); }
.hn-wk, .hn-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hn-wk span { padding: 3px 0; text-align: center; font-size: 12px; color: var(--muted); }
.hn-wk span.we { color: #c0392b; }
.hn-day { position: relative; min-height: 70px; padding: 4px 5px; border-radius: 8px; background: #f6f8f7; color: var(--text); font-size: 12px; }
.hn-day.blank { background: none; }
.hn-day .n { font: 600 12px/1.2 Verdana, sans-serif; color: #8a96a3; }
.hn-day.today { box-shadow: inset 0 0 0 2px #c62828; }
.hn-day.today .n { color: #c62828; }
.hn-day.race .n { color: inherit; }
.hn-day.race { color: #fff; }
.hn-day.v-S { background: #2f8a57; }
.hn-day.v-H { background: #2f6fb8; }
.hn-day.night.v-S { background: #1d5c3a; }
.hn-day.night.v-H { background: #1d4c86; }
.hn-day.past { opacity: .5; }
.hn-day.past:hover { opacity: .85; }
a.hn-day.race:hover { color: #fff; filter: brightness(1.12); }
.hn-day.next { box-shadow: 0 0 0 3px #ffd76a, 0 4px 12px rgba(0, 0, 0, .2); z-index: 1; }
.hn-chip { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 15px; font-weight: 700; }
.hn-meta { display: flex; gap: 4px; align-items: center; margin-top: 1px; font-size: 11px; color: rgba(255, 255, 255, .85); }
.hn-meta i { font-style: normal; padding: 0 5px; border-radius: 4px; background: #ffd76a; color: #3d2a00; font-weight: 700; }
.hn-os { position: absolute; right: 4px; top: 4px; padding: 0 4px; border-radius: 4px; background: #e07b39; color: #fff; font-size: 10px; line-height: 15px; }
.hn-legend .hn-os { position: static; }
.hn-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0ee; font-size: 12px; color: #4b5563; }
.hn-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.hn-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.hn-legend .sw.v-S { background: #2f8a57; }
.hn-legend .sw.v-H { background: #2f6fb8; }
.hn-legend .sw.next { background: #fff; box-shadow: inset 0 0 0 3px #ffd76a; }
.hn-legend .hn-ico.moon { box-shadow: inset -4px 3px 0 0 #1d4c86; }
/* 右欄卡 */
.hn-side { display: flex; flex-direction: column; gap: 16px; }
.hn-card { padding: 16px 18px; }
.hn-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; color: #123d27; }
.hn-card h3 .count { font-size: 12px; font-weight: 400; color: var(--muted); }
.hn-more { margin-left: auto; font-size: 13px; font-weight: 400; }
.hn-last { border-top: 4px solid #1d5c3a; }
.hn-last-when { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
.hn-stat { display: grid; grid-template-columns: 72px 1fr auto; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px dashed #e3e8e5; }
.hn-stat .lab { font-size: 13px; color: var(--muted); }
.hn-stat .val { font-size: 16px; font-weight: 700; }
.hn-stat .sub { font-size: 12px; color: var(--muted); }
.hn-list { margin: 0; padding: 0; list-style: none; }
.hn-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px dashed #e3e8e5; font-size: 14px; }
.hn-empty { margin: 0; color: var(--muted); font-size: 14px; }
/* 下面四格 */
.hn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.hn-bico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #e7f2eb; font-size: 14px; }
.hn-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.hn-tbl th { padding: 4px 6px; font-size: 12px; font-weight: 400; color: var(--muted); text-align: center; }
.hn-tbl td { padding: 5px 6px; border-top: 1px solid #eef1ef; text-align: center; }
.hn-tbl .l { text-align: left; }
.hn-tbl .up { color: #c62828; font-weight: 700; }
.hn-move { color: #1f5fa8; }
.hn-notes { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.hn-notes li + li { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e3e8e5; }
.hn-notes p { margin: 4px 0 0; color: #4b5563; }
.hn-chip small { margin-left: 2px; font-size: 12px; font-weight: 400; opacity: .85; }
.hn-chip, .hn-meta { white-space: nowrap; overflow: hidden; } /* 窄啲嘅畫面都唔好斷行 */

/* ==== 檔位統計頁（draw.html / draw.js）==== */
.dw-page { max-width: 1280px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.dw-head h1 { margin: 0 0 2px; font-size: 22px; color: #0b3d6b; }
.dw-head > .muted { margin: 0 0 12px; font-size: 13px; }
.dw-filters { display: flex; flex-direction: column; gap: 8px; }
.dw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dw-lab { width: 44px; font-size: 13px; color: var(--muted); }
.dw-chip { padding: 4px 12px; border: 1px solid #c9d3e0; border-radius: 99px; background: #fff; color: #34475c; font-size: 13px; cursor: pointer; }
.dw-chip:hover { background: #eef3f9; }
.dw-chip.on { border-color: #005094; background: #005094; color: #fff; font-weight: 700; }
.dw-range { margin-left: 12px; font-size: 13px; color: var(--muted); }
.dw-range select { padding: 3px 6px; border: 1px solid #c9d3e0; border-radius: 6px; font-size: 13px; }
.dw-wrap { overflow-x: auto; }
.dw-table, .dw-dt { width: 100%; border-collapse: separate; border-spacing: 3px; font: 13px Verdana, "Microsoft JhengHei", sans-serif; }
.dw-table th, .dw-dt th { padding: 4px 6px; font-weight: 600; color: #34475c; white-space: nowrap; }
.dw-table thead th, .dw-dt thead th { color: var(--muted); font-weight: 400; }
.dw-dh { min-width: 46px; }
.dw-table tbody tr { cursor: pointer; }
.dw-table tbody tr:hover th { color: #005094; }
.dw-table tbody tr.on th.dw-dist { background: #005094; color: #fff; border-radius: 6px; }
.dw-dist { text-align: left; }
.dw-races { color: var(--muted); text-align: center; }
/* 深淺五級（藍，單一色相）；樣本少 = 灰 */
.dw-cell { height: 30px; border-radius: 6px; text-align: center; color: #1c2b3a; }
.dw-cell.l0 { background: #eef3f9; }
.dw-cell.l1 { background: #d3e2f2; }
.dw-cell.l2 { background: #a9c7e6; }
.dw-cell.l3 { background: #5f97cf; color: #fff; }
.dw-cell.l4 { background: #1f5fa8; color: #fff; font-weight: 700; }
.dw-cell.low { background: #f3f4f6; color: #9aa3ad; }
.dw-cell.none { background: none; }
.dw-cell.best { box-shadow: inset 0 0 0 2px #c62828; }
.dw-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.dw-legend .dw-cell { display: inline-block; width: 22px; height: 14px; border-radius: 3px; }
.dw-legend .dw-cell.low { margin-left: 14px; }
.dw-dt td { padding: 4px 6px; border-radius: 4px; background: #f7f9fb; text-align: center; }
.dw-dt tr.n td { color: var(--muted); }
.dw-dt tr.rate td { background: #eef3f9; }
.dw-dt tr.rate.cur td { background: #d3e2f2; font-weight: 600; }
.dw-dt tr.rate th { text-align: left; }
.dw-dt td.best { background: #c62828 !important; color: #fff; font-weight: 700; }
.dw-dt td.low { color: #9aa3ad; }
.dw-dt tbody th { text-align: left; }

/* 首頁：上次同跑道頭馬 */
.hn-same h3 { flex-wrap: wrap; }
.hn-same h3 .count { margin-left: 4px; }
.hn-st-sum { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 2px 0 12px; padding: 10px 14px; border-radius: 10px; background: #f4f8f5; }
.hn-st-group { display: flex; align-items: center; gap: 6px; }
.hn-st-lab { margin-right: 2px; font-size: 13px; color: var(--muted); }
.hn-st-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid #d5ded8; font-size: 13px; color: #34475c; }
.hn-st-chip b { font: 700 15px Verdana, sans-serif; color: #123d27; }
.hn-st-chip.top { border-color: #1d5c3a; background: #1d5c3a; color: #fff; }
.hn-st-chip.top b { color: #ffd76a; }
.hn-st-tbl td, .hn-st-tbl th { padding: 6px 8px; }
.hn-st-horse { font-weight: 700; }
.hn-st-draw { display: inline-block; min-width: 24px; padding: 1px 6px; border-radius: 6px; background: #eef1ef; font: 700 13px Verdana, sans-serif; }
.hn-st-draw.in { background: #d9efe1; color: #1d5c3a; }
.hn-st-draw.out { background: #fbe7d9; color: #a04b12; }
.hn-st-style { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.hn-st-style.s-前 { background: #1d5c3a; color: #fff; }
.hn-st-style.s-中 { background: #d9efe1; color: #1d5c3a; }
.hn-st-style.s-後 { background: #fbe7d9; color: #a04b12; }
.hn-st-odds { font-family: Verdana, sans-serif; }
.hn-st-odds.fav { color: #c62828; font-weight: 700; }
/* 賽馬月曆縮細（用家 2026-11-10）：月曆欄窄啲、格仔矮啲、字細啲；日 / 夜只用圖示（圖例有講） */
.hn-mid { grid-template-columns: 600px 1fr; }
.hn-cal { padding: 14px 16px 10px; }
.hn-cal-head { gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.hn-cal-head h2 { font-size: 17px; }
.hn-season .bar { width: 80px; }
.hn-nav { min-width: 26px; height: 26px; font-size: 15px; }
.hn-cal-range { min-width: 92px; font-size: 14px; }
.hn-mh { display: none; }
.hn-wk, .hn-days { gap: 3px; }
.hn-wk span { padding: 1px 0; font-size: 11px; }
.hn-day { min-height: 48px; padding: 3px 4px; border-radius: 6px; }
.hn-day .n { font-size: 11px; }
.hn-chip { gap: 3px; margin-top: 1px; font-size: 13px; }
.hn-chip small { display: none; }
.hn-chip .hn-ico { width: 11px; height: 11px; }
.hn-meta { font-size: 10px; }
.hn-os { right: 3px; top: 3px; font-size: 9px; line-height: 13px; }
.hn-legend { gap: 4px 12px; margin-top: 8px; padding-top: 8px; font-size: 11px; }
/* 上次同跑道頭馬：檔位、跑法跟排位表格式（2026-11-10） */
.hn-st-tbl td.hn-st-draw { color: #1f5fbf; font: 600 1.2em Verdana, sans-serif; }
.hn-st-run { margin-left: 8px; color: var(--muted); font-family: Verdana, sans-serif; }
.hn-st-tbl td.hn-st-draw { min-width: 0; padding: 6px 8px; border-radius: 0; background: none; }
/* 首頁中間（2026-11-10）：上次同跑道頭馬佔三份、賽馬月曆佔一份 */
.hn-mid { grid-template-columns: 3fr 1fr; }
.hn-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hn-cal { padding: 12px 12px 8px; }
.hn-cal-head { gap: 6px 8px; }
.hn-cal-head h2 { width: 100%; }
.hn-season { width: 100%; font-size: 11px; }
.hn-season .bar { flex: 1; }
.hn-cal-nav { margin-left: 0; width: 100%; justify-content: space-between; }
.hn-wk, .hn-days { gap: 2px; }
.hn-day { min-height: 40px; padding: 2px 3px; }
.hn-chip { font-size: 12px; }
.hn-meta i { padding: 0 3px; font-size: 9px; }
.hn-os { right: 2px; top: 2px; padding: 0 2px; font-size: 8px; line-height: 11px; }
.hn-legend { font-size: 10px; gap: 3px 8px; }

/* 配磅表本組提示：曾操騎師 */
.en-riders { line-height: 1.7; }
.en-riders b { font-weight: 600; }
.en-riders .tw-rider { cursor: help; }
.tw-panel h2 .hp-toggle { font-weight: 400; }

/* 跑道起步點圖（assets/trackmap.js，D 款鳥瞰草地，2026-11-10） */
.hk-trackmap { display: block; width: 100%; height: auto; border-radius: 8px; }
/* 首頁上次同跑道：小結（左，直排）＋ 起步點圖（右） */
.hn-st-top { display: flex; gap: 14px; align-items: stretch; margin: 2px 0 12px; }
.hn-st-top .hn-st-sum { flex: 1; flex-direction: column; justify-content: center; margin: 0; }
.hn-st-map { flex: 0 0 340px; }
/* 排位表場頭：標題同最佳時間表之間放跑道起步點圖（只標今場路程） */
/* 標題最少 330px（班次路程、獎金唔好被截），圖最闊 290px，唔夠位就縮細 */
.rc-head > .hp-head { grid-template-columns: auto minmax(330px, 1fr) minmax(0, 290px) 400px; column-gap: 14px; }
.rc-trackmap { width: 100%; max-width: 290px; align-self: center; justify-self: center; }
@media (max-width: 1279px) {
  .rc-head > .hp-head { grid-template-columns: auto minmax(0, 1fr) 200px; }
  .rc-trackmap { width: 200px; }
  .rc-head .rc-times { grid-column: 2 / 4; }
}
/* 首頁右欄：賽馬月曆＋馬圈新聞（馬會賽馬新聞，2026-11-10） */
.hn-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hn-news h3 { display: flex; align-items: center; }
.hn-news h3 .hn-more { margin-left: auto; }
.hn-news-list { list-style: none; margin: 0; padding: 0; }
.hn-news-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0f3; }
.hn-news-list li:last-child { border-bottom: 0; }
.hn-news-list a { color: #1c2b3a; line-height: 1.45; }
.hn-news-list a:hover { color: #005094; text-decoration: underline; }
.hn-news-at { grid-column: 2; font-size: 12px; color: var(--muted); margin-top: 2px; }
.hn-news-tag { align-self: start; margin-top: 2px; padding: 1px 6px; border-radius: 4px; font-size: 12px; background: #e3f0e8; color: #1d5c3a; white-space: nowrap; }
.hn-news-tag.n { background: #fdecd9; color: #a04b12; }
.hn-news-tag.u { background: #e8f0fa; color: #1f4e79; }
.hn-news-tag.o { background: #efe8f7; color: #5b3a8a; }
.hn-news-src { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
/* 馬圈新聞唔好撐長右欄：右欄高度跟左邊（上次同跑道），新聞格填滿餘下位，多咗就格內捲動（最少 260px） */
.hn-mid { align-items: stretch; }
.hn-side .hn-news { flex: 1 1 0; min-height: 260px; display: flex; flex-direction: column; }
.hn-news .hn-news-list { flex: 1 1 0; min-height: 0; overflow-y: auto; padding-right: 4px; }
/* 馬圈新聞一條一行（標籤｜標題，太長截斷、滑鼠停留見全題｜日期），右欄位唔多都放到六七條 */
.hn-news-list li { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 6px 0; }
.hn-news-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-news-at { grid-column: auto; margin-top: 0; }
.hn-news-tag { margin-top: 0; }
/* 首頁賽事備忘（馬會，2026-11-10） */
.hn-rm h3 { flex-wrap: wrap; }
.hn-rm h3 .count { margin-left: 4px; }
.hn-rm-at { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.hn-rm-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid #edf0f3; align-items: baseline; }
.hn-rm-lab { font-size: 13px; color: var(--muted); }
.hn-rm-val { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.hn-rm-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 10px; border-radius: 99px; border: 1px solid #d5ded8; background: #fff; font-size: 13px; }
.hn-rm-chip b { color: #123d27; }
.hn-rm-chip small { color: #a04b12; margin-left: 2px; }
.hn-rm-chip.jp { border-color: #e8b98f; background: #fff7ef; }
.hn-rm-chg { list-style: none; margin: 0; padding: 0; width: 100%; }
.hn-rm-chg li { padding: 2px 0; }
.hn-rm-chg li a { font-weight: 700; }
.hn-rm-chg small { color: var(--muted); margin-left: 4px; }
.hn-rm-jk { font-size: 13px; padding: 1px 8px; border-radius: 6px; background: #f1f3f5; }
.hn-rm-jk.now { background: #fdecd9; color: #a04b12; }
.hn-rm-alert { margin: 4px 0 6px; padding: 6px 10px; border-radius: 6px; background: #fdecec; color: #b3261e; font-weight: 700; }
/* 排位表場頭更易事項（馬會賽事備忘）：標題下面一行淺橙底 */
.rc-chg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; padding: 4px 10px; border-radius: 6px; background: #fff4e5; border-left: 3px solid #f0a400; font-size: 13px; color: #6b3b06; }
.rc-chg b { color: #a04b12; }
/* 賽事備忘：多寶卡（2026-11-10 改）＋ 停賽中 / 下次停賽 */
.hn-jp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; width: 100%; }
.hn-jp { padding: 7px 10px 6px; border-radius: 8px; border: 1px solid #dfe5ea; background: #f8fafb; }
.hn-jp-name { font-size: 13px; color: #34475c; font-weight: 700; display: flex; flex-direction: column; }
.hn-jp-name small { font-weight: 400; color: var(--muted); font-size: 11px; }
.hn-jp-est { font: 700 19px Verdana, sans-serif; color: #123d27; margin: 3px 0 1px; }
.hn-jp-pot { font-size: 12px; color: #9aa4ae; }
.hn-jp.on { border-color: #f0b27a; background: linear-gradient(180deg, #fff7ef, #ffffff); }
.hn-jp.on .hn-jp-est { color: #a04b12; }
.hn-jp.on .hn-jp-pot { color: #a04b12; font-weight: 700; }
.hn-rm-jkw { display: inline-flex; align-items: baseline; gap: 5px; margin-right: 6px; }
.hn-rm-jkw small { color: var(--muted); font-size: 12px; }
.hn-rm-jk { font-weight: 700; }
/* 首頁橫幅 C 款「馬場天際線」（2026-11-10）：上半天空、下半草地（58% 分界同 home_new.js heroArt 樓宇底線一致）；蓋過上面舊漸層 */
.hn-hero { background: linear-gradient(180deg, #4f9bd0 0%, #87c0e6 58%, #2f8a57 58%, #1d5c3a 100%); } /* 唔好 overflow:hidden，搜尋結果下拉要凸出橫幅 */
.hn-hero.night { background: linear-gradient(180deg, #07122a 0%, #142a52 58%, #1b4a33 58%, #0f2c1e 100%); }
/* 日馬淺藍天空：白字加陰影先睇得清 */
.hn-hero:not(.night) .hn-what, .hn-hero:not(.night) .hn-later { text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.hn-hero:not(.night) .hn-later { background: rgba(18, 61, 39, .35); }
/* 更易事項搬去出賽馬匹最底（2026-11-10）：表下面留返位 */
.form-panel > .rc-chg { margin: 8px 0 0; font-size: 14px; padding: 6px 12px; }
/* 按會員級別限季數（2026-11-11 試行）：鎖住提示 */
.lock-panel { padding: 22px 26px; }
.lock-panel p { margin: 6px 0 12px; color: var(--muted); }
.lock-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; background: #fff7e6; border: 1px solid #f3d9a4; color: #6b4a0a; font-size: 14px; }
.lock-link { margin-left: 8px; font-weight: 700; }
.or-lock { padding: 40px 20px; text-align: center; color: var(--muted); }
.or-lock b { display: block; margin-bottom: 6px; font-size: 17px; color: var(--text); }
/* 40分鐘走勢圖：大飛提示（2026-11-11）——走勢圖上面一行，紅色 = 圖上紅柱 */
.or-bigbet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 6px; padding: 5px 10px; border-radius: 6px; background: #fff1f3; border: 1px solid #fecdd3; font-size: 13px; }
.or-bigbet > b { color: #be123c; }
.or-bigbet > span > i { font-style: normal; font-weight: 700; color: #be123c; margin-right: 6px; }
.or-bigbet .bb-hit { margin-right: 10px; white-space: nowrap; }
.or-bigbet .muted { color: var(--muted); }
/* 走勢圖：馬名旁邊大飛次數（圈＋數字）、時段清單、睇緊某時段嘅提示（2026-11-11） */
.or-trend .t-name { position: relative; }
.bb-slot { margin-left: 4px; }
.bb-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; border: 1.5px solid #e11d48; background: #fff; color: #e11d48; font: 700 12px Verdana, sans-serif; cursor: pointer; vertical-align: 1px; }
.bb-count:hover { background: #e11d48; color: #fff; }
.bb-menu { position: absolute; z-index: 40; left: 0; top: 100%; min-width: 280px; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 8px; background: #fff; border: 1px solid #fecdd3; box-shadow: 0 8px 22px rgba(0,0,0,.15); font-size: 13px; }
.bb-menu-h { padding: 4px 6px 6px; color: var(--muted); font-size: 12px; }
.bb-menu-i { display: block; width: 100%; text-align: left; padding: 5px 8px; border: 0; border-radius: 6px; background: none; cursor: pointer; white-space: nowrap; }
.bb-menu-i:hover { background: #fff1f3; }
.bb-menu-i b { color: #be123c; margin-right: 4px; }
.bb-menu-i small { color: var(--muted); margin-left: 4px; }
.bb-window { display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 5px 10px; border-radius: 6px; background: #fff7e6; border: 1px solid #f3d9a4; font-size: 13px; }
.bb-window button { padding: 3px 10px; border-radius: 6px; border: 1px solid #c9a24a; background: #fff; cursor: pointer; }
/* 賠率區「外地」（2026-11-11，跟舊站 w_q_ccoddsxmlnew） */
.cc-wrap { display: grid; grid-template-columns: minmax(330px, 2fr) 3fr; gap: 16px; align-items: start; }
.cc-horse { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-horse th { background: #005094; color: #fff; padding: 6px 4px; font-weight: 600; }
.cc-horse td { padding: 3px 4px; text-align: center; border-bottom: 1px solid #e5eaf0; }
.cc-horse .l { text-align: left; }
.cc-w { font: 700 15px Verdana, sans-serif; }
.cc-e b, .cc-q b { display: block; font: 700 14px Verdana, sans-serif; }
.cc-e small, .cc-q small { display: block; font-size: 11px; color: #64748b; }
.cc-e.hi { background: #ffe4e6; } .cc-e.hi b { color: #be123c; }
.cc-e.na, .cc-q.na { color: #c3cad4; }
.cc-qbox { margin-bottom: 12px; }
.cc-qh { padding: 4px 10px; color: #fff; font-weight: 700; border-radius: 6px 6px 0 0; }
.cc-qh.q { background: #c71585; } .cc-qh.pq { background: #f59e0b; }
.cc-qt { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.cc-qt th { background: #e8f0fa; color: #1f4e79; padding: 2px; font-weight: 700; }
.cc-qt td { padding: 2px 1px; text-align: center; border: 1px solid #edf0f3; }
.cc-q.blank { background: #f8fafc; border-color: #f8fafc; }
.cc-q.w1 { background: #fef9c3; } .cc-q.w2 { background: #fed7aa; } .cc-q.w3 { background: #fecaca; }
/* 外地：用家 2026-11-11 改色——吃獨贏／位置 81 或以上藍色；連贏／位置Q 82–84 黃、85 或以上紅、其餘白 */
.cc-e.hi { background: #dbeafe; } .cc-e.hi b { color: #1d4ed8; }
.cc-q.w1 { background: #fef08a; } .cc-q.w2 { background: #fecaca; } .cc-q.w2 b { color: #b91c1c; } .cc-q.w3 { background: transparent; }
/* 外地：三欄並排一頁睇晒（馬匹表｜外地連贏｜外地位置Q），行距收窄（2026-11-11） */
.cc-wrap { grid-template-columns: minmax(300px, 0.9fr) 1.3fr 1.3fr; gap: 12px; }
.cc-qbox { margin-bottom: 0; }
.cc-horse td { padding: 2px 4px; }
.cc-qt td { padding: 1px; line-height: 1.15; }
.cc-e b, .cc-q b { font-size: 13px; }
.cc-e small, .cc-q small { font-size: 10.5px; }
/* 外地連贏／位置Q 用「連贏及位置Q」嘅表（rc-q-table）；82–84 黃、85 或以上紅（2026-11-11） */
.rc-q-table.cc-qtable td.q2.cc-w1 { background: #fef08a; }
.rc-q-table.cc-qtable td.q2.cc-w2 { background: #fecaca; }
.rc-q-table.cc-qtable td.q2.cc-w2 .n { color: #b91c1c; }
.rc-q-table.cc-qtable td.q2 .n { font-weight: 700; }
/* 外地連贏／位置Q 只出折扣：一行就夠，行高收返 */
.rc-q-table.cc-qtable td.q2 .n { display: block; line-height: 1.6; }
/* 外地：折扣改用直條（2026-11-11）——越大越高越深；格固定高度，直條由底向上 */
.cc-e, .cc-bcell { height: 30px; vertical-align: bottom; padding: 2px 0 !important; }
.cc-bar { display: inline-block; width: 10px; min-height: 4px; border-radius: 2px 2px 0 0; vertical-align: bottom; }
.cc-e.hi, .rc-q-table.cc-qtable td.q2 { background: transparent; }
.rc-q-table.cc-qtable td.cc-bcell { line-height: 0; }
/* 外地：色格（82–99 每格一級，高度同顏色同表入面直條一樣） */
.cc-scales { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 4px 0 0; }
.cc-scale { display: flex; align-items: flex-end; gap: 2px; font-size: 11px; color: var(--muted); }
.cc-scale-l { margin-right: 6px; align-self: center; font-size: 12px; color: var(--text); }
.cc-scale-c { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 18px; height: 40px; }
.cc-scale-c i { font-style: normal; margin-top: 2px; }
/* 外地直條分得明顯啲：闊啲、格高啲 */
.cc-bar { width: 14px; }
.cc-e, .cc-bcell { height: 32px; }
.cc-scale-c { width: 20px; height: 44px; }
/* 外地方案一（2026-11-11）：整格填色三級；81 或以下白格 */
.cc-horse td.cc-e, .rc-q-table.cc-qtable td.cc-bcell { height: 30px; }
.cc-horse td.cc-e.cc-l1, .rc-q-table.cc-qtable td.q2.cc-l1 { background: #fee2e2 !important; }
.cc-horse td.cc-e.cc-l2, .rc-q-table.cc-qtable td.q2.cc-l2 { background: #f87171 !important; }
.cc-horse td.cc-e.cc-l3, .rc-q-table.cc-qtable td.q2.cc-l3 { background: #991b1b !important; }
.cc-horse th:nth-child(4), .cc-horse th:nth-child(5) { width: 40px; }
/* 外地：數字落返去（2026-11-11）——格入面出折扣；深紅格白字 */
.cc-horse td.cc-e, .rc-q-table.cc-qtable td.cc-bcell { font: 700 13px Verdana, sans-serif; color: #334155; vertical-align: middle; line-height: 1.2; }
.rc-q-table.cc-qtable td.cc-bcell .n { display: inline; line-height: 1.2; }
.cc-horse td.cc-e.cc-l3, .rc-q-table.cc-qtable td.q2.cc-l3, .rc-q-table.cc-qtable td.q2.cc-l3 .n { color: #fff; }
.cc-horse td.cc-e.cc-l2, .rc-q-table.cc-qtable td.q2.cc-l2 .n { color: #450a0a; }
/* 分段賠率最底 CC Eat / CC Bet（舊站收費會員，2026-11-11）：三級紅同外地分頁一樣 */
.or-seg.cc-seg td.cc-l1 { background: #fee2e2; }
.or-seg.cc-seg td.cc-l2 { background: #f87171; color: #450a0a; }
.or-seg.cc-seg td.cc-l3 { background: #991b1b; color: #fff; }
.or-seg.cc-seg td.cc-y { background: #fef08a; }

/* ==== 使用教學（/guide.html，2026-11-12） ==== */
.guide { max-width: 1280px; margin: 0 auto; padding: 16px 16px 40px; }
.gd-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.gd-toc { position: sticky; top: 12px; background: #fff; border-radius: 12px; padding: 12px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 14px; }
.gd-toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text); }
.gd-toc a:hover { background: #f1f5f9; }
.gd-toc a.on { background: #005094; color: #fff; }
.gd-toc-g { margin-top: 8px; }
.gd-toc-g b { display: block; padding: 4px 8px; font-size: 12px; color: var(--muted); }
.gd-main { background: #fff; border-radius: 12px; padding: 20px 26px 26px; box-shadow: 0 1px 3px rgba(0,0,0,.06); min-width: 0; }
.gd-main h1 { margin: 2px 0 6px; font-size: 26px; }
.gd-lead { margin: 0 0 10px; color: #475569; font-size: 15px; }
.gd-crumb { font-size: 13px; color: var(--muted); }
.gd-go { display: inline-block; padding: 6px 14px; border-radius: 8px; background: #ffd76a; color: #3d2a00; font-weight: 700; }
.gd-cat h2 { font-size: 18px; margin: 18px 0 10px; }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gd-card { display: flex; flex-direction: column; gap: 4px; padding: 0 0 12px; border-radius: 10px; border: 1px solid #e2e8f0; overflow: hidden; color: var(--text); }
.gd-card:hover { border-color: #93c5fd; box-shadow: 0 4px 14px rgba(0,80,148,.12); }
.gd-card img { width: 100%; height: 150px; object-fit: cover; object-position: top left; border-bottom: 1px solid #e2e8f0; }
.gd-card b { padding: 6px 12px 0; font-size: 16px; }
.gd-card span { padding: 0 12px; font-size: 13px; color: #64748b; }
.gd-shot { position: relative; display: block; margin: 12px 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.gd-shot img { display: block; width: 100%; height: auto; }
.gd-mark { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #e11d48; color: #fff; font: 700 14px/26px Verdana, sans-serif; text-align: center; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 2px 6px rgba(0,0,0,.35); }
.gd-points { margin: 10px 0 0; padding-left: 0; list-style: none; counter-reset: gd; }
.gd-points li { position: relative; padding: 7px 0 7px 38px; border-bottom: 1px solid #f1f5f9; font-size: 15px; line-height: 1.6; counter-increment: gd; }
.gd-points li::before { content: counter(gd); position: absolute; left: 0; top: 7px; width: 26px; height: 26px; border-radius: 50%; background: #005094; color: #fff; font: 700 13px/26px Verdana, sans-serif; text-align: center; }
.gd-points.marked li::before { background: #e11d48; }
.gd-tips { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; background: #f0f7ff; border: 1px solid #cfe1f5; font-size: 15px; }
.gd-tips ul { margin: 6px 0 0; padding-left: 20px; }
.gd-nav { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 14px; border-top: 1px solid #e2e8f0; font-size: 14px; }

/* 首頁右欄：使用教學卡（賽馬月曆下面） */
.hn-guide h3 { display: flex; align-items: center; }
.hn-guide h3 .hn-more { margin-left: auto; }
.hn-guide-list { list-style: none; margin: 0; padding: 0; }
.hn-guide-list li { padding: 6px 0; border-bottom: 1px solid #edf0f3; }
.hn-guide-list li:last-child { border-bottom: 0; }
.hn-guide-list a { display: block; color: #1c2b3a; font-weight: 700; font-size: 14px; }
.hn-guide-list a:hover { color: #005094; }
.hn-guide-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
/* 使用教學：同一篇分小節（每節一張截圖），頂部列本篇內容（2026-11-12） */
.gd-sec { margin-top: 34px; padding-top: 22px; border-top: 2px solid #e2e8f0; scroll-margin-top: 70px; }
.gd-sec h2 { margin: 0 0 6px; font-size: 21px; color: #0f3d24; }
.gd-sec-toc { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 14px; padding: 10px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; }
.gd-sec-toc b { margin-right: 4px; color: #475569; }
.gd-sec-toc a { padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid #cbd5e1; color: #0f3d24; text-decoration: none; }
.gd-sec-toc a:hover { background: #ecfdf3; border-color: #86c79f; }
/* 使用教學目錄：唔同區唔同底色（賽事區綠、賠率區黃、資料區藍，跟頁頂兩區顏色；2026-11-12 用家要求） */
.gd-toc-g { margin-top: 8px; padding: 2px 4px 4px; border-radius: 8px; background: #f3f4f6; }
.gd-toc-g[data-cat="賽事區"] { background: #e8f5ec; }
.gd-toc-g[data-cat="賠率區"] { background: #fdf3dc; }
.gd-toc-g[data-cat="資料區"] { background: #e6f0fa; }
.gd-toc-g[data-cat="賽事區"] b { color: #1d6b3a; }
.gd-toc-g[data-cat="賠率區"] b { color: #9a6a00; }
.gd-toc-g[data-cat="資料區"] b { color: #005094; }
.gd-toc-g a:hover { background: rgba(255,255,255,.7); }
.gd-toc-g a.on { background: #005094; color: #fff; }
.gd-toc-g[data-cat="賽事區"] a.on { background: #1d6b3a; }
.gd-toc-g[data-cat="賠率區"] a.on { background: #b07800; }

/* ---- 網友心水挑戰賽（tipgame.html，2026-11-12）---- */
#tipgame { max-width: 1240px; margin: 0 auto; padding: 12px 16px 24px; }
.tg-h1 { font-size: 22px; margin: 6px 0 8px; }
.tg-h1 small { font-size: 15px; font-weight: 400; color: var(--muted); }
.tg-tabs { display: flex; gap: 6px; margin-bottom: 10px; border-bottom: 2px solid var(--accent); }
.tg-tabs button { border: 1px solid var(--line); border-bottom: 0; background: var(--surface-2); padding: 6px 14px; border-radius: 8px 8px 0 0; font-size: 15px; cursor: pointer; }
.tg-tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tg-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0 12px; font-size: 14px; }
.tg-bar select { font-size: 14px; padding: 2px 4px; }
.tg-note { color: var(--muted); font-size: 13px; margin: 4px 0; }
.tg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.tg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; }
.tg-card h2, .tg-list h2, .tg-rules h2 { font-size: 17px; margin: 2px 0 8px; color: var(--accent); }
.tg-mine { margin: 4px 0 8px; font-size: 15px; }
.tg-mine b { color: var(--win); }
.tg-res { color: var(--muted); font-size: 13px; }
.tg-races, .tg-runners { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tg-races button { padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); cursor: pointer; font-size: 13px; }
.tg-runners button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.tg-runners button i { font-style: normal; display: inline-block; min-width: 1.6em; text-align: center; background: var(--surface-2); border-radius: 4px; font-weight: 700; }
.tg-races button.on, .tg-runners button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tg-runners button.on i { background: rgba(255, 255, 255, 0.25); }
.tg-races button:disabled, .tg-runners button:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.tg-submit { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.tg-comment { flex: 1 1 260px; font-size: 14px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; }
.tg-ok { padding: 5px 18px; font-size: 15px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; }
.tg-ok:disabled { opacity: 0.45; cursor: not-allowed; }
.tg-msg { color: var(--win); font-size: 13px; }
.tg-list { margin-top: 16px; }
.tg-table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--surface); }
.tg-table th { background: var(--accent-soft); color: #134e3a; padding: 4px 6px; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tg-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tg-table td.n { text-align: center; font-variant-numeric: tabular-nums; }
.tg-table td.b { font-weight: 700; }
.tg-table td.tg-cm { white-space: normal; color: #444; font-size: 13px; }
.tg-table td.tg-p1 { color: var(--win); font-weight: 700; }
.tg-table td.tg-p24 { color: var(--gold); font-weight: 700; }
.tg-table tr.me td { background: #fff7c2; }
.tg-rank { width: auto; min-width: 520px; }
.tg-rules { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; font-size: 15px; line-height: 1.7; }
.tg-rules ul { margin: 0 0 12px; padding-left: 1.4em; }
.tg-user { color: var(--accent); text-decoration: none; }
.tg-user:hover { text-decoration: underline; }
.tg-who { font-size: 18px; margin: 4px 0; }
.tg-who small { font-size: 14px; font-weight: 400; color: var(--muted); }
.tg-table td.tg-plus { color: var(--win); font-weight: 700; }
.tg-table td.tg-zero { color: var(--muted); }
.tg-rec { width: auto; min-width: 760px; }

/* 揀馬格（2026-11-12 執靚）：積分王綠、賠率王金 */
.tg-cards { align-items: stretch; }
.tg-card { position: relative; padding: 0 0 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); }
.tg-card > * { margin-left: 16px; margin-right: 16px; }
.tg-card-rank { --tg: #0b6e4f; --tg-soft: #e3f3ec; }
.tg-card-odds { --tg: #b7791f; --tg-soft: #fdf3dc; }
.tg-card-head { margin: 0 0 12px; padding: 10px 16px; background: var(--tg-soft); border-bottom: 3px solid var(--tg); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tg-card-head h2 { display: inline; margin: 0 8px 0 0; font-size: 19px; color: var(--tg); }
.tg-sub { font-size: 13px; color: var(--muted); }
.tg-rule { font-size: 12px; color: var(--tg); border: 1px solid var(--tg); border-radius: 999px; padding: 1px 9px; white-space: nowrap; background: #fff; }
.tg-ticket { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-left: 5px solid var(--tg); border-radius: 8px; background: #fff; margin-bottom: 12px; }
.tg-ticket.empty { border-style: dashed; border-left-style: solid; border-left-color: var(--line); background: var(--surface-2); }
.tg-ticket.warn { border-left-color: var(--win); background: #fff1f1; }
.tg-tk-no { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tg); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tg-ticket.empty .tg-tk-no { background: #c8ced8; }
.tg-tk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tg-tk-main b { font-size: 17px; }
.tg-tk-main small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-tk-tag { flex: none; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--tg-soft); color: var(--tg); font-weight: 600; }
.tg-tk-tag.good { background: #fde8e8; color: var(--win); }
.tg-tk-tag.bad { background: var(--win); color: #fff; }
.tg-card-note { color: var(--muted); font-size: 13px; margin-top: 2px; margin-bottom: 0; }
.tg-races { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-bottom: 10px; }
.tg-races button { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; line-height: 1.25; }
.tg-races button b { font-size: 13px; }
.tg-races button small { font-size: 11px; color: var(--muted); }
.tg-races button.saved { border-color: var(--tg); box-shadow: inset 0 0 0 1px var(--tg); }
.tg-races button.on { background: var(--tg); border-color: var(--tg); color: #fff; }
.tg-races button.on small { color: rgba(255, 255, 255, 0.85); }
.tg-races button:disabled { background: var(--surface-2); opacity: 0.55; cursor: not-allowed; text-decoration: none; }
.tg-status { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tg-left { font-weight: 700; color: var(--tg); background: var(--tg-soft); border-radius: 999px; padding: 1px 10px; }
.tg-left.over { color: var(--muted); background: var(--surface-2); }
.tg-runners { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 0 16px 12px; }
.tg-runners button { position: relative; justify-content: flex-start; gap: 7px; padding: 5px 8px 5px 5px; border-radius: 8px; min-width: 0; transition: border-color 0.1s, background 0.1s; }
.tg-runners button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-runners button i { flex: none; width: 26px; height: 26px; min-width: 0; line-height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 13px; }
.tg-runners button:hover:not(:disabled) { border-color: var(--tg); background: var(--tg-soft); }
.tg-runners button.on { background: var(--tg); border-color: var(--tg); color: #fff; }
.tg-runners button.on i { background: #fff; color: var(--tg); }
.tg-runners button.saved:not(.on) { border-color: var(--tg); border-style: dashed; }
.tg-runners button.saved::after { content: '✓'; position: absolute; top: -6px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--win); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.tg-runners button.out { text-decoration: none; }
.tg-runners button.out span { text-decoration: line-through; }
.tg-runners button em { font-style: normal; font-size: 11px; color: var(--win); margin-left: auto; }
.tg-submit { margin-top: auto; padding-top: 4px; }
.tg-comment:focus { outline: 2px solid var(--tg-soft); border-color: var(--tg); }
.tg-ok { background: var(--tg); min-width: 96px; font-weight: 600; }
.tg-msg { display: block; margin-top: 6px; color: var(--muted); }
.tg-msg.err { color: var(--win); }
.tg-msg:empty { display: none; }
.tg-out { font-style: normal; color: var(--win); font-size: 12px; }
.tg-tk-main { text-align: left; }
.tg-table td.tg-hid { color: var(--muted); font-style: italic; text-align: center; letter-spacing: 1px; }

/* 首頁：網友心水挑戰賽小卡（2026-11-12） */
.hn-tg h3 .hn-more { margin-left: auto; }
.hn-tg-next { background: #f3f8f5; border: 1px solid #dcebe2; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.hn-tg-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.hn-tg-when b { font-size: 15px; color: #123d27; }
.hn-tg-mine { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.hn-tg-chip { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 8px; border-radius: 7px; background: #fff; border: 1px solid #e3e8ee; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hn-tg-chip i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #0b6e4f; color: #fff; flex: none; }
.hn-tg-chip.ok::after { content: '✓'; margin-left: auto; color: #0b6e4f; font-weight: 700; }
.hn-tg-chip.todo { color: #b45309; background: #fff8eb; border-color: #f5dfb4; }
.hn-tg-chip.todo i { background: #b7791f; }
.hn-tg-hint { font-size: 12px; color: var(--muted); margin: 6px 0 8px; }
.hn-tg-go { display: block; text-align: center; background: #0b6e4f; color: #fff; font-weight: 700; font-size: 14px; padding: 7px 0; border-radius: 8px; text-decoration: none; }
.hn-tg-go:hover { background: #095c42; }
.hn-tg-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hn-tg-board { min-width: 0; }
.hn-tg-bh { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 13px; color: #123d27; border-bottom: 2px solid #0b6e4f; padding-bottom: 3px; margin-bottom: 4px; }
.hn-tg-board:last-child .hn-tg-bh { border-color: #b7791f; color: #7a4f12; }
.hn-tg-bh small { font-weight: 400; font-size: 11px; color: var(--muted); }
.hn-tg-board ol { list-style: none; margin: 0; padding: 0; counter-reset: tg; }
.hn-tg-board li { counter-increment: tg; display: flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 0; border-bottom: 1px dotted #e6eaef; }
.hn-tg-board li::before { content: counter(tg); flex: none; width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 50%; background: #eef1f4; font-size: 10px; font-weight: 700; color: #555; }
.hn-tg-board li:nth-child(1)::before { background: #f2c94c; color: #5a4300; }
.hn-tg-board li:nth-child(2)::before { background: #cfd6de; }
.hn-tg-board li:nth-child(3)::before { background: #e3b48a; color: #5a3110; }
.hn-tg-board li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-tg-board li b { flex: none; font-variant-numeric: tabular-nums; }
.hn-tg-me { margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--win); }
.hn-tg-all { display: block; margin-top: 10px; text-align: right; font-size: 12px; }

/* 會員頁：顯示名稱（2026-11-12） */
.mb-facts dl > div.mb-namerow { grid-column: 1 / -1; }
.mb-name-line { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.mb-name-in { flex: 0 1 260px; font-size: 15px; padding: 5px 8px; border: 1px solid #cfd8e3; border-radius: 7px; font-weight: 400; }
.mb-name-btn { padding: 5px 16px; border: 0; border-radius: 7px; background: #0b6e4f; color: #fff; font-size: 14px; cursor: pointer; }
.mb-name-btn:disabled { opacity: 0.4; cursor: default; }
.mb-facts dd small.mb-name-pv { color: #123d27; font-weight: 600; }
.mb-facts dd small.mb-name-msg.ok { color: #0b6e4f; }
.mb-facts dd small.mb-name-msg.bad { color: var(--win); }
.mb-facts dd small.mb-name-msg:empty { display: none; }

/* 首頁：網內人數（只限管理員，2026-11-12） */
.hn-online { border: 1px dashed #c9a227; }
.hn-online h3 small { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--muted); }
.hn-live { width: 10px; height: 10px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: hn-live 1.6s infinite; }
@keyframes hn-live { 0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .55); } 70% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.hn-on-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.hn-on-total b { font-size: 34px; line-height: 1; color: #123d27; font-variant-numeric: tabular-nums; }
.hn-on-total span { font-size: 12px; color: var(--muted); }
.hn-on-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hn-on-box { border-radius: 9px; padding: 7px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.hn-on-box b { font-size: 20px; font-variant-numeric: tabular-nums; }
.hn-on-box span { font-size: 11px; }
.hn-on-box.g { background: #eef1f4; color: #455; }
.hn-on-box.f { background: #e3f3ec; color: #0b6e4f; }
.hn-on-box.p { background: #fdf3dc; color: #8a5a10; }
.hn-on-today { margin: 8px 0 0; font-size: 11px; color: var(--muted); }
.hn-on-names { margin-top: 6px; font-size: 12px; }
.hn-on-names summary { cursor: pointer; color: #0b6e4f; }
.hn-on-names ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 180px; overflow: auto; }
.hn-on-names li { padding: 2px 0; border-bottom: 1px dotted #e6eaef; }
.hn-on-names li.p::after { content: '收費'; margin-left: 6px; font-size: 10px; padding: 0 5px; border-radius: 4px; background: #f2c94c; color: #5a4300; }
.hn-online h3 .hn-live { display: inline-block; flex: none; width: 10px; height: 10px; padding: 0; }

/* 首頁（2026-11-12）：下面三格搬入左欄 */
.hn-main .hn-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }

/* 首頁意見箱（網站公告格入面，2026-11-12） */
.hn-fb { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #dfe5ea; }
.hn-fb h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; color: #123d27; }
.hn-fb-new { font-size: 11px; font-weight: 700; color: #fff; background: #e53935; border-radius: 999px; padding: 1px 8px; }
.hn-fb-hint { font-size: 12px; color: var(--muted); margin: 0; }
.hn-fb-form { display: flex; flex-direction: column; gap: 6px; }
.hn-fb-form select { align-self: flex-start; font-size: 13px; padding: 2px 4px; }
.hn-fb-form textarea { width: 100%; font-size: 13px; padding: 6px 8px; border: 1px solid #d6dde4; border-radius: 8px; resize: vertical; font-family: inherit; }
.hn-fb-row { display: flex; justify-content: space-between; align-items: center; }
.hn-fb-row button { padding: 4px 16px; border: 0; border-radius: 7px; background: #0b6e4f; color: #fff; font-size: 13px; cursor: pointer; }
.hn-fb-row button:disabled { opacity: .5; }
.hn-fb-cnt { font-size: 11px; color: var(--muted); }
.hn-fb-msg { display: block; font-size: 12px; margin-top: 4px; }
.hn-fb-msg.ok { color: #0b6e4f; }
.hn-fb-msg.bad { color: var(--win); }
.hn-fb-msg:empty { display: none; }
.hn-fb-list { list-style: none; margin: 10px 0 0; padding: 0; }
.hn-fb-list li { font-size: 12px; padding: 7px 0; border-top: 1px dotted #e6eaef; }
.hn-fb-list li.new { background: #fff8e1; margin: 0 -8px; padding: 7px 8px; border-radius: 6px; }
.hn-fb-q { color: #333; white-space: pre-wrap; overflow-wrap: anywhere; }
.hn-fb-q i { font-style: normal; font-size: 10px; padding: 0 5px; margin-right: 5px; border-radius: 4px; background: #eef1f4; color: #555; }
.hn-fb-a { margin-top: 4px; padding: 5px 8px; background: #e3f3ec; border-radius: 6px; color: #134e3a; white-space: pre-wrap; overflow-wrap: anywhere; }
.hn-fb-a small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.hn-fb-wait { margin-top: 3px; font-size: 11px; color: var(--muted); }
.hn-fb-all { display: block; text-align: right; font-size: 12px; margin-top: 6px; }
/* 會員頁：我的意見 */
.mb-fb h2 { display: flex; align-items: center; gap: 10px; }
.mb-fb-new { font-size: 12px; color: #fff; background: #e53935; border-radius: 999px; padding: 1px 9px; }
.mb-fb-link { margin-left: auto; font-size: 13px; font-weight: 400; }
.mb-fb-list { list-style: none; margin: 0; padding: 0; }
.mb-fb-list li { padding: 10px 0; border-top: 1px solid #edf0f3; }
.mb-fb-list li.new { background: #fff8e1; padding: 10px; border-radius: 8px; }
.mb-fb-q i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #eef1f4; margin-right: 6px; }
.mb-fb-q small, .mb-fb-a small { color: #6b7d92; font-size: 11px; margin-left: 6px; }
.mb-fb-q p, .mb-fb-a p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mb-fb-a { margin-top: 6px; padding: 8px 10px; background: #e3f3ec; border-radius: 8px; color: #134e3a; }
.mb-fb-wait { margin-top: 4px; font-size: 12px; color: #6b7d92; }
/* 管理頁：意見箱 */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-left: 4px solid #e53935; border-radius: 8px; padding: 10px 12px; background: #fff; }
.fb-item.s-replied { border-left-color: #0b6e4f; }
.fb-item.s-closed { border-left-color: #aab4bf; opacity: .85; }
.fb-item header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.fb-paid { font-size: 11px; padding: 0 6px; border-radius: 4px; background: #f2c94c; color: #5a4300; }
.fb-cat { font-size: 11px; padding: 0 6px; border-radius: 4px; background: #eef1f4; }
.fb-at { color: var(--muted); font-size: 12px; }
.fb-st { margin-left: auto; font-size: 12px; font-weight: 700; }
.fb-text { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-reply { background: #e3f3ec; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; }
.fb-reply p { margin: 2px 0 0; white-space: pre-wrap; }
.fb-form textarea { width: 100%; font-size: 14px; padding: 6px 8px; border: 1px solid #d6dde4; border-radius: 6px; font-family: inherit; }
.fb-form .ad-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.fb-msg { color: var(--win); }
.tool.on { background: #0b6e4f; color: #fff; }
.fb-del { margin-left: auto; color: #c62828; border-color: #f0c4c4; }

/* 首頁橫幅相片背景（2026-11-13）：日馬 A 草地轉彎、夜馬 G 全速疾馳；左邊深色漸變令文字清楚 */
.hn-hero.photo { background-color: #1d5c3a; background-image: linear-gradient(90deg, rgba(8, 38, 24, .88) 0%, rgba(8, 38, 24, .62) 38%, rgba(8, 38, 24, .18) 70%, rgba(8, 38, 24, .05) 100%), url(/assets/img/hero/hero_day.jpg);
  background-size: cover; background-position: center, center 55%; background-repeat: no-repeat; }
.hn-hero.photo.night { background-color: #0c1a33; background-image: linear-gradient(90deg, rgba(7, 18, 42, .92) 0%, rgba(7, 18, 42, .7) 38%, rgba(7, 18, 42, .35) 70%, rgba(7, 18, 42, .2) 100%), url(/assets/img/hero/hero_night.jpg);
  background-position: center, center 50%; }
.hn-hero.photo .hn-what, .hn-hero.photo .hn-later { text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.hn-hero.photo .hn-later { background: rgba(10, 40, 25, .45); }
.hn-hero.photo.night .hn-later { background: rgba(7, 18, 42, .5); }

/* 首頁卡片圖示（2026-11-13）：由 emoji 改為統一線條圖示（自繪，CSS mask，跟文字顏色） */
.hn-bico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e7f2eb; color: #1d5c3a; font-size: 0; flex: none; }
.hn-bico::before { content: ''; width: 16px; height: 16px; background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.hn-bico.trophy { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2021h8M12%2017v4M7%204h10v5a5%205%200%200%201-10%200z%22%2F%3E%3Cpath%20d%3D%22M17%205h3v2a3%203%200%200%201-3%203M7%205H4v2a3%203%200%200%200%203%203%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.tag { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.6%2013.4l-7.2%207.2a2%202%200%200%201-2.8%200L3%2013V3h10l7.6%207.6a2%202%200%200%201%200%202.8z%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%227.5%22%20r%3D%221.5%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.swap { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%204L3%208l4%204M3%208h14M17%2020l4-4-4-4M21%2016H7%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.bell { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011v2a1%201%200%200%200%201%201h3l7%205V5L7%2010H4a1%201%200%200%200-1%201z%22%2F%3E%3Cpath%20d%3D%22M17.5%208.5a5%205%200%200%201%200%207M20%206a8.5%208.5%200%200%201%200%2012%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.flag { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2022V3M5%204h13l-2.5%204.5L18%2013H5%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.clip { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%228%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2M8.5%2012h7M8.5%2016h5%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.medal { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%226%22%2F%3E%3Cpath%20d%3D%22M8.5%2014L7%2022l5-3%205%203-1.5-8%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.book { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%204h6a4%204%200%200%201%204%204v13a3%203%200%200%200-3-3H2zM22%204h-6a4%204%200%200%200-4%204v13a3%203%200%200%201%203-3h7z%22%2F%3E%3C%2Fsvg%3E"); }
.hn-bico.news { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M17%208h3v10a2%202%200%200%201-2%202M7%208h6M7%2012h6M7%2016h4%22%2F%3E%3C%2Fsvg%3E"); }

/* 全站線條圖示（2026-11-13，取代 emoji）：HK.icon('名') 或 <span class="ic ic-名">；顏色跟文字、大小 1em */
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; background-color: currentColor; flex: none;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ic-trophy { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2021h8M12%2017v4M7%204h10v5a5%205%200%200%201-10%200z%22%2F%3E%3Cpath%20d%3D%22M17%205h3v2a3%203%200%200%201-3%203M7%205H4v2a3%203%200%200%200%203%203%22%2F%3E%3C%2Fsvg%3E"); }
.ic-pen { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4z%22%2F%3E%3Cpath%20d%3D%22M15%205l4%204%22%2F%3E%3C%2Fsvg%3E"); }
.ic-check { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206L9%2017l-5-5%22%2F%3E%3C%2Fsvg%3E"); }
.ic-x { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%206L6%2018M6%206l12%2012%22%2F%3E%3C%2Fsvg%3E"); }
.ic-warn { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10.3%203.9L1.8%2018a2%202%200%200%200%201.7%203h17a2%202%200%200%200%201.7-3L13.7%203.9a2%202%200%200%200-3.4%200z%22%2F%3E%3Cpath%20d%3D%22M12%209v4M12%2017h.01%22%2F%3E%3C%2Fsvg%3E"); }
.ic-mail { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%2220%22%20height%3D%2216%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M22%207l-10%206L2%207%22%2F%3E%3C%2Fsvg%3E"); }
.cup-ico .ic, .race-cup .ic, .rc-cup .ic { color: #b7791f; margin-right: 3px; }
.cup-ico .ic { margin-right: 0; }
.nt-btn .ic { vertical-align: -0.1em; }
.mb-done .ic { width: 1em; height: 1em; vertical-align: middle; }
.fs-chip .ic, .chip .ic { margin-left: 4px; vertical-align: -0.12em; }
.ad-ok { color: #0b6e4f; } .ad-bad { color: #c62828; } .ad-warn { color: #b45309; }
.tg-runners button.saved::after { content: ''; background: var(--win) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%223.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206L9%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") center / 62% no-repeat; }
.hn-tg-chip.ok::after { content: ''; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230b6e4f%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206L9%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }

/* ---- 全站頁尾（2026-11-13 新版，assets/footer.js）：網站簡介＋四欄連結＋底部版權列 ---- */
.pf { margin-top: 40px; background: #0f2a1e; color: #c9d4ce; font-size: 13px; }
.pf a { color: #e7efe9; text-decoration: none; }
.pf a:hover { color: #fff; text-decoration: underline; }
.pf-in { max-width: 1248px; margin: 0 auto; padding: 36px 16px 28px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.pf-brand b { display: block; font-size: 17px; color: #fff; letter-spacing: 1px; margin-bottom: 10px; }
.pf-brand p { margin: 0 0 10px; line-height: 1.7; color: #a9b8b0; }
.pf-brand small { display: block; color: #8a9a92; line-height: 1.6; }
.pf h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #fff; letter-spacing: 1px; }
.pf ul { list-style: none; margin: 0; padding: 0; }
.pf li { margin: 0 0 8px; }
.pf li span { color: #6f8279; cursor: default; }
.pf li span::after { content: '籌備中'; margin-left: 6px; font-size: 10px; padding: 0 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: #8a9a92; }
.pf-bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.pf-bar-in { max-width: 1248px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 12px; color: #8a9a92; }
.pf-18 { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c62828; color: #fff; font-size: 10px; font-weight: 700; flex: none; }
.pf-warn { display: flex; align-items: center; gap: 8px; }
.pf-bar-links { margin-left: auto; display: flex; gap: 16px; }

/* ---- 關於我們、使用條款、私隱政策、聯絡我們（2026-11-13）---- */
.doc { max-width: 860px; margin: 24px auto 0; padding: 0 16px; }
.doc-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 32px 40px; color: #1f2937; line-height: 1.85; font-size: 15px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.doc-nav a { padding: 5px 14px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; color: #374151; font-size: 13px; text-decoration: none; }
.doc-nav a.on { background: #0f4c35; border-color: #0f4c35; color: #fff; }
.doc h1 { font-size: 24px; margin: 0 0 6px; color: #111827; }
.doc .doc-upd { color: #6b7280; font-size: 13px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.doc h2 { font-size: 17px; margin: 28px 0 8px; color: #0f4c35; }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { margin: 0 0 12px; padding-left: 1.6em; }
.doc li { margin-bottom: 6px; }
.doc .doc-note { background: #f3f4f6; border-radius: 8px; padding: 12px 16px; font-size: 14px; color: #374151; }
.doc .doc-feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding: 0; list-style: none; }
.doc .doc-feat li { padding-left: 14px; border-left: 3px solid #e3f3ec; }
.doc .doc-feat b { display: block; color: #111827; }
.doc .doc-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.doc .doc-contact > div { border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 16px; }
.doc .doc-contact b { display: block; color: #0f4c35; margin-bottom: 4px; }

/* 首頁「騎練成績」卡（2026-11-13，跟舊站騎練龍虎榜；home_new.js jtBox） */
.hn-jt h3 .hn-more + .hn-more { margin-left: 12px; }
.hn-jt-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.hn-jt-tabs button { border: 1px solid #d8e0dc; background: #fff; color: var(--text); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.hn-jt-tabs button:hover { background: #f1f5f3; }
.hn-jt-tabs button.on { background: #14532d; border-color: #14532d; color: #fff; }
.hn-jt-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hn-jt-tbl td, .hn-jt-tbl th { white-space: nowrap; }
.hn-jt-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.hn-jt-tbl td.hn-jt-w { color: #c62828; font-weight: 700; }
.hn-jt-road th a { color: inherit; text-decoration: none; }
.hn-jt-road th a:hover { text-decoration: underline; }
.hn-jt-tbl td.hn-jt-rd { padding: 3px 2px; }
.hn-jt-rd .marks { display: inline-flex; align-items: center; gap: 2px; }
.hn-jt-rd i, .hn-jt-legend i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hn-jt-rd i.w, .hn-jt-legend i.w { background: #e53950; border-radius: 3px; }
.hn-jt-rd i.p, .hn-jt-legend i.p { background: #8f99a6; border-radius: 3px; }
.hn-jt-rd i.n, .hn-jt-legend i.n { background: #1c2430; border-radius: 50%; }
.hn-jt-rd.off .marks { display: none; }
.hn-jt-rd.off::after { content: '—'; color: #c3cbc7; }
.hn-jt-legend { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.hn-jt-legend i { width: 11px; height: 11px; margin-left: 6px; }
.hn-jt-legend span { margin-left: 12px; }
/* 騎練路紙：每日一欄分隔清楚（2026-11-13 用家要求）：日與日之間直線、單雙日底色、加闊間距 */
.hn-jt-road th:not(:first-child), .hn-jt-road td.hn-jt-rd { border-left: 1px solid #d5ddd9; padding-left: 6px; padding-right: 6px; }
.hn-jt-road th:nth-child(even), .hn-jt-road td.hn-jt-rd:nth-child(even) { background: #f6f8f7; }
.hn-jt-tbl td.hn-jt-rd { padding: 4px 6px; }
.hn-jt-road th { padding-bottom: 6px; }
/* 異常流量封鎖提示（common.js，2026-11-13） */
.guard-bar { position: sticky; top: 0; z-index: 1000; padding: 10px 16px; background: #b42318; color: #fff; font-size: 14px; text-align: center; }
.guard-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
/* 騎師／練馬師排行榜路紙（people.js，2026-11-13）：同首頁騎練成績卡一樣嘅格仔，每日一欄分隔 */
.jk-rank th.rd, .jk-rank td.hn-jt-rd { border-left: 1px solid #d5ddd9; padding: 4px 6px; white-space: nowrap; }
.jk-rank th.rd:nth-child(even), .jk-rank td.hn-jt-rd:nth-child(even) { background: #f6f8f7; }
.jk-rank th.rd a { color: inherit; text-decoration: none; }
.jk-rank th.rd a:hover { text-decoration: underline; }
.jk-rank-legend { justify-content: flex-end; margin-bottom: 8px; }
.jk-rank-legend b { color: var(--text); margin-right: 4px; }
.fs-clear { align-self: center; margin-left: 4px; font-size: 13px; }
.jk-rank-head .h1-link + .h1-link, .hp-title h1 .h1-link + .h1-link { margin-left: 12px; }
.jk-rank td.nm, .jk-rank td.l { white-space: nowrap; }

/* 首頁「賽事備忘」專業版（2026-11-13，home_new.js reminderBox） */
.rm-pro h3 { align-items: center; }
.rm-src { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.rm-dot { width: 7px; height: 7px; border-radius: 50%; background: #2e9d5b; box-shadow: 0 0 0 3px #e3f3e9; }
.rm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e4e9e6; border-radius: 8px; overflow: hidden; margin: 2px 0 14px; }
.rm-fact { padding: 8px 14px; background: #fafbfa; }
.rm-fact + .rm-fact { border-left: 1px solid #e4e9e6; }
.rm-fact span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.05em; }
.rm-fact b { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; color: #123d27; font-variant-numeric: tabular-nums; }
.rm-sec { margin-top: 14px; }
.rm-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #5b6b63; letter-spacing: 0.08em; }
.rm-sec-h::after { content: ''; flex: 1; height: 1px; background: #e8ece9; }
.rm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); gap: 20px; align-items: start; }
.rm-top.solo { grid-template-columns: minmax(0, 1fr); }
.rm-top > .rm-sec { margin-top: 0; }
.rm-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.rm-track { position: relative; padding: 10px 14px 10px 17px; border: 1px solid #e4e9e6; border-radius: 8px; background: #fff; }
.rm-track::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #2e9d5b; }
.rm-track.awt::before { background: #8a6d4b; }
.rm-track-n { font-size: 13px; color: #34475c; }
.rm-track-g { margin-top: 2px; font-size: 18px; font-weight: 700; color: #123d27; }
.rm-track.awt .rm-track-g { color: #6b4f30; }
.rm-track-r { margin-top: 2px; font-size: 12px; color: var(--muted); }
.rm-jps { display: grid; gap: 8px; }
.rm-jp { padding: 10px 14px; border: 1px solid #f0c9a3; border-radius: 8px; background: linear-gradient(180deg, #fff8f1, #fff); }
.rm-jp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rm-jp-h b { font-size: 14px; color: #7a3a0e; }
.rm-jp-h span { font-size: 12px; color: var(--muted); }
.rm-jp-est { margin-top: 4px; font: 700 22px/1.2 Verdana, sans-serif; color: #a04b12; font-variant-numeric: tabular-nums; }
.rm-jp-est small { display: block; font: 400 11px sans-serif; color: var(--muted); }
.rm-jp-pot { margin-top: 4px; display: inline-block; padding: 1px 8px; border-radius: 4px; background: #fdecd9; font-size: 12px; font-weight: 700; color: #a04b12; }
.rm-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.rm-tbl th { padding: 4px 8px; font-size: 11px; font-weight: 500; color: var(--muted); text-align: left; border-bottom: 1px solid #e4e9e6; }
.rm-tbl th.r, .rm-tbl td.rm-time { text-align: right; }
.rm-tbl td { padding: 6px 8px; border-bottom: 1px solid #f0f3f1; vertical-align: middle; }
.rm-tbl tr.grp td { border-top: 1px solid #e4e9e6; }
.rm-tbl tbody tr:first-child td { border-top: 0; }
.rm-tbl tbody tr:last-child td, .rm-tbl td.rm-race { border-bottom: 0; }
.rm-race { width: 64px; vertical-align: top !important; font-weight: 700; white-space: nowrap; }
.rm-race a { color: #14532d; }
.rm-no { width: 44px; }
.rm-no span { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 4px; border-radius: 4px; background: #1c2430; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rm-horse { width: 120px; font-weight: 600; white-space: nowrap; }
.rm-time { width: 100px; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-none { margin: 0; font-size: 13px; color: var(--muted); }
.rm-jk { font-weight: 700; white-space: nowrap; width: 90px; }
.rm-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rm-tag.now { background: #fdecec; color: #b3261e; }
.rm-tag.next { background: #fff4e0; color: #9a5b00; }
.rm-susp td { white-space: nowrap; }
.rm-susp td.rm-why { white-space: normal; color: var(--muted); font-size: 13px; }
/* 連贏及位置Q：唔夠 14 匹嘅空行（oddsroom.js，2026-11-13）；保留欄線，唔出內容 */
.or-horses tr.pad td { color: transparent; }

/* 賠率區頂部轉賽事掣（oddsroom.js meetingBtns，2026-11-13）：已開飛賽事各一個掣；過往紀錄選單搬去功能分頁最右 */
.or-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.or-mts { display: inline-flex; align-items: center; gap: 6px; }
.or-mt { padding: 3px 14px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 6px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.or-mt:hover { background: rgba(255, 255, 255, 0.15); }
.or-mt.on { background: #fff; color: #005094; border-color: #fff; cursor: default; }
.or-mt.os { font-family: Verdana, sans-serif; }
.or-mt-past { padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.15); font-weight: 700; }
.or-tabs { display: flex; flex-wrap: wrap; align-items: center; }
.or-hist { margin-left: auto; }
.or-hist .or-date { font: inherit; font-size: 13px; padding: 2px 4px; color: var(--text); }
/* 頁尾標誌（footer.js，方案 A，2026-11-13） */
.pf .pf-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff; text-decoration: none; }
.pf .pf-logo:hover { text-decoration: none; }
.pf-logo img { display: block; flex: none; }
.pf-wm b { display: block; margin: 0; font-size: 18px; color: #fff; letter-spacing: 1.5px; line-height: 1.25; }
.pf-wm span { display: block; font: 600 10.5px/1.4 Verdana, sans-serif; letter-spacing: 2.6px; color: #9fb5a9; }
/* 頁首標誌（header.js，方案 A，2026-11-13） */
.topbar .brand { display: inline-flex; align-items: center; gap: 8px; }
.topbar .brand-mark { display: block; flex: none; width: 28px; height: 28px; }
/* 頁頂「? 教學」（header.js helpLink，2026-11-13）：放喺登入掣前面 */
.topbar .help-link { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font: 700 14px/1 Verdana, sans-serif; }
.topbar .help-link:hover { background: #fff; color: #005094; }
.topbar.zone-race .help-link:hover { color: #1d5c3a; }
.topbar .help-link ~ .mlink { margin-left: 8px; }
/* 賽事區頁頂搜尋格（2026-11-13）：同資料區一樣，闊度細少少 */
.topbar.zone-race .search { max-width: 380px; }
.topbar.zone-race .search input:focus { outline-color: #8fd1a8; }
/* 賠率區返主視窗連結＋教學（oddsroom.js mainLinks，2026-11-13） */
.or-links { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.or-links a { padding: 2px 9px; border-radius: 5px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; text-decoration: none; white-space: nowrap; }
.or-links a:hover { background: rgba(255, 255, 255, .28); }
.or-links a.or-help { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #fff; color: #005094; font: 700 13px/1 Verdana, sans-serif; }
.or-links a.or-help:hover { background: #e3eefa; }

/* 頁頂「☰ 全部功能」選單（header.js menu，2026-11-13）：四欄目錄同頁尾一樣 */
.topbar .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; flex: none; width: 32px; height: 30px; padding: 0 7px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .12); cursor: pointer; }
.topbar .menu-btn span { display: block; height: 2px; border-radius: 1px; background: #fff; }
.topbar .menu-btn:hover, .topbar .menu-btn.on { background: rgba(255, 255, 255, .28); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-bottom: 1px solid #d8e0dc; box-shadow: 0 10px 24px rgba(15, 42, 30, .18); }
.site-menu[hidden] { display: none; }
.site-menu .sm-in { max-width: 1248px; margin: 0 auto; padding: 18px 16px 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-menu h4 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid #e8ece9; font-size: 13px; color: #5b6b63; letter-spacing: 1px; }
.site-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.site-menu a { display: block; padding: 5px 8px; border-radius: 5px; color: var(--text); font-size: 14px; text-decoration: none; }
.site-menu a:hover { background: #eef3f0; }
.site-menu a.on { background: #e3f0e8; color: #14532d; font-weight: 700; }
.site-menu span { display: block; padding: 5px 8px; color: #a3aeb8; font-size: 14px; }

/* 自選馬（watch.js，2026-11-13）：自選馬名前面 ★、淺黃底；馬匹頁加入掣；首頁小卡 */
.hn-bico.star { --ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l2.8%205.7%206.2.9-4.5%204.4%201.1%206.2L12%2017.3%206.4%2020.2l1.1-6.2L3%209.6l6.2-.9z%22%2F%3E%3C%2Fsvg%3E"); }
a.w-on { background: #fff4c7; border-radius: 3px; padding: 0 2px; }
a.w-on::before { content: '★'; color: #d99a00; margin-right: 2px; font-size: 0.9em; }
.watch-btn { margin: 4px 0 0; padding: 3px 12px; border: 1px solid #e0c060; border-radius: 999px; background: #fff; color: #8a6400; font: inherit; font-size: 13px; cursor: pointer; }
.watch-btn:hover { background: #fff8de; }
.watch-btn.on { background: #ffe58a; border-color: #e0b400; color: #6b4d00; font-weight: 700; }
.wt-card h3 small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.wt-list { list-style: none; margin: 0; padding: 0; }
.wt-list li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 6px 0; border-top: 1px solid #eef1ef; align-items: baseline; }
.wt-list li:first-child { border-top: 0; }
.wt-list .wt-nm { font-weight: 700; color: var(--text); }
.wt-list small { color: var(--muted); font-size: 12px; }
.wt-list .wt-st { grid-column: 1 / -1; font-size: 13px; }
.wt-list .wt-st.wt-c { color: #b42318; font-weight: 700; }
.wt-list .wt-st.wt-e { color: #9a5b00; font-weight: 700; }
.wt-list .wt-st.muted { color: var(--muted); }
.wt-more { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
/* 排位表場次掣（racecard.js，2026-11-13）：跟賠率區，大字場號＋細字開跑時間 */
.race-tabs.rc-rtabs a.rt { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.4em; padding: 3px 6px; line-height: 1.15; }
.race-tabs.rc-rtabs a.rt b { font-size: 16px; font-weight: 700; font-family: Verdana, sans-serif; }
.race-tabs.rc-rtabs a.rt small { font-size: 11px; opacity: 0.85; font-variant-numeric: tabular-nums; }

/* 統一揀日子（common.js datePicker，2026-11-13）：‹ 日期 ▾ ›＋彈出月曆 */
.dp { display: inline-flex; align-items: stretch; border: 1px solid #c9d3e0; border-radius: 6px; background: #fff; overflow: hidden; vertical-align: middle; }
.dp button { border: 0; background: #fff; color: #24364d; font: inherit; font-size: 14px; cursor: pointer; }
.dp .dp-nav { width: 30px; font-size: 17px; line-height: 1; }
.dp .dp-nav:hover:not(:disabled) { background: #eef3fa; }
.dp .dp-nav:disabled { color: #c3cbd5; cursor: default; }
.dp .dp-mid { padding: 4px 10px; border-left: 1px solid #e1e7ee; border-right: 1px solid #e1e7ee; font-weight: 600; white-space: nowrap; }
.dp .dp-mid i { margin-left: 6px; font-style: normal; font-size: 11px; color: #6b7a8f; }
.dp .dp-mid:hover, .dp .dp-mid.on { background: #eef3fa; }
.dp-pop { position: absolute; z-index: 60; width: 280px; padding: 10px; border: 1px solid #d5deea; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(16, 40, 70, .2); font-size: 14px; color: #24364d; }
.dp-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dp-head b { flex: 1; text-align: center; }
.dp-head button { width: 28px; height: 26px; border: 1px solid #d5deea; border-radius: 5px; background: #fff; cursor: pointer; }
.dp-head button:disabled { color: #c3cbd5; cursor: default; }
.dp-head select { font: inherit; font-size: 12px; padding: 2px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.dp-grid .dp-wk { font-size: 11px; color: #8a99ab; padding-bottom: 2px; }
.dp-grid .dp-off { padding: 5px 0; color: #c3cbd5; font-size: 13px; }
.dp-grid .dp-day { padding: 5px 0; border: 1px solid #b7dcc3; border-radius: 5px; background: #f1f9f3; color: #1f7a3d; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dp-grid .dp-day:hover { background: #dff1e5; }
.dp-grid .dp-day.on { background: #1f7a3d; border-color: #1f7a3d; color: #fff; }
.or-hist { display: inline-flex; align-items: center; gap: 6px; }
.or-hist-l { font-size: 12px; color: var(--muted); }
/* 搜尋例子（search.js hint，2026-11-13） */
.search-results a.sr-ex b { font-family: Verdana, sans-serif; font-weight: 700; color: #005094; margin-right: 10px; }

/* 外地分頁（oddsroom.js ccView，2026-11-13 改版，跟連贏及位置Q）：左表多一欄馬會獨贏；折扣三級底色；▲▼ 升跌 */
.or-horses.cc2-horses { width: 31em; }
.cc2-horses col.c-od { width: 4.4em; }
.cc2-horses td.od { text-align: center; padding-left: 0.3em; padding-right: 0.3em; }
.cc2-horses td.cc2-w { font-weight: 700; color: #33475e; }
.cc2-horses td.cc2-d { font: 700 13px Verdana, sans-serif; color: #334155; position: relative; }
.cc2-horses td.cc2-d.then { color: #5b6676; font-weight: 600; }
.cc2-horses td.cc2-d i { position: absolute; right: 2px; top: 2px; font-style: normal; font-size: 8px; }
.cc2-horses td.cc2-d i.up { color: #b91c1c; } .cc2-horses td.cc2-d i.dn { color: #1d4ed8; }
.cc2-horses td.cc2-d.cc-l1, .cc2-q td.q2.cc-l1, .or-legend .sw2.cc-l1 { background: #fee2e2 !important; }
.cc2-horses td.cc2-d.cc-l2, .cc2-q td.q2.cc-l2, .or-legend .sw2.cc-l2 { background: #f87171 !important; }
.cc2-horses td.cc2-d.cc-l3, .cc2-q td.q2.cc-l3, .or-legend .sw2.cc-l3 { background: #991b1b !important; color: #fff; }
.cc2-horses td.cc2-d.cc-l3 i, .cc2-q td.q2.cc-l3 .n, .cc2-q td.q2.cc-l3 .o { color: #fff; }
.cc2-horses td.cc2-d.na { color: #c3cad4; }

/* 排位表簡易近 6 仗（2026-11-13，參考外國排位表：一行一仗、賽果一句講晒） */
.form-panel h2 .rc-all6 + .fs-clear { margin-left: 6px; }
.rc-detail > td { padding: 4px 8px 10px 34px !important; background: #fbfcfd !important; }
table.rc-six { border-collapse: collapse; width: auto; font-size: var(--fs-sm, 13.5px); background: #fff; }
table.rc-six th { padding: 5px 12px; text-align: left; font-weight: 700; color: #24364d; background: #eef2f6; border-bottom: 1px solid #cfd8e3; white-space: nowrap; }
table.rc-six td { padding: 5px 12px; border-bottom: 1px solid #e6ebf1; white-space: nowrap; text-align: left; }
table.rc-six tr:last-child td { border-bottom: 1px solid #cfd8e3; }
table.rc-six tr.win td { font-weight: 700; }
table.rc-six .six-trk { padding: 0 4px; border-radius: 3px; }
table.rc-six .six-trk.turf { background: var(--turf); }
table.rc-six .six-trk.dirt { background: var(--dirt); }
table.rc-six .six-pl { font-weight: 800; }
table.rc-six .six-pl.top3 { color: #c0262d; }
table.rc-six .six-out { font-weight: inherit; }
table.rc-six td.fav { color: #c0262d; font-weight: 700; }
table.rc-six .six-vid { display: flex; gap: 4px; }
table.rc-six a { color: inherit; }
table.rc-six a:hover { color: #005094; text-decoration: underline; }
table.rc-six .cup-ico { margin-left: 4px; color: #b8860b; }

/* 賠率一版睇晒（oddsboard.html，2026-11-13）＋ 賠率區嵌入模式（odds.html?embed=1） */
body.or-embed { background: #fff; }
body.or-embed main#oddsroom { padding: 0; }
body.or-embed #or-body { width: max-content; padding: 2px; border: 0; border-radius: 0; }
body.ob-page { margin: 0; overflow: hidden; }
main#oddsboard { max-width: none; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 6px 8px 8px; box-sizing: border-box; font-size: 14px; }
.ob-head { flex: none; }
.ob-head .or-title span { margin-right: 0.4em; opacity: 0.85; }
.ob-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ob-lays { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 5px; overflow: hidden; }
.ob-lays button { padding: 3px 10px; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.ob-lays button.on { background: #fff; color: #005094; font-weight: 700; }
.ob-room { color: #fff; }
.ob-grid { flex: 1; min-height: 0; display: grid; gap: 6px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ob-grid.g3 { grid-template-columns: 1.25fr 1fr; }
.ob-grid.g3 .ob-c0 { grid-row: 1 / span 2; }
.ob-cell { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line, #dfe5ee); border-radius: 6px; background: #fff; overflow: hidden; }
.ob-cap { flex: none; display: flex; align-items: center; gap: 8px; padding: 3px 6px; background: #eef2f6; border-bottom: 1px solid var(--line, #dfe5ee); }
.ob-pick { font: inherit; font-size: 13px; padding: 1px 4px; border: 1px solid #c9d3e0; border-radius: 4px; background: #fff; color: #005094; font-weight: 700; }
.ob-open { margin-left: auto; font-size: 12px; color: #005094; }
.ob-cell iframe { flex: 1; width: 100%; min-height: 0; border: 0; display: block; }
.ob-none { margin: auto; }
/* 分段賠率九格（seglayout=board，一版睇晒預設） */
.or-seg-board { display: grid; grid-template-columns: repeat(3, var(--seg-col, 470px)); gap: 10px 12px; align-items: start; }
.or-seg-board .or-seg-blank { min-height: 120px; display: flex; align-items: center; justify-content: center; border: 1px dashed #e3d3b8; border-radius: 6px; }
.or-seg-board .or-seg-blank .empty { margin: 0; color: var(--muted); font-size: 13px; }
.ob-grid.seg9 { grid-template-columns: 1fr; grid-template-rows: 1fr; }

/* WPQ 一版（waigor.html，2026-11-13，照舊站 waigorwpqv3.php） */
body.wg-page { background: #fff; margin: 0; }
main#waigor { max-width: none; width: max-content; padding: 6px; font-family: Arial, "Microsoft JhengHei", sans-serif; font-size: 15px; transform-origin: 0 0; }
.wg-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wg-races { display: flex; gap: 4px; }
.wg-races button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #c9d6ea; background: radial-gradient(circle at 35% 30%, #3d7bd9, #0b3d91); color: #fff; font: 700 14px Arial; cursor: pointer; padding: 0; }
.wg-races button.on { background: radial-gradient(circle at 35% 30%, #d9443d, #8a0b0b); border-color: #e8b44a; }
.wg-slots { display: flex; }
.wg-slots button { min-width: 64px; padding: 6px 4px; border: 0; border-right: 1px solid #fff; background: #d8bfa5; color: #000; font: 700 13px Arial; cursor: pointer; }
.wg-slots button.off { color: #8a7a68; cursor: default; }
.wg-slots button.on { background: #6e4b24; color: #fff; }
.wg-slots .wg-r { background: #ffd0d0; text-decoration: underline; }
.wg-slots .wg-r.on { background: #ff9c9c; color: #000; }
.wg-date { color: #5b6b63; font-size: 13px; }
.wg-body { display: flex; gap: 6px; align-items: flex-start; }
table.wg-t { border-collapse: collapse; }
.wg-t th { background: #005194; color: #fff; font: 700 12px Arial; height: 42px; border: 1px solid #fff; padding: 0 4px; }
.wg-t td { border: 1px solid #000; height: 41px; padding: 0 4px; text-align: right; background: #fff; font-size: 15px; white-space: nowrap; }
.wg-left th, .wg-left td { width: 32px; }
.wg-left th.wg-diffh { background: #005194; }
.wg-left td.wg-wp.red { background: red; color: #fff; font-size: 11px; font-weight: 700; }
.wg-left td.wg-diff { background: #ddd; font-size: 11px; }
.wg-left td.wg-diff.neg { color: red; }
.wg-left td.wg-diff.mark { background: #ff0; font-weight: 700; }
.wg-mid td.wg-drop { width: 3px; padding: 0; }
.wg-mid td.wg-drop.wg-d20 { background: #3adf00; }
.wg-mid td.wg-drop.wg-d50 { background: #8a4b08; }
.wg-mid td.wg-od { width: 38px; }
.wg-mid td.wg-nm { text-align: center; min-width: 76px; padding: 0 6px; }
.wg-mid td.wg-pc { width: 34px; }
.wg-t .fav { color: red; font-weight: 700; }
.wg-t td.two span { display: block; line-height: 1.15; }
.wg-t td.two span.old { color: #555; font-size: 0.8em; }
.wg-t .wg-h20 { background: #ffa2a2; }
.wg-t .wg-h30 { background: #ff9900; }
.wg-t .wg-h40 { background: #b45f04; }
.wg-q-t th { width: 36px; }
.wg-q-t th.diag { background: #005194; }
.wg-q-t td.wg-q { width: 36px; }
.wg-q-t td.wg-q.wg-d20 { background: #2eab00; color: #fff; font-weight: 700; }
.wg-q-t td.wg-q.wg-d50 { background: #8a4b08; color: #fff; font-weight: 700; }
.wg-q-t td.wg-qpq.red { background: red; color: #fff; font-size: 11px; font-weight: 700; }
.wg-page .or-lock { margin: 30px; }

/* 賽事備忘右欄窄版（2026-11-13：由左欄搬去右欄最頂） */
.rm-side h3 { flex-wrap: wrap; row-gap: 2px; }
.rm-side .rm-src { flex-basis: 100%; margin-left: 0; font-size: 11px; }
.rm-side .rm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rm-side .rm-fact { padding: 6px 10px; }
.rm-side .rm-fact b { font-size: 15px; }
.rm-side .rm-top, .rm-side .rm-top.solo { grid-template-columns: minmax(0, 1fr); gap: 0; }
.rm-side .rm-top > .rm-sec + .rm-sec { margin-top: 12px; }
.rm-side .rm-tracks { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.rm-side .rm-track { padding: 6px 10px; }
.rm-clist, .rm-slist { list-style: none; margin: 0; padding: 0; }
.rm-clist li, .rm-slist li { padding: 6px 0; border-bottom: 1px solid #edf0ee; }
.rm-clist li:last-child, .rm-slist li:last-child { border-bottom: 0; }
.rm-ci-h { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rm-ci-h .rm-race { font-weight: 700; color: #14532d; text-decoration: none; white-space: nowrap; }
.rm-ci-h .rm-no span { display: inline-block; min-width: 20px; padding: 0 4px; border-radius: 4px; background: #1c2430; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.rm-ci-h .rm-time { margin-left: auto; color: #8a968f; font-size: 11px; white-space: nowrap; }
.rm-ci-t { margin-top: 2px; font-size: 13px; color: #33413a; line-height: 1.45; }
.rm-slist .rm-ci-t { font-size: 12px; color: #5b6b63; }
.rm-slist .rm-tag { margin-left: auto; }
.rm-morebtn { display: block; width: 100%; margin-top: 6px; padding: 4px 0; border: 1px solid #dfe5e1; border-radius: 6px; background: #f7f9f8; color: #14532d; font: inherit; font-size: 12px; cursor: pointer; }
.rm-morebtn:hover { background: #eef3f0; }
.rm-ci-h > * { flex: none; width: auto; }
.rm-ci-h b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.rm-ci-h .rm-time { flex: none; margin-left: auto; }

/* KEN 專用頁（kenrace / kendecl / kenref + 馬匹頁 KEN 區，2026-11-13） */
.kn-page { max-width: none; }
.kn-page h1 { margin: 0 0 8px; font-size: 20px; }
.kn-page h1 small { margin-left: 12px; font-size: 14px; font-weight: 400; color: var(--muted); }
.kn-page h2, .kn-horse h2 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.kn-top { margin-bottom: 12px; }
.kn-panel { margin-bottom: 12px; }
.kn-day { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.kn-day a { padding: 3px 10px; border: 1px solid #c9d3e0; border-radius: 4px; color: #005094; text-decoration: none; font-size: 13px; }
.kn-day a.on { background: #005094; color: #fff; border-color: #005094; }
.kn-scroll { overflow-x: auto; }
table.kn-t { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.kn-t th { background: #eef2f6; color: #24364d; padding: 4px 6px; border: 1px solid #d9e0e8; white-space: nowrap; font-weight: 700; }
.kn-t td { padding: 3px 6px; border: 1px solid #e3e8ee; text-align: right; white-space: nowrap; }
.kn-t td.l { text-align: left; }
.kn-t tr.alt td { background: #fafbfc; }
.kn-head th:first-child { text-align: left; }
.kn-head tr.kn-hl td { font-weight: 700; font-size: 15px; background: #fff8e6; }
.kn-t td.kn-v { background: #eaf5ec; }
.kn-t td.kn-idx, .kn-t .kn-idx { color: #ff4800; font-weight: 700; }
.kn-t tr.t1 td:first-child { box-shadow: inset 4px 0 #cc3300; }
.kn-t tr.t2 td:first-child { box-shadow: inset 4px 0 #009933; }
.kn-t tr.same td { background: #fbeaea; }
.kn-t td.pl.top3 { color: #c0262d; font-weight: 700; }
.kn-t td.fast { color: #c0262d; font-weight: 700; }
.kn-tag { font-style: normal; margin-right: 2px; }
.kn-tag.t1 { color: #cc3300; } .kn-tag.t2 { color: #009933; }
.kn-num { width: 4.5em; text-align: right; font: inherit; padding: 1px 4px; border: 1px solid #c9d3e0; border-radius: 3px; }
.kn-adj { width: 4em; text-align: right; font: inherit; padding: 1px 4px; margin-left: 6px; }
.kn-com { width: 22em; font: inherit; padding: 1px 4px; border: 1px solid #c9d3e0; border-radius: 3px; }
.kn-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.kn-save { padding: 4px 16px; border: 0; border-radius: 4px; background: #14532d; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.kn-save:disabled { opacity: 0.6; cursor: default; }
.kn-msg { color: var(--muted); font-size: 13px; }
.kn-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.kn-cols { display: grid; grid-template-columns: auto auto; gap: 12px; align-items: start; justify-content: start; }
.kn-horse { margin-top: 12px; }
.kn-link { font-size: 13px; font-weight: 400; }
.kn-pred { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-bottom: 10px; padding: 8px 10px; background: #f6faf7; border: 1px solid #dfe9e2; border-radius: 6px; }
.kn-pred-h { width: 100%; font-weight: 700; font-size: 13px; }
.kn-pred label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.kn-pred label.w .kn-com { width: 14em; }
.kn-runner { margin-bottom: 10px; }
.kn-runner.scr { opacity: 0.55; }
.kn-rh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.kn-nm { font-size: 16px; font-weight: 700; }
.kn-pv { display: flex; gap: 12px; margin-left: auto; }
.kn-pv span { display: flex; flex-direction: column; align-items: center; }
.kn-pv small { color: var(--muted); font-size: 11px; }
.pf-bar-links .pf-ver { font-family: var(--f-mono, Consolas, monospace); }
/* 更新記錄頁（changelog.html，2026-11-13） */
.cl .cl-item { padding: 4px 0 18px; border-bottom: 1px solid #e5e7eb; }
.cl .cl-item h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 18px; margin: 12px 0 6px; }
.cl .cl-v { font-family: var(--f-mono, Consolas, monospace); font-size: 20px; color: #14532d; }
.cl .cl-item time { font-size: 13px; font-weight: 400; color: #6b7280; }
.cl .cl-tag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: #fff3cd; color: #8a6100; }
.cl .cl-item h3 { font-size: 14px; margin: 14px 0 4px; color: #33413a; }
.cl .cl-item ul { margin: 0; padding-left: 1.3em; }
.cl .cl-item li { margin: 3px 0; }
/* 近 6 仗：舊欄位 + 新樣式（2026-11-13） */
table.rc-six-full td, table.rc-six-full th { padding: 4px 8px; }
table.rc-six-full td.r { text-align: right; font-variant-numeric: tabular-nums; }
table.rc-six-full td.six-rno { white-space: nowrap; }
table.rc-six-full td.six-rno .vid-btn { margin-left: 3px; vertical-align: middle; }
table.rc-six-full td.six-cup { text-align: center; }
table.rc-six-full td.fast { color: #c0262d; font-weight: 700; }
/* 近 6 仗表喺排位大表入面：外面 table.form.rc-table 嘅 td 間距（0.11em）同左邊線會蓋落嚟，呢度用更高指定還原 */
table.form.rc-table table.rc-six th, table.form.rc-table table.rc-six td { padding: 4px 9px; border-left: 0; font-size: inherit; }
table.form.rc-table table.rc-six th { padding-top: 5px; padding-bottom: 5px; }
/* 近 6 仗：每匹馬一樣闊、欄位對齊（固定欄闊，2026-11-13） */
table.form.rc-table table.rc-six-full { table-layout: fixed; }
table.form.rc-table table.rc-six-full th, table.form.rc-table table.rc-six-full td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.form.rc-table table.rc-six-full th, table.form.rc-table table.rc-six-full td { padding: 4px 5px; }

/* 首頁橫幅：場地狀況（由賽事備忘搬上嚟，2026-11-14） */
.hn-going { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hn-going-i { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-size: 14px; white-space: nowrap; }
.hn-going-i b { color: #fff; font-weight: 700; }
.hn-going-i small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.hn-going-i.awt { background: rgba(160, 110, 60, .35); }

/* 首頁橫幅右邊：越洋轉播細卡（2026-11-14） */
.hn-later.os .hn-oslab { padding: 1px 6px; border-radius: 4px; background: #e07b39; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; text-shadow: none; }
.hn-later.os { flex-wrap: wrap; row-gap: 2px; }
.hn-tag.live { background: #c62828; color: #fff; }
.hn-later.os .hn-oslab.local { background: #1f7a4d; } /* 下次賽事（本地）標籤：綠色 */
.hn-btns .hn-count { margin-top: 0; margin-left: 4px; align-self: center; } /* 倒數／已完結放喺按鈕右邊（2026-11-14） */
.hn-btns:has(.hn-count) { gap: 8px; } /* 多咗倒數／已完結：收窄少少，1024 闊都放得落一行 */
.hn-btns .hn-started { padding: 4px 8px; }

/* 連贏／位置Q 表退出馬（2026-11-15）：格仔灰色「-」，馬號灰色刪除線 */
.rc-q-table td.qe.qscr { color: #9aa3ad; text-align: center; vertical-align: middle; }
.rc-q-table td.ql.qscr { color: #9aa3ad; text-decoration: line-through; }
/* 賠率區各分頁退出馬（2026-11-15）：隔夜、孖寶、二重彩、分段、外地 */
#oddsroom td.qscr { color: #9aa3ad; text-align: center; }
#oddsroom th.qscr, #oddsroom th.qscr small { color: #9aa3ad; text-decoration: line-through; }
#oddsroom td.qscr .hno { opacity: .5; }
/* 排位表簡易賽績：頭四名（2026-11-16）跟馬匹頁三甲：細字馬名、自己 ▲ 灰色；分組表頭置中、冠亞季殿細表頭 */
table.rc-six-full th.grp { text-align: center; border-bottom: 1px solid #dfe5ee; }
table.rc-six-full tr.sub-head th { padding-top: 2px; padding-bottom: 2px; text-align: center; font-size: 0.8em; font-weight: 400; color: #6b7a8f; }
table.rc-six-full td.top3 { font-size: var(--fs-sm, 13px); }
table.rc-six-full td.top3 a { color: inherit; }
table.rc-six-full td.top3 a:hover { color: var(--accent); }
table.rc-six-full td.top3-self { color: var(--muted); text-align: center; }
/* 排位表展開六程績：展開咗嘅馬匹行、同緊接展開之後嗰匹馬，頂線加粗分開每匹馬（2026-11-16） */
table.form.rc-table > tbody > tr.run.open6 > td,
table.form.rc-table > tbody > tr.rc-detail:not([hidden]) + tr.run > td { border-top: 3px solid #5b6b82; }
/* 試閘：每組欄闊、行高一樣（2026-11-16）；固定欄闊，太長截短出「…」，唔會撐闊或變兩行 */
table.tri-table { table-layout: fixed; }
.tri-table th, .tri-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 遠征紀錄（2026-11-19）：賽績表按日期夾入；淺藍底＋左邊藍線，「遠征」標籤同試閘標籤一樣大細 */
table.form tr.ovs-run td { background: #e8f1fb !important; }
table.form tr.ovs-run td:first-child { box-shadow: inset 4px 0 0 #1f5fa8; }
table.form tr.ovs-run .ovs-tag { display: inline-block; box-sizing: border-box; width: 28px; font-size: 11px; line-height: 1.3; padding: 0; border-radius: 2px;
  text-align: center; vertical-align: middle; background: #1f5fa8; color: #fff; }

/* 用家 2026-11-19：賽績表三甲（冠、亞、季）三欄固定闊度，馬名太長就省略（滑鼠放上去睇全名）；只限馬匹頁，賽果頁等唔好受影響 */
#horse .form-panel > .form-wrap > table.form > tbody > tr > td.top3,
#horse .form-panel > .form-wrap > table.form > tbody > tr > td.top3-self,
#horse .form-panel > .form-wrap > table.form > tbody > tr.run > td:nth-last-child(-n+7):not(.odds) {
  width: 5em; min-width: 5em; max-width: 5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#horse .form-panel > .form-wrap > table.form > tbody > tr > td.top3-self { text-align: center; }

/* 用家 2026-11-20：馬匹資料「場地成績」草地、泥地分開：草地淺綠底、泥地淺啡底（同賽績表場地格一樣），泥地第一行上面加粗線 */
.hp-table tr.area-turf td { background: #f4faf6; } /* 用家要再淺啲（2026-11-20） */
.hp-table tr.area-dirt td { background: #fbf7f0; }
.hp-table tr.area-grp td { border-top: 2px solid #c8a882; }

/* KEN 排位表新版（kendeclnew，2026-11-21）：調1–6、L800、L400 同全場同程最快比較落色（蓋過同程淺紅底） */
.kn-t tbody tr td.kc-r { background: #e53935; color: #fff; font-weight: 700; } /* 2026-11-21 用家要分得清楚啲：四隻色拉開 */
.kn-t tbody tr td.kc-o { background: #ffa726; color: #1c2430; }
.kn-t tbody tr td.kc-y { background: #fff176; color: #1c2430; }
.kn-t tbody tr td.kc-g { background: #a5d6a7; color: #1c2430; }
/* 紅底配埋「末段全場最快」紅字會睇唔到：改白字加底線 */
.kn-t tbody tr td.kc-r.fast { color: #fff; text-decoration: underline; }
/* 其餘底色上嘅「末段全場最快」紅字加深，免同橙底撞色 */
.kn-t tbody tr td.kc-o.fast, .kn-t tbody tr td.kc-y.fast, .kn-t tbody tr td.kc-g.fast { color: #9b0000; }
/* KEN 排位表（新）往績表固定欄闊（2026-11-21）：每隻馬一樣；評語欄轉行唔撐闊 */
table.kn-t.kn-fix { table-layout: fixed; }
.kn-t.kn-fix td.kn-cm, .kn-t.kn-fix td.l:last-child { white-space: normal; word-break: break-all; }
