:root{--bg:#eff2f4;--card:#fff;--line:#dde4eb;--text:#1f2d3d;--muted:#6b7a88;--green:#0f7f44;--yellow:#ffe56a;--red:#e5484d;--rise:#3fb950;--deep:#b8642b}
*{box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#fff;margin:0;color:var(--text)}
.wrap{max-width:769px;margin:0 auto;padding:0}
.card{background:var(--card);border:none;border-radius:0;padding:10px;margin-bottom:-25px}
.head{background:#0d5c2e;color:#fff;border:0;border-radius:0;padding:12px 14px}
.meta{display:block;font-size:13px;opacity:.95;font-weight:500}
.head-tools{display:flex;align-items:center;gap:10px}
.member-center-btn{display:inline-flex;align-items:center;justify-content:flex-end;min-width:92px;padding:0;border:none;border-radius:0;color:#ff4d4f;text-decoration:none;font-size:13px;background:transparent;box-shadow:none}
.member-center-btn:hover{opacity:.9}
.member-center-name{display:block;max-width:124px;font-size:16px;line-height:1.1;font-weight:700;color:#ff4d4f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.member-center-btn.guest .member-center-name,.member-center-btn.member .member-center-name{color:#ff4d4f}
.races{display:none}
.btn{display:inline-block;padding:6px 10px;border:1px solid #c8d2de;border-radius:999px;text-decoration:none;color:#2a3b52;background:#f8fafc;white-space:nowrap;font-size:12px}
.tabs{display:flex;gap:2px;overflow:auto;padding:6px;background:#f1f5f9;border-radius:12px;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
.tab{border:none;border-radius:10px;padding:8px 14px;background:transparent;color:#475569;font-size:25px;cursor:pointer;white-space:nowrap;font-weight:500;transition:background .2s,color .2s}
.tab:hover{background:rgba(13,92,46,.08);color:#0d5c2e}
.tab[data-tab="wp"],#panel-wp{display:none !important}
.tab.active{background:#0d5c2e;color:#fff;font-weight:600;box-shadow:0 1px 3px rgba(13,92,46,.25)}
.tab.tab-locked{opacity:.55;position:relative}
.tab.tab-locked::after{content:"锁";font-size:12px;margin-left:6px}
.panel{display:none;padding:0}
.panel.active{display:block}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th,.table td{border-bottom:1px solid #e8edf2;padding:7px 6px;text-align:left;vertical-align:top}
.table th{background:#f6f9fc;position:sticky;top:0}
.muted{color:var(--muted);font-size:12px}.live{color:#b7ffd6;font-weight:600}.warn{color:#ffd5d5}
.jockey-trainer{color:#2e68bd}
/* 临场心水：字体与赛果一致 - 小卡片、獨贏/位置同一行、左侧金/绿竖条 */
.tips-list{display:flex;flex-direction:column;gap:4px;font-size:16px}
.tip-card{display:flex;flex-direction:column;padding:4px 8px;background:#fff;border:1px solid #e4e4e7;border-radius:8px;border-left:4px solid #d4a017;font-size:16px}
.tip-card:nth-child(even){border-left-color:#0d5c2e}
.tip-body{flex:1;min-width:0}
.tip-name{font-weight:800;font-size:18px;color:#0d5c2e;margin-bottom:0;line-height:1.25}
.tip-meta{font-size:14px;color:var(--muted);line-height:1.25;white-space:pre-wrap}
.tip-meta-line{display:block;margin-bottom:0}
.tip-meta-row{display:flex;justify-content:space-between;align-items:center;gap:4px;width:100%;margin-top:2px;padding-top:2px;border-top:1px dashed #e4e4e7;flex-wrap:wrap}
.tip-meta-row .tip-meta-left{flex:1;min-width:0;font-size:14px}
.tip-meta-row .tip-meta-right{flex-shrink:0;display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:14px;font-weight:700;margin-right:0}
.tips-msg{width:100%;text-align:center;font-weight:700;font-size:16px;padding:8px 6px;box-sizing:border-box}
.tip-meta-row .tip-odds-w,.tip-meta-row .tip-odds-p{font-size:14px;font-weight:400}
.tip-meta-row .tip-odds-w{color:#1d4ed8}
.tip-meta-row .tip-odds-p{color:#0d9488}
.tip-meta-row .wp-val-plain,.tip-meta-row .wp-up,.tip-meta-row .wp-down{padding:1px 3px;border-radius:2px;font-weight:700;font-size:14px}
.tip-meta-row .arrow-up,.tip-meta-row .arrow-down{font-size:14px}
.div-table td,.div-table th{text-align:center}
.qwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin:0;padding:0}
.qwrap-offset{margin-left:28%;max-width:72%}
@media(max-width:768px){.qwrap-offset{margin-left:0;max-width:100%}}
/* 仅赔率表格保留细线，其余无边框 */
.qtable{font-size:12px;min-width:680px;border-collapse:collapse;border:1px solid #ccc;background:#fff}.qtable td,.qtable th{padding:4px 6px;border:1px solid #ccc;vertical-align:middle}
.qtable tr:first-child th{background:#6b7280;color:#fff;text-align:center;font-weight:600}
.qtable th:first-child{text-align:center;position:sticky;left:0;z-index:1;min-width:2.2em}
.qtable tr:first-child th:first-child{background:#6b7280;color:#fff}
.qtable tr:not(:first-child) th:first-child{background:#fff;color:#1f2d3d;text-align:center}
.qtable td{text-align:right}
.panel#panel-q .qtable td{text-align:center}
.qtable td.q-na{background:#eaeaea;color:#777;font-weight:normal}
.qtable th.q-gap,.qtable td.q-gap{width:6px;min-width:6px;padding:0;border-left:2px solid #ccc;background:#f0f0f0}
/* 官网 Q 赔率矩阵：連贏/位置Q 框适中高度，数字不换行 */
.qin-odds-slide-container{position:relative;overflow:visible;width:100%}
.qin-odds-slide{position:relative;overflow:visible;width:100%}
.qin-table{display:block;width:100%}
.qin-odds-table{width:100%;max-width:100%;font-size:clamp(11px,2.5vw,13px);border-collapse:collapse;border:1px solid #ccc;background:#fff;table-layout:fixed}
.qin-odds-table td,.qin-odds-table th{padding:6px 4px;border:1px solid #ccc;vertical-align:middle;text-align:center;overflow:visible;word-break:normal;box-sizing:border-box;min-height:28px;line-height:1.3}
.qin-odds-table .iwn-odds-table-row td:not(.left-number):not(.right-number):not(.center-number):not(.q-empty),.qin-odds-table .iwn-odds-table-row.sec td:not(.left-number):not(.right-number):not(.center-number):not(.q-empty){white-space:nowrap}
/* 固定框架有底色：表头、对角、最左9-14、最右1-7、空列 */
.qin-odds-table-header td{background:#e5e7eb;color:#1f2d3d;font-weight:600}
.qin-odds-table-title{text-align:left;font-size:1.35em;font-weight:700}
.qin-odds-table-QIN .qin-odds-table-title{background:#1e3a5f;color:#fff}
.qin-odds-table-QIN .qin-odds-table-header td,.qin-odds-table-QIN .left-number,.qin-odds-table-QIN .right-number,.qin-odds-table-QIN .center-number{background:#1e3a5f !important;color:#fff !important;font-weight:600}
.qin-odds-table-QPL .qin-odds-table-title{background:#1e3a5f;color:#fff}
.qin-odds-table-QPL .qin-odds-table-header td,.qin-odds-table-QPL .left-number,.qin-odds-table-QPL .right-number,.qin-odds-table-QPL .center-number{background:#1e3a5f !important;color:#fff !important;font-weight:600}
.qin-odds-table .center-number{background:#d1d5db;color:#1f2d3d;font-weight:600}
.qin-odds-table .left-number{background:#e5e7eb;text-align:center;color:#1f2d3d;font-weight:600}
.qin-odds-table .right-number{background:#e5e7eb;text-align:center;color:#1f2d3d;font-weight:600}
.qin-odds-table .q-empty{background:#fff;min-width:0}
.qin-odds-table .left-number,.qin-odds-table .right-number{min-width:0}
.qin-odds-table .iwn-odds-table-row td,.qin-odds-table .iwn-odds-table-row.sec td{min-height:28px}
/* 奇偶行：奇数行白底，偶数行浅灰底；赔率走势格仍按下面规则上色 */
.qin-odds-table tr.iwn-odds-table-row td{background:#fff}
.qin-odds-table tr.iwn-odds-table-row td.left-number,.qin-odds-table tr.iwn-odds-table-row td.right-number,.qin-odds-table tr.iwn-odds-table-row td.center-number{background:#fff}
.qin-odds-table tr.iwn-odds-table-row.sec td{background:#f0f0f0}
.qin-odds-table tr.iwn-odds-table-row.sec td.left-number,.qin-odds-table tr.iwn-odds-table-row.sec td.right-number,.qin-odds-table tr.iwn-odds-table-row.sec td.center-number{background:#f0f0f0}
/* 赔率走势上色：须覆盖上方白底，用同等或更高优先级 */
.qin-odds-table .iwn-odds-table-row td.favourite,.qin-odds-table .iwn-odds-table-row.sec td.favourite{background:#f03939 !important;color:#fff;font-weight:600}
.qin-odds-table .iwn-odds-table-row td.q-down20,.qin-odds-table .iwn-odds-table-row.sec td.q-down20{background:#2aa217 !important;color:#fff;font-weight:600}
.qin-odds-table .iwn-odds-table-row td.q-down50,.qin-odds-table .iwn-odds-table-row.sec td.q-down50{background:#993300 !important;color:#fff;font-weight:600}
/* WP赔率表格也仅表格内保留细线 */
.panel#panel-wp .table th,.panel#panel-wp .table td{border:1px solid #e5e9ef}
.panel#panel-rank .table th,.panel#panel-rank .table td{border-bottom:1px solid #e8edf2}
/* 排位+WP 合并表：字体+4(16px)、表格自适应；号码与马名粗体 */
.rank-wp-wrap{overflow-x:auto;overflow-y:hidden;height:auto;max-height:700px;-webkit-overflow-scrolling:touch;width:100%}
@media(max-width:768px){.rank-wp-wrap{scrollbar-width:none;-ms-overflow-style:none}.rank-wp-wrap::-webkit-scrollbar{display:none}}
.rank-q-block{margin-top:16px;padding-top:12px;border-top:1px solid #e8edf2}
.rank-q-title{font-size:18px;font-weight:700;color:#1f2d3d;margin-bottom:8px}
.panel#panel-rank .rank-q-block .qin-odds-table-QIN .qin-odds-table-title,.panel#panel-rank .rank-q-block .qin-odds-table-QPL .qin-odds-table-title{background:#0d5c2e;color:#fff}
.panel#panel-rank .rank-q-block .qin-odds-table-QIN .qin-odds-table-header td,.panel#panel-rank .rank-q-block .qin-odds-table-QIN .left-number,.panel#panel-rank .rank-q-block .qin-odds-table-QIN .right-number,.panel#panel-rank .rank-q-block .qin-odds-table-QIN .center-number,.panel#panel-rank .rank-q-block .qin-odds-table-QPL .qin-odds-table-header td,.panel#panel-rank .rank-q-block .qin-odds-table-QPL .left-number,.panel#panel-rank .rank-q-block .qin-odds-table-QPL .right-number,.panel#panel-rank .rank-q-block .qin-odds-table-QPL .center-number{background:#0d5c2e !important;color:#fff !important;font-weight:600}
.rank-wp-table{width:100%;max-width:100%;min-width:480px;font-size:16px;table-layout:auto}
.rank-wp-table th,.rank-wp-table td{padding:5px 10px;border:1px solid #e8edf2;vertical-align:middle;white-space:nowrap;text-align:center}
.rank-wp-table th{background:#f6f9fc;font-weight:600;font-size:1em}
.rank-wp-table th.sortable{cursor:pointer;user-select:none}
.rank-wp-table th.sortable:hover{background:#e8ecf0}
.rank-wp-table th.sortable::after{content:' ⇅';font-size:14px;font-weight:700;opacity:.85}
.rank-wp-table th.sortable.asc::after{content:' ↑';font-size:14px;font-weight:700;opacity:1}
.rank-wp-table th.sortable.desc::after{content:' ↓';font-size:14px;font-weight:700;opacity:1}
/* 仅獨贏、位置列不显示排序箭头，W% / P% 保留 */
.rank-wp-table th.sortable:nth-child(4)::after,.rank-wp-table th.sortable:nth-child(6)::after{content:none !important;display:none}
.rank-wp-table th:nth-child(1),.rank-wp-table td:nth-child(1){position:sticky;left:0;z-index:2;background:#fff;width:3em;min-width:3em;max-width:3em;text-align:center;box-shadow:2px 0 4px rgba(0,0,0,.06);font-weight:700}
.rank-wp-table th:nth-child(2),.rank-wp-table td:nth-child(2){position:sticky;left:3em;z-index:2;background:#fff;min-width:4em;box-shadow:2px 0 4px rgba(0,0,0,.06);text-align:left}
.rank-wp-table th:nth-child(3){width:2.2em;min-width:2.2em;max-width:2.2em;text-align:center}
.rank-wp-table td:nth-child(3){width:2.2em;min-width:2.2em;max-width:2.2em;text-align:center;font-size:1.35em;font-weight:700;color:#0d47a1}
.draw-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.35em;height:1.35em;line-height:1;border-radius:50%;font-weight:700;font-size:0.85em;background:#fff;color:#0d47a1;border:1px solid #0d47a1;box-sizing:border-box}
.rank-wp-table th:nth-child(4),.rank-wp-table th:nth-child(5),.rank-wp-table th:nth-child(6),.rank-wp-table th:nth-child(7){width:2.8em;min-width:2.8em;max-width:2.8em;text-align:center;font-size:1em}
.rank-wp-table td:nth-child(4),.rank-wp-table td:nth-child(5),.rank-wp-table td:nth-child(6),.rank-wp-table td:nth-child(7){width:2.8em;min-width:2.8em;max-width:2.8em;text-align:center;font-size:1.15em;font-weight:700;background:#fff}
.rank-wp-table td:nth-child(4) .wp-trend,.rank-wp-table td:nth-child(6) .wp-trend{font-size:1em;font-weight:700;margin-left:2px;vertical-align:middle}
.rank-wp-table thead th:nth-child(1),.rank-wp-table thead th:nth-child(2){background:#f6f9fc}
.rank-wp-table .horse-name{font-size:1.05em;font-weight:700;color:#000;cursor:pointer}
.rank-wp-table .horse-name:hover{color:#0d5c2e}
.rank-wp-table .horse-jockey{font-size:0.85em;font-weight:normal;margin-left:4px;color:#c00}
.rank-wp-table .horse-weight{font-size:0.5em;font-weight:700;color:#0d47a1;margin-left:4px}
.rank-wp-table .last6-bold-red{font-weight:700;color:#c00}
.rank-wp-table .wp-trend{margin-left:2px;vertical-align:middle}
.rank-wp-table .scr-exit-text{font-size:75%;font-weight:600}
.rank-wp-table tbody tr:nth-child(odd) td{background:#fff}
.rank-wp-table tbody tr:nth-child(even) td{background:#f0f0f0}
.rank-wp-table tbody tr:nth-child(odd) td:nth-child(1),.rank-wp-table tbody tr:nth-child(odd) td:nth-child(2){background:#fff}
.rank-wp-table tbody tr:nth-child(even) td:nth-child(1),.rank-wp-table tbody tr:nth-child(even) td:nth-child(2){background:#f0f0f0}
/* 獨贏/位置：紅/綠/深紅滿格顯示（僅 CSS，不改邏輯） */
.rank-wp-table td:nth-child(4):has(.wp-down),.rank-wp-table td:nth-child(6):has(.wp-down){background:#f03939 !important;color:#fff}
.rank-wp-table td:nth-child(4):has(.wp-up),.rank-wp-table td:nth-child(6):has(.wp-up){background:#2aa217 !important;color:#fff}
.rank-wp-table td:nth-child(4):has(.wp-down50),.rank-wp-table td:nth-child(6):has(.wp-down50){background:#993300 !important;color:#fff}
.rank-wp-table td:nth-child(4) .wp-down,.rank-wp-table td:nth-child(4) .wp-up,.rank-wp-table td:nth-child(4) .wp-down50,.rank-wp-table td:nth-child(6) .wp-down,.rank-wp-table td:nth-child(6) .wp-up,.rank-wp-table td:nth-child(6) .wp-down50{background:transparent !important;color:inherit;padding:0}
.rank-wp-table td.pct-hot{color:#c00}
.rank-wp-table td.pct-hot-strong{font-weight:800;background:#ffe7e7}
.horse-detail-mask{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1000}
.horse-detail-mask.show{display:block}
.horse-detail-modal{display:none;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1001;width:70vw;max-width:70vw;min-width:280px;max-height:90vh;overflow:auto;box-sizing:border-box}
.horse-detail-modal.show{display:block}
#actorDetailMask{z-index:1002}
#actorDetailModal{z-index:1003}
.horse-detail-inner{background:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.2);width:100%;min-height:0;height:auto}
.horse-detail-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #e8edf2;background:#f6f9fc}
.horse-detail-head h3{margin:0;font-size:16px;font-weight:700}
.horse-detail-close{border:none;background:none;font-size:24px;line-height:1;cursor:pointer;color:#6b7a88;padding:0 4px}
.horse-detail-close:hover{color:#1f2d3d}
.horse-detail-body{padding:14px;font-size:14px;line-height:1.6;height:auto;min-height:0;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch}
.horse-detail-body .detail-row{display:flex;margin-bottom:8px;gap:8px}
.horse-detail-body .detail-line{margin-bottom:6px;font-size:14px;line-height:1.5}
.horse-detail-body .detail-line .detail-pair{display:inline;margin-right:14px;white-space:nowrap}
.horse-detail-body .detail-line .detail-pair .detail-label{color:var(--muted);margin-right:2px}
.horse-detail-body .detail-label{flex:0 0 72px;color:var(--muted)}
.horse-detail-body .detail-value{flex:1;font-weight:500}
.horse-detail-body .horse-detail-silk{width:48px;height:48px;object-fit:contain;vertical-align:middle;margin-right:8px}
.horse-detail-body .detail-link{color:#1d4ed8;cursor:pointer;text-decoration:underline;font-weight:600;padding:2px 4px;margin:-2px -4px;display:inline-block;touch-action:manipulation}
.horse-detail-body .detail-link:hover{color:#0d5c2e}
.horse-detail-body .detail-section{margin-top:12px;padding:0;border-radius:10px;background:#fff;border:1px solid #e0e4e8;box-shadow:0 1px 4px rgba(0,0,0,.08);overflow:hidden}
.horse-detail-body .detail-section:first-of-type{margin-top:0}
.horse-detail-body .detail-section-title{font-weight:700;font-size:14px;margin:0;padding:10px 14px;background:#e8ecf0;color:var(--text);border-bottom:1px solid #e0e4e8}
.horse-detail-body .detail-section .detail-race-name,.horse-detail-body .detail-section .detail-race-meta,.horse-detail-body .detail-section .detail-row,.horse-detail-body .detail-section .detail-line{padding-left:14px;padding-right:14px}
.horse-detail-body .detail-section .detail-section-title + .detail-race-name,.horse-detail-body .detail-section .detail-section-title + .detail-race-meta,.horse-detail-body .detail-section .detail-section-title + .detail-row,.horse-detail-body .detail-section .detail-section-title + .detail-line{padding-top:10px}
.horse-detail-body .detail-section .detail-row:last-child,.horse-detail-body .detail-section .detail-line:last-child{padding-bottom:12px}
.horse-detail-body .detail-race-name{margin-bottom:6px;font-weight:600}
.horse-detail-body .detail-race-meta{font-size:12px;color:var(--muted);margin-bottom:8px;line-height:1.4}
.horse-detail-body .detail-horse-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.horse-detail-body .detail-odds-inline{display:inline-flex;gap:6px;margin-left:auto}
.horse-detail-body .detail-odds-inline .wp-down,.horse-detail-body .detail-odds-inline .wp-val-plain{margin-left:4px}
.horse-detail-body .detail-past-race{background:#f8fafc;border:1px solid #e4e8ec;margin-top:8px}
.horse-detail-body .detail-past-race .detail-section-title{background:#e2e6ea}
.horse-detail-body .detail-horse-info{font-size:13px;line-height:1.5}
#actorDetailBody .detail-section{margin-top:12px;padding:12px 14px;border-radius:10px;background:#f8fafc;border:1px solid #e8edf2;box-shadow:0 1px 3px rgba(0,0,0,.06)}
#actorDetailBody .detail-section:first-of-type{margin-top:0}
#actorDetailBody .detail-section-title{font-weight:700;font-size:14px;margin-bottom:8px;color:var(--text);padding-bottom:6px;border-bottom:1px solid #e0e4e8}
.q-fit-inner{display:block}
.q-tables-gap{min-height:1em}
.q-meta-row{display:flex;align-items:center;justify-content:space-between;padding:6px 0;font-size:13px;color:var(--muted)}
.q-meta-row .q-update-time{flex:1}
.q-meta-row .q-refresh-btn{border:none;background:none;cursor:pointer;font-size:18px;padding:4px;margin-left:8px}
.q-meta-row .q-refresh-btn:hover{opacity:.8}
.odds-legend{margin-top:6px;font-size:12px;color:var(--muted)}
.odds-legend .legend-top-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.odds-legend .legend-top-row .legend-label{font-weight:700}
.odds-legend .legend-top-row .legend-right{display:flex;align-items:center;gap:4px}
.odds-legend .legend-top-row .q-refresh-btn{border:none;background:none;cursor:pointer;font-size:18px;padding:4px}
.odds-legend .legend-top-row .q-refresh-btn:hover{opacity:.8}
.odds-legend .legend-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.rank-meta-row{margin-top:6px;margin-bottom:8px;display:flex;align-items:center;justify-content:flex-end;font-size:13px;color:var(--muted)}
.rank-meta-row .q-update-time{margin-right:4px}
.rank-meta-row .q-refresh-btn{border:none;background:none;cursor:pointer;font-size:18px;padding:4px}
.rank-meta-row .q-refresh-btn:hover{opacity:.8}
.panel#panel-rank .rank-odds-legend{margin-top:10px}
.legend-item{display:inline-flex;align-items:center;gap:4px}
.legend-dot{width:10px;height:10px;border-radius:2px;flex-shrink:0}
.legend-dot.hot{background:#f03939}
.legend-dot.down20{background:#2aa217}
.legend-dot.down50{background:#993300}
/* 移动端：整页无外框，仅赔率表有细线；Q表横向滚动避免列被压扁 */
@media(max-width:768px){
  .wrap{padding:0}
  .card.tabs-card{padding:6px 8px}
  .tabs{padding:5px;border-radius:10px}
  .tab{padding:6px 10px;font-size:23px}
  .head-tools{gap:8px}
  .member-center-btn{min-width:84px}
  .member-center-name{max-width:90px;font-size:14px}
  #panel-q{padding:0;max-width:100%;min-width:0;overflow-x:hidden}
  .panel#panel-rank .rank-wp-table{font-size:clamp(13px,3.8vw,16px)}
  .panel#panel-q .q-fit-wrap,.panel#panel-q .q-fit-inner,.panel#panel-q #qodd{max-width:100%;min-width:0}
  .qwrap{width:100%;max-width:100%;margin:0;padding:0;overflow:visible;min-width:0}
  .qtable{width:100% !important;min-width:0 !important;max-width:100%;table-layout:fixed;border-collapse:collapse;font-size:clamp(8px,2.4vw,11px);line-height:1.25}
  .qtable td,.qtable th{padding:2px 4px;border:1px solid #ddd;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
  .qin-odds-table{width:100%;max-width:100%;table-layout:fixed;font-size:clamp(10px,2.4vw,12px)}
  .qin-odds-table td,.qin-odds-table th{padding:6px 3px;overflow:visible;word-break:normal;box-sizing:border-box;min-height:26px;line-height:1.3}
  .panel#panel-q .qtable td,.panel#panel-q .qin-odds-table td{text-align:center}
  .panel#panel-q .q-fit-wrap{margin:0;overflow:visible}
  .panel#panel-q .q-fit-inner{overflow:visible}
  .panel#panel-q .q-tables-gap{min-height:1em}
  .panel#panel-q .odds-legend{margin-top:4px;font-size:11px}
}
/* 賠率走勢提示（用户确认颜色正确）：熱門=红 賠率下降20%=绿 賠率下降50%=棕 */
.hot{background:#f03939;color:#fff;font-weight:600}
.q-down20{background:#2aa217;color:#fff;font-weight:600}
.q-down50{background:#993300;color:#fff;font-weight:600}
/* WP赔率 1:1 原APP：上升=蓝字无块+绿箭头；下降=绿底白字+红箭头(仅箭头着色无块)；熱門=红底白字 */
.wp-val-plain{color:#1a56db;font-weight:600}
.wp-up{background:#2aa217;color:#fff;font-weight:600;padding:2px 6px;border-radius:4px;display:inline-block}
.wp-down{background:#f03939;color:#fff;font-weight:600;padding:2px 6px;border-radius:4px;display:inline-block}
.wp-down50{background:#993300;color:#fff;font-weight:600;padding:2px 6px;border-radius:4px;display:inline-block}
.arrow-up{color:#2aa217;font-weight:700}
.arrow-down{color:#e67e22;font-weight:700}
/* 箭頭暫時隱藏，需恢復時刪除下面兩行即可 */
.arrow-up,.arrow-down{display:none !important}
.table td .horse-name{color:#1f2d3d}
.badge{display:inline-block;padding:2px 6px;border-radius:999px;background:#edf3ff;color:#315ea8;font-size:11px}
.menu-btn{background:transparent;border:0;color:#fff;font-size:30px;line-height:1;cursor:pointer;margin-right:6px;padding:6px 10px;vertical-align:middle;display:inline-flex;align-items:center;justify-content:center}
.card.head .menu-btn,.topline .menu-btn{font-size:30px !important}
.menu-btn .menu-btn-icon,.card.head .menu-btn .menu-btn-icon{font-size:30px !important;line-height:1;display:inline-block;font-weight:700;vertical-align:middle}
/* 1:1 头部：☰ 與 第N場 對齊、大小一致 */
.topline{display:flex;align-items:center;gap:10px}
.head-race-wrap{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.race-pill{background:/*rgba(255,255,255,.18);*/color:#fff;font-size:30px;font-weight:700;line-height:1;padding:6px 12px;border-radius:8px;cursor:pointer}
.replay-open-btn{border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.12);color:#fff;font-size:17px;font-weight:700;padding:6px 10px;border-radius:8px;cursor:pointer;white-space:nowrap}
.head-eventname{font-size:21px;font-weight:700;color:#fff;margin-top:6px;display:block}
.head .meta{font-size:20px;opacity:.95;color:#fff;line-height:1.5;margin-top:4px}
.head-status{display:none}
.head #eventsHint{color:#b8e6c8;font-size:11px}
.right-state{background:transparent !important;box-shadow:none !important;color:#ffe56a;font-weight:600;padding:6px 12px;border-radius:0;font-size:30px}
.card.head .right-state{font-size:30px !important}
.right-state .state-open{color:#e5484d}
.drawer-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;z-index:40}
.drawer{position:fixed;left:0;top:0;bottom:0;width:50%;min-width:280px;max-width:400px;background:#f0f0f0;transform:translateX(-100%);transition:.2s;z-index:41;overflow:auto}
.drawer.open{transform:translateX(0)}
.drawer-head{background:#0f713c;color:#fff;padding:12px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.drawer-head-left{min-width:0}
.drawer-head b{font-size:1.3em;font-weight:700;display:block;line-height:1.25}
.drawer-head-sub{font-size:15px;opacity:.9;margin-top:2px}
.drawer-version{flex-shrink:0;font-size:13px;opacity:.95;white-space:nowrap;align-self:center}
.drawer-head>div{font-size:15px}
.drawer-date{background:#666;color:#fff;padding:10px;font-size:17px;line-height:1.4;border-top:1px solid #888;cursor:pointer;user-select:none}
.drawer-date:first-child{border-top:none}
.drawer-date-collapsed::after{content:' ▶';opacity:.8;font-size:15px}
.drawer-date-expanded::after{content:' ▼';opacity:.8;font-size:15px}
.drawer-date-races{background:transparent !important;box-shadow:none !important}
#drawerBody .race-item{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #ddd;background:transparent !important;box-shadow:none !important;cursor:pointer}
#drawerBody .race-item.active{background:transparent !important;box-shadow:none !important}
#drawerBody .race-item .main{font-size:21px !important;line-height:1.3}
#drawerBody .race-item-time{font-size:21px !important;color:#666;box-shadow:none !important;line-height:1.3}
#drawerBody .race-item-right{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
#drawerBody .race-item-ended{font-size:14px;font-weight:700;color:#0d47a1}
.race-item .main{font-size:21px !important}
.race-item-time{font-size:21px !important;color:#666;box-shadow:none !important}
.race-item{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #ddd;background:transparent !important;box-shadow:none !important;cursor:pointer}
.race-item.active{background:transparent !important;box-shadow:none !important}
.race-item .sub{font-size:15px;color:#666}
/* 派彩 1:1 原APP 图1：表头深灰白字、勝出組合蓝圈、派彩右对齐加粗、条纹、细线 */
.div-table thead th{background:#5a5a5a;color:#fff;font-weight:600;border:1px solid #555;padding:8px 10px}
.div-table td,.div-table th{border:1px solid #ddd;padding:8px 10px;vertical-align:middle}
.div-table tbody tr:nth-child(odd){background:#f9f9f9}
.div-table tbody tr:nth-child(even){background:#fff}
.div-table .col-pool{text-align:left}
.div-table .col-combo{text-align:center}
.div-table .col-amount{text-align:right}
.div-table .div-empty-msg{font-weight:700;font-size:clamp(16.8px,4.8vw,21.6px);text-align:center;padding:12px 8px}
.div-combo-nums{font-weight:700;font-size:1.2em}
.div-amount{font-weight:700;color:#1f2d3d;font-size:1.1em}
.div-table tr.row-qinella td{background:#e3f2fd}
/* 首屏加载进度条：覆盖内容区，加载完成后隐藏 */
.loading-screen{position:fixed;inset:0;background:rgba(255,255,255,0.4);backdrop-filter:blur(4px);z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.loading-screen.hidden{display:none !important}
.loading-text{font-size:15px;color:#555}
.loading-bar-wrap{width:80%;max-width:280px;height:8px;background:#e8edf2;border-radius:4px;overflow:hidden}
.loading-bar{height:100%;width:0%;background:#0f713c;border-radius:4px;transition:width .3s ease}
.loading-percent{font-size:13px;color:#888}
@media(max-width:480px){.horse-detail-modal{width:92vw;max-width:92vw}}
@media(max-width:420px){.wrap{padding:0}.card{padding:8px}.table{font-size:12px}}
/* 右下角數據到來提示，3 秒自動關閉 */
#toastContainer{position:fixed;right:12px;bottom:16px;z-index:1600;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}
.toast-msg{padding:10px 16px;background:rgba(15,113,60,.95);color:#fff;border-radius:8px;font-size:14px;font-weight:600;box-shadow:0 4px 12px rgba(0,0,0,.2);animation:toastIn .25s ease;pointer-events:auto}
.toast-msg.hide{animation:toastOut .25s ease forwards}
@keyframes toastIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@keyframes toastOut{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(20px)}}
/* 重温播放器弹层 */
.replay-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.8);z-index:1200;padding:0}
.replay-modal.show{display:block}
.replay-wrap{position:relative;width:100%;max-width:100%;margin:0;background:#000;border:1px solid #1f2937;height:600px}
.replay-close{position:absolute;right:8px;top:8px;border:none;background:rgba(0,0,0,.55);color:#fff;width:34px;height:34px;border-radius:50%;font-size:22px;line-height:1;z-index:3;cursor:pointer}
.replay-ratio{position:relative;height:100%}
#replayPlayer{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain}
.replay-overlay{position:absolute;left:0;right:0;bottom:0}
.replay-progress-wrap{height:4px;background:#8da0b3}
#replayProgress{height:100%;width:0;background:#1f5fff}
.replay-tabs{display:grid;grid-template-columns:repeat(4,1fr);background:rgba(20,28,40,.9)}
.replay-tab{border:none;border-right:1px solid rgba(255,255,255,.15);padding:12px 6px;font-size:16px;color:#fff;background:rgba(30,39,52,.92);cursor:pointer}
.replay-tab:last-child{border-right:none}
.replay-tab.active{background:rgba(132,140,148,.85)}
.replay-tab:disabled{opacity:.35;cursor:not-allowed}
.replay-ctl{display:grid;grid-template-columns:1fr auto auto;align-items:center;background:rgba(10,20,30,.9)}
.replay-left{display:flex;align-items:center;gap:10px;padding:12px 14px}
#replayPlayPause{font-size:28px;border:none;background:transparent;color:#fff;cursor:pointer}
#replayTimeText{font-size:20px;font-weight:600}
.replay-ctl-btn{border-left:1px solid rgba(255,255,255,.12);padding:12px 14px;font-size:22px;background:rgba(255,255,255,.06);color:#fff;border-top:none;border-right:none;border-bottom:none;cursor:pointer}
.replay-qbtn{min-width:94px}
.replay-qbtn.active{background:rgba(255,255,255,.26)}
@media(max-width:768px){
  .replay-wrap{height:100%}
}
/* 賽果：僅前4名，字體緊湊一目了然；數據區全黑字、字體放大 20% */
.result-cards{display:flex;flex-direction:column;gap:6px;padding:2px 0;font-size:16px}
.result-time-block{margin-bottom:8px;padding:6px 10px;background:#e8eef4;border-radius:8px;font-size:15px;font-weight:600;color:var(--text);line-height:1.35}
.result-time-block .result-time-line{margin-bottom:2px}
.result-time-block .result-time-line:last-child{margin-bottom:0}
.result-card{padding:8px 10px;border-radius:8px;border-left:4px solid;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);min-width:0}
.result-card .result-card-head{display:flex;align-items:center;gap:8px;width:100%;margin-bottom:4px}
.result-card .result-place-icon{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;flex-shrink:0;background:rgba(255,255,255,.35)}
.result-card .result-name{font-size:18px;font-weight:800;line-height:1.2}
.result-card .result-detail-line{font-size:14px;opacity:.98;font-weight:500;line-height:1.35;margin-top:2px}
.result-card .result-detail-line .r-item{margin-right:0.9em;white-space:nowrap}
.result-card.place-1{background:linear-gradient(145deg,#f0c14b 0%,#d4a017 50%,#b8860b 100%);border-left-color:#8b6914}
.result-card.place-2{background:linear-gradient(145deg,#e8e8e8 0%,#c0c0c0 50%,#a0a0a0 100%);border-left-color:#707070;color:#1f2d3d;text-shadow:0 0 1px rgba(255,255,255,.8)}
.result-card.place-2 .result-place-icon{color:#1f2d3d}
.result-card.place-3{background:linear-gradient(145deg,#cd7f32 0%,#b87333 50%,#8b5a2b 100%);border-left-color:#6d4c2d}
.result-card.place-4{background:linear-gradient(145deg,#4a90d9 0%,#357abd 50%,#2868a8 100%);border-left-color:#1e4d7a}
/* 賽果區：所有字黑色、字體增大 20% */
#panel-result .result-cards{font-size:19px}
#panel-result .result-time-block{font-size:18px;color:#000 !important}
#panel-result .result-time-block .result-time-line{color:#000}
#panel-result .result-card{color:#000 !important}
#panel-result .result-card .result-place-icon{font-size:22px;color:#000;background:rgba(0,0,0,.12)}
#panel-result .result-card .result-name{font-size:22px;color:#000}
#panel-result .result-card .result-detail-line{font-size:17px;color:#000;opacity:1}
#panel-result .result-card.place-2{color:#000 !important}
#panel-result .result-card.place-2 .result-place-icon{color:#000}
#panel-result .result-cards .muted{color:#000}
#panel-result .result-cards .tips-msg.muted{color:var(--muted) !important;font-size:16px !important;text-align:center;font-weight:700;padding:8px 6px;box-sizing:border-box}

/* FT（放頭）：僅在當前面板時使用 flex 與 100% 高，避免覆蓋 .panel 的 display:none */
#panel-ft.active{display:flex !important;flex-direction:column;min-height:70vh}
#panel-ft.active #ftWrap{flex:1;min-height:0;overflow:auto;max-height:none !important;background:#fff;-webkit-overflow-scrolling:touch}
#panel-ft .race-main,#panel-ft .race-detail,#panel-ft .dataTables{width:100%;max-width:100%}
#panel-ft .race-detail img,#panel-ft .race-main img,#panel-ft img.has-map{display:block;max-width:100%;height:auto}
#panel-ft .dataTables{overflow:auto;-webkit-overflow-scrolling:touch}
#panel-ft .dataTables table{width:100%;min-width:980px;border-collapse:collapse}
#panel-ft .dataTables th,#panel-ft .dataTables td{white-space:normal;word-break:break-word}
@media(max-width:768px){
  #panel-ft #ftWrap{padding:4px;max-height:none}
  #panel-ft .dataTables table{min-width:820px;font-size:12px}
}
#panel-ft .fitness-ratings-cell{min-width:44px;text-align:center;vertical-align:middle}
#panel-ft .fitness-icon{display:inline-block;width:36px;height:18px;background-repeat:no-repeat;background-position:center;background-size:contain;font-size:0;line-height:0}
#panel-ft .fitness-icon.formGuide_1up{background-image:url('/assets/hkjc/speedpro/formGuide_1up.gif') !important}
#panel-ft .fitness-icon.formGuide_2up{background-image:url('/assets/hkjc/speedpro/formGuide_2up.gif') !important}
#panel-ft .fitness-icon.formGuide_3up{background-image:url('/assets/hkjc/speedpro/formGuide_3up.gif') !important}
#panel-ft .fitness-icon.thumb_down,
#panel-ft .fitness-ratings-cell.thumb_down .fitness-icon{background-image:url('/assets/hkjc/speedpro/thumb_down.png') !important}
#panel-ft .fitness-ratings-cell img.ft-fit-img{display:inline-block !important;width:30px;height:14px;object-fit:contain;vertical-align:middle}
#panel-ft th.ft-sortable .ft-sort-ind{display:inline-flex;flex-direction:column;gap:1px;margin-left:4px;vertical-align:middle}
#panel-ft th.ft-sortable .ft-sort-ind img{width:8px;height:8px;opacity:.9;display:block}
#panel-ft .dataTables{overflow:auto;-webkit-overflow-scrolling:touch;position:relative}
#panel-ft .dataTables table{min-width:1180px;border-collapse:separate;border-spacing:0}
#panel-ft .dataTables thead th{position:sticky;top:0;z-index:5}
@media(max-width:768px){
  #panel-ft #ftWrap{overflow-x:auto !important;overflow-y:auto !important;-webkit-overflow-scrolling:touch}
  #panel-ft .dataTables table{min-width:1100px !important;width:max-content !important}
  #panel-ft .dataTables th:nth-child(1),#panel-ft .dataTables td:nth-child(1){position:sticky !important;left:0 !important;z-index:6 !important;width:3em !important;min-width:3em !important;max-width:3em !important;background:#fff !important;box-shadow:1px 0 0 #e5e7eb}
  #panel-ft .dataTables th:nth-child(2),#panel-ft .dataTables td:nth-child(2){position:sticky !important;left:3em !important;z-index:6 !important;min-width:66px !important;background:#fff !important;box-shadow:1px 0 0 #e5e7eb}
  #panel-ft .dataTables th:nth-child(1),#panel-ft .dataTables th:nth-child(2){z-index:7 !important;background:#6e8f00 !important;color:#ffe800 !important}
}
#panel-ft .ft-top-figure{width:100%;display:block;overflow:hidden}
#panel-ft .ft-top-figure img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;cursor:zoom-in}
/* 騎練：單一區塊、左側按鈕切換、首列固定、官方配色 */
#panel-jock .jock-body{display:flex;flex-direction:column;width:100%;gap:0;min-height:200px;min-height:70vh}
#panel-jock .jock-tabs{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;margin-bottom:10px}
#panel-jock .jock-tabs .jock-tabs-btns{display:flex;gap:8px}
#panel-jock .jock-tab.jock-refresh-btn{margin-left:auto;flex-shrink:0}
#panel-jock .jock-tab{border:1px solid #c8d2de;background:#f6f9fc;color:#2a3b52;padding:10px 14px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
#panel-jock .jock-tab:hover{background:#e8ecf0;border-color:#1e3a5f;color:#1e3a5f}
#panel-jock .jock-tab.active{background:#1e3a5f;color:#fff;border-color:#1e3a5f}
#panel-jock .jock-content{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;width:100%;margin-top:0}
#panel-jock .jock-scroll-wrap > .jock-pane{display:none;width:100%;min-width:100%;box-sizing:border-box;margin:0;padding:0}
#panel-jock .jock-scroll-wrap > .jock-pane.active{display:block}
/* 騎師 table 帶 .margin_top10，練馬師無；統一與練馬師一致：margin 與圓角 */
#panel-jock .jock-scroll-wrap .margin_top10{margin-top:0 !important}
#panel-jock .jock-scroll-wrap table.margin_top10{border-radius:13px}
/* 騎練區：高 100% 填滿可用空間，寬可橫向滾動 */
#panel-jock .jock-scroll-wrap{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;display:block;width:100%;background:#fff;border:1px solid #e8edf2;border-radius:13px;position:relative;scrollbar-width:thin;-ms-overflow-style:auto}
#panel-jock .jock-scroll-wrap::-webkit-scrollbar{width:6px;height:6px}
#panel-jock .jock-scroll-wrap::-webkit-scrollbar-thumb{background:#c8d2de;border-radius:3px}
#panel-jock .jock-scroll-wrap table{width:100%;margin:0;border-collapse:separate;border-spacing:0;font-size:13px;table-layout:fixed;vertical-align:top}
#panel-jock .jock-scroll-wrap thead{display:table-header-group;margin:0}
#panel-jock .jock-scroll-wrap th,#panel-jock .jock-scroll-wrap td{border:1px solid #ccc;padding:5px 8px;vertical-align:middle;height:auto;line-height:1.35;white-space:normal}
/* 表頭第一行深藍；第二行 #e6caae；第一二行緊貼無空白（與騎師一致） */
#panel-jock .jock-scroll-wrap thead tr:first-child th,#panel-jock .jock-scroll-wrap thead tr:first-child td{background:#1e3a5f !important;color:#fff !important;font-weight:600;text-align:center;position:sticky;z-index:5;top:0;line-height:1.2;padding:2px 8px;vertical-align:middle;border-color:#1e3a5f}
/* 騎師/練馬師表頭第一行與外框一致圓角（練馬師滿格效果，騎師同步） */
#panel-jock .jock-scroll-wrap thead tr:first-child th:first-child,#panel-jock .jock-scroll-wrap thead tr:first-child td:first-child{border-top-left-radius:8px;border-top-color:#1e3a5f}
#panel-jock .jock-scroll-wrap thead tr:first-child th:last-child,#panel-jock .jock-scroll-wrap thead tr:first-child td:last-child{border-top-right-radius:8px;border-top-color:#1e3a5f}
#panel-jock .jock-scroll-wrap thead tr.bg_blue th:first-child,#panel-jock .jock-scroll-wrap thead tr.bg_blue td:first-child{border-top-left-radius:8px;border-top-color:#1e3a5f}
#panel-jock .jock-scroll-wrap thead tr.bg_blue th:last-child,#panel-jock .jock-scroll-wrap thead tr.bg_blue td:last-child{border-top-right-radius:8px;border-top-color:#1e3a5f}
#panel-jock .jock-scroll-wrap thead tr:nth-child(2) th,#panel-jock .jock-scroll-wrap thead tr:nth-child(2) td{background:#e6caae !important;color:#000 !important;font-weight:600;text-align:center;position:sticky;z-index:5;top:24px;line-height:1.2;padding:2px 8px;vertical-align:middle;border-color:#e6caae}
/* 覆蓋 HKJC 的 tdBgYellow2、tdBgYellow（練馬師與騎師表頭第二行），樣式與練馬師一致 */
#panel-jock .jock-scroll-wrap thead tr.tdBgYellow2,#panel-jock .jock-scroll-wrap thead tr.tdBgYellow2 th,#panel-jock .jock-scroll-wrap thead tr.tdBgYellow2 td{background:#e6caae !important;color:#000 !important;border-color:#e6caae}
#panel-jock .jock-scroll-wrap thead tr.tdBgYellow,#panel-jock .jock-scroll-wrap thead tr.tdBgYellow th,#panel-jock .jock-scroll-wrap thead tr.tdBgYellow td{background:#e6caae !important;color:#000 !important;border-color:#e6caae}
#panel-jock .jock-scroll-wrap thead .tdBgYellow,#panel-jock .jock-scroll-wrap thead td.R1.tdBgYellow{background:#e6caae !important;border-color:#e6caae}
/* 騎師表頭第一行與練馬師一致：深藍、無多餘樣式 */
#panel-jock .jock-scroll-wrap thead tr.bg_blue th,#panel-jock .jock-scroll-wrap thead tr.bg_blue td{background:#1e3a5f !important;color:#fff !important;border-color:#1e3a5f}
/* 第1場等列寬單行顯示；場次數據列最小寬度讓 4 字馬名不擠成 3 行 */
/* 首列（騎師/練馬師）固定寬度，其餘列自適應平分剩餘空間 */
#panel-jock .jock-scroll-wrap thead tr th:first-child,#panel-jock .jock-scroll-wrap thead tr td:first-child{position:sticky;left:0;z-index:7;width:8em !important;min-width:8em !important;max-width:8em !important;box-shadow:2px 0 4px rgba(0,0,0,.15)}
#panel-jock .jock-scroll-wrap thead tr th:nth-child(n+2),#panel-jock .jock-scroll-wrap thead tr td:nth-child(n+2),#panel-jock .jock-scroll-wrap tbody td:nth-child(n+2),#panel-jock .jock-scroll-wrap tbody th:nth-child(n+2){width:1% !important;min-width:0 !important}
#panel-jock .jock-scroll-wrap thead tr:first-child th:first-child,#panel-jock .jock-scroll-wrap thead tr:first-child td:first-child{background:#1e3a5f !important;color:#fff !important;z-index:8}
#panel-jock .jock-scroll-wrap thead tr:nth-child(2) th:first-child,#panel-jock .jock-scroll-wrap thead tr:nth-child(2) td:first-child,#panel-jock .jock-scroll-wrap thead tr.tdBgYellow th:first-child,#panel-jock .jock-scroll-wrap thead tr.tdBgYellow td:first-child{background:#e6caae !important;color:#000 !important}
#panel-jock .jock-scroll-wrap tbody td:first-child{position:sticky;left:0;z-index:2;background:#fff;width:8em !important;min-width:8em !important;max-width:8em !important;box-shadow:2px 0 4px rgba(0,0,0,.06);font-weight:700;color:#000}
#panel-jock .jock-scroll-wrap tbody tr:nth-child(even) td{background:#f5f7fa}
#panel-jock .jock-scroll-wrap tbody tr:nth-child(even) td:first-child{background:#f0f2f5}
#panel-jock .jock-scroll-wrap tbody th:first-child,#panel-jock .jock-scroll-wrap tbody th.sticky-name{position:sticky;left:0;z-index:2;background:#e8ecf0;width:8em !important;min-width:8em !important;max-width:8em !important;box-shadow:2px 0 4px rgba(0,0,0,.06);font-weight:700;color:#000}
#panel-jock .jock-scroll-wrap tbody tr:nth-child(even) th:first-child,#panel-jock .jock-scroll-wrap tbody tr:nth-child(even) th.sticky-name{background:#e2e6ea}
/* 馬名字體黑色 */
#panel-jock .jock-scroll-wrap tbody td a{color:#000 !important}
#panel-jock .jock-scroll-wrap tbody td .color_red5{color:#c00 !important}
/* 騎練獨贏賠率走勢上色（與排位一致：熱門紅、降20%綠、降50%深紅） */
#panel-jock .jock-scroll-wrap tbody td:has(.wp-down){background:#f03939 !important;color:#fff}
#panel-jock .jock-scroll-wrap tbody td:has(.wp-up){background:#2aa217 !important;color:#fff}
#panel-jock .jock-scroll-wrap tbody td:has(.wp-down50){background:#993300 !important;color:#fff}
#panel-jock .jock-scroll-wrap tbody td .wp-down,#panel-jock .jock-scroll-wrap tbody td .wp-up,#panel-jock .jock-scroll-wrap tbody td .wp-down50,#panel-jock .jock-scroll-wrap tbody td .wp-val-plain{background:transparent !important;color:inherit;padding:0}
/* PC：總寬 769px；首列 5em，其餘列均分剩餘寬度，不左右移動 */
@media(min-width:769px){
#panel-jock .jock-content{width:100%;max-width:769px;box-sizing:border-box}
#panel-jock .jock-scroll-wrap{width:100% !important;max-width:769px !important;overflow-x:hidden !important;overflow-y:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box}
#panel-jock .jock-scroll-wrap .jock-pane{width:100% !important;min-width:100% !important;max-width:100% !important;box-sizing:border-box}
#panel-jock .jock-scroll-wrap .jock-pane > *{width:100% !important;max-width:100% !important;box-sizing:border-box !important}
#panel-jock .jock-scroll-wrap table{width:100% !important;min-width:0 !important;max-width:100% !important;font-size:12px !important;table-layout:fixed !important}
#panel-jock .jock-scroll-wrap thead tr th:first-child,#panel-jock .jock-scroll-wrap thead tr td:first-child,#panel-jock .jock-scroll-wrap tbody td:first-child,#panel-jock .jock-scroll-wrap tbody th:first-child{width:5em !important;min-width:5em !important;max-width:5em !important}
#panel-jock .jock-scroll-wrap thead tr th:nth-child(n+2),#panel-jock .jock-scroll-wrap thead tr td:nth-child(n+2),#panel-jock .jock-scroll-wrap tbody td:nth-child(n+2),#panel-jock .jock-scroll-wrap tbody th:nth-child(n+2){width:1% !important;min-width:0 !important;max-width:none !important;box-sizing:border-box !important}
}
/* 移動端：首列固定，其餘列有最小寬度；表格可橫向滑動便於查閱 */
@media(max-width:768px){
#panel-jock .jock-content{margin-left:0;margin-right:0;width:100%;max-width:100%}
#panel-jock .jock-scroll-wrap{overflow-x:auto !important;overflow-y:auto;-webkit-overflow-scrolling:touch}
#panel-jock .jock-scroll-wrap table{table-layout:auto !important;min-width:640px !important}
#panel-jock .jock-scroll-wrap thead tr th:first-child,#panel-jock .jock-scroll-wrap thead tr td:first-child,#panel-jock .jock-scroll-wrap tbody td:first-child,#panel-jock .jock-scroll-wrap tbody th:first-child{width:5em !important;min-width:5em !important;max-width:5em !important}
#panel-jock .jock-scroll-wrap thead tr th:nth-child(n+2),#panel-jock .jock-scroll-wrap thead tr td:nth-child(n+2),#panel-jock .jock-scroll-wrap tbody td:nth-child(n+2),#panel-jock .jock-scroll-wrap tbody th:nth-child(n+2){width:auto !important;min-width:8em !important}
}
@media(min-width:769px){
  #panel-ft #ftWrap{overflow-x:visible !important;overflow-y:auto !important}
  #panel-ft .dataTables table{width:100% !important;min-width:0 !important;table-layout:fixed !important}
}
#ftImgModal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:2200;align-items:center;justify-content:center;padding:12px}
#ftImgModal.show{display:flex}
#ftImgModal img{max-width:96vw;max-height:90vh;width:auto;height:auto;object-fit:contain;background:#111;border-radius:6px}
#ftImgModal .ft-img-close{position:absolute;right:14px;top:10px;border:none;background:rgba(255,255,255,.2);color:#fff;font-size:28px;line-height:1;width:38px;height:38px;border-radius:50%;cursor:pointer}
