/* static/css/tooltip.css —— H2H / 主客场弹窗样式（三页共享） */

.h2h-tooltip {
  position: fixed;
  background: white;
  border: 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  z-index: 10000;
  max-width: 700px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  font-size: 12px;
  pointer-events: auto;
}
.h2h-tooltip table { width: 100%; border-collapse: collapse; margin: 0; font-size: 12px; }
.h2h-tooltip th, .h2h-tooltip td { padding: 2px 3px; border: 1px solid #ddd; text-align: center; white-space: nowrap; }
.h2h-tooltip th { background: rgb(0,102,153); color: white; font-weight: normal; }
.h2h-score { color: red; font-weight: bold; }
.h2h-team-home { color: rgb(204,51,0); font-weight: normal; }

/* ============================================================
   ★ 弹窗内：所有彩色背景列「背景充满单元格」，赛果类不加粗
   ============================================================ */
/* 去掉 padding / border-radius，让背景充满整个单元格 */
.h2h-tooltip .over-大,
.h2h-tooltip .over-小,
.h2h-tooltip .push,
.h2h-tooltip .pan-上盘,
.h2h-tooltip .pan-下盘,
.h2h-tooltip .pan-走盘,
.h2h-tooltip .jc-bf-胜-胜,
.h2h-tooltip .jc-bf-胜-平,
.h2h-tooltip .jc-bf-胜-负,
.h2h-tooltip .jc-bf-平-胜,
.h2h-tooltip .jc-bf-平-平,
.h2h-tooltip .jc-bf-平-负,
.h2h-tooltip .jc-bf-负-胜,
.h2h-tooltip .jc-bf-负-平,
.h2h-tooltip .jc-bf-负-负,
.h2h-tooltip .jc-让胜,
.h2h-tooltip .jc-让平,
.h2h-tooltip .jc-让负 {
  padding: 0 !important;
  border-radius: 0 !important;
}
/* 赛果类不加粗 */
.h2h-tooltip .result-胜,
.h2h-tooltip .result-平,
.h2h-tooltip .result-负 {
  font-weight: normal !important;
}
/* 上下盘类不加粗 */
.h2h-tooltip .pan-上盘,
.h2h-tooltip .pan-下盘,
.h2h-tooltip .pan-走盘 {
  font-weight: normal !important;
}

/* ============================================================
   ★ 简单模式（jcfx）：无边框「同赛事交战史」表格
   ============================================================ */
.h2h-tooltip .h2h-simple-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 12px;
}
.h2h-tooltip .h2h-simple-table th {
  background: rgb(0,102,153);
  color: #ffffff;
  font-weight: normal;
  padding: 4px 8px;
  border: none;
  text-align: center;
  white-space: nowrap;
}
.h2h-tooltip .h2h-simple-table td {
  padding: 4px 8px;
  border: none;
  text-align: center;
  white-space: nowrap;
  background: #ffffff;
}
.h2h-tooltip .h2h-simple-table tbody tr:nth-child(even) td {
  background: #f2f2f2;
}
/* 简单模式下赛果 / 半全场 / 竞彩让球 / 初盘 等颜色保留（不加粗、背景充满） */
.h2h-tooltip .h2h-simple-table .result-胜 { color: red; font-weight: normal; }
.h2h-tooltip .h2h-simple-table .result-平 { color: green; font-weight: normal; }
.h2h-tooltip .h2h-simple-table .result-负 { color: blue; font-weight: normal; }
.h2h-tooltip .h2h-simple-table .handicap { color: blue; }

/* ---- 球队统计条 ---- */
.h2h-recent-stats {
  background: #f1f5f9;
  padding: 6px 8px;
  font-size: 13px;
  text-align: left;
  line-height: 1.5;
  border-radius: 0;
}
.h2h-recent-stats.away { background: #eef4f8; }
.h2h-recent-stats .title { font-weight: bold; color: #0f172a; margin-bottom: 5px; font-size: 13px; }
.h2h-recent-stats .stat-row { display: flex; flex-wrap: wrap; gap: 6px; }
.h2h-recent-stats .stat-item {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  background: #e2e8f0; color: #334155; white-space: nowrap;
  font-size: 12px; font-weight: normal;
}
.h2h-recent-stats .stat-item.hot { background: #dc2626; color: #ffffff; }

/* ---- Tab 按钮 ---- */
.h2h-tab-buttons {
  display: flex; gap: 4px; padding: 6px 8px;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap;
}
.h2h-tab-btn {
  padding: 4px 12px; font-size: 13px;
  border: 1px solid #cbd5e1; background: #ffffff; color: #334155;
  border-radius: 4px; cursor: pointer; transition: all 0.15s;
  white-space: nowrap; font-weight: normal;
}
.h2h-tab-btn:hover { background: #e2e8f0; }
.h2h-tab-btn.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }

/* ---- Tab 面板 ---- */
.h2h-tab-panel { background: #ffffff; padding: 0; font-size: 13px; text-align: left; }
.h2h-tab-panel[data-panel="home"],
.h2h-tab-panel[data-panel="away"],
.h2h-tab-panel[data-panel="home_only"],
.h2h-tab-panel[data-panel="away_only"] { background: #f8fbff; }

/* ---- 明细表格 ---- */
.samples-table-wrapper { border: 1px solid #e2e8f0; }
.samples-table-wrapper table { width: 100%; border-collapse: collapse; margin: 0; font-size: 13px; }
.samples-table-wrapper th {
  background: #e2e8f0; color: #0f172a; padding: 3px 5px;
  border: 1px solid #cbd5e1; font-weight: normal;
  white-space: nowrap; font-size: 13px;
}
.samples-table-wrapper td {
  padding: 3px 5px; border: 1px solid #e2e8f0;
  text-align: center; white-space: nowrap;
  font-size: 13px; font-weight: normal;
}
.samples-table-wrapper .team-highlight { color: #dc2626; }
.samples-table-wrapper .result-胜 { color: #dc2626; }
.samples-table-wrapper .result-平 { color: #16a34a; }
.samples-table-wrapper .result-负 { color: #2563eb; }

/* ---- 主客场同盘路提示列 ---- */
.recent-hints-col {
  min-width: 100px; max-width: 125px;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.4;
  padding: 2px 3px;
  cursor: pointer;
}
.recent-hint {
  display: inline-block;
  padding: 1px 4px; margin: 1px 2px 1px 0;
  border-radius: 3px; font-size: 11px;
  white-space: nowrap; line-height: 1.4; color: #ffffff;
}
.recent-hint .side { font-weight: bold; margin-right: 0; opacity: 0.95; }
.recent-hint-big   { background: #f97316; color: #ffffff; }
.recent-hint-small { background: rgb(128, 128, 128); color: #ffffff; }
.recent-hint-up    { background: #2563eb; color: #ffffff; }
.recent-hint-down  { background: #16a34a; color: #ffffff; }

/* ---- 点击打开 H2H 弹窗的单元格（全场进球列） ---- */
.h2h-trigger-cell { cursor: pointer; }
.h2h-trigger-cell:hover { background-color: #f0f7ff; }