/* ==========================================================================
   Befair Shared Match List Styles (bf-match-list.css)
   统一 home / prediction / team / tournament 左侧列表的 Tab、分组头部、卡片行与日期字号
   ========================================================================== */

/* 1. 顶部状态 Tab 栏（四周统一留白与未激活灰色字色） */
.bottom-left-panel {
  padding: 0 0 0.5em 0 !important;
}

.bottom-left-panel .bf-list-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 10px 12px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

.bottom-left-panel .tab3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bottom-left-panel .tab3 .prediction-btn {
  font-family: var(--bf-font-sans);
  display: inline-block !important;
  border: none !important;
  color: #888 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: transparent !important;
  line-height: 1.4 !important;
  cursor: pointer;
  transition: all 0.2s ease-in-out !important;
  user-select: none;
}

.bottom-left-panel .tab3 .prediction-btn.active {
  color: var(--bf-brand-primary, #ff7b54) !important;
  background-color: rgba(255, 123, 84, 0.1) !important;
}

.bottom-left-panel .tab3 .prediction-btn:hover:not(.active) {
  color: #555 !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}

@media (max-width: 768px) {
  .bottom-left-panel .tab3 .prediction-btn {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }
}

/* 2. 联赛分组头部（统一左侧留白与年份字号） */
.bottom-left-panel .oneLine {
  padding-left: 12px !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.bottom-left-panel .oneLine > div:first-child > span:first-child {
  font-size: 12px !important;
  color: #777 !important;
  margin-right: 6px;
}

/* 3. 比赛卡片左侧日期时间（PC 14px，移动端 11px；PC 球队/联赛名放大至 14px 且 Logo 同步放大） */
#app tr.card-line td.card-left,
tr.card-line td.card-left {
  width: 44px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
  box-sizing: border-box !important;
}

#app tr.card-line td:nth-child(2),
tr.card-line td:nth-child(2) {
  padding-left: 4px !important;
}

#app tr.card-line td.card-left p,
#app tr.card-line td.card-left p.date,
#app tr.card-line td.card-left p.time,
tr.card-line td.card-left p,
tr.card-line td.card-left p.date,
tr.card-line td.card-left p.time {
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #9b9b9d !important;
  margin: 0 !important;
}

@media (max-width: 991px) {
  #app tr.card-line td.card-left,
  tr.card-line td.card-left {
    width: 38px !important;
  }
  #app tr.card-line td.card-left p,
  #app tr.card-line td.card-left p.date,
  #app tr.card-line td.card-left p.time,
  tr.card-line td.card-left p,
  tr.card-line td.card-left p.date,
  tr.card-line td.card-left p.time {
    font-size: 11px !important;
  }
}

@media (min-width: 992px) {
  .bf-app .oneLine .link-btn,
  .bf-app .oneLine .link-btn span,
  .bf-app .oneLine > div:first-child > span:not(:first-child),
  .bf-app tr.card-line td:nth-child(2) .link-btn,
  .bf-app tr.card-line td:nth-child(2) .link-btn span,
  .bf-app tr.card-line td:nth-child(2) p > span {
    font-size: 14px !important;
  }
  .bf-app .oneLine img,
  .bf-app tr.card-line td:nth-child(2) img {
    width: 18px !important;
    height: 18px !important;
  }
  /* PC 端右侧数值相应放大（赔率/价值药丸、涨跌、胜率条、滚球时间比分、HT/FT 比分、胜负圆圈） */
  .bf-app .oneLine .mobile-title-tag-group {
    width: 174px !important;
  }
  .bf-app tr.card-line td:nth-child(2):has(~ td .odds_home) {
    width: calc(100% - 220px) !important;
  }
  .bf-app tr.card-line td:has(.odds_home),
  .bf-app tr.card-line td:has(.odds_away),
  .bf-app tr.card-line td:has(.odds_draw) {
    width: 58px !important;
  }
  .bf-app tr.card-line td:nth-child(n+3) .link-btn,
  .bf-app tr.card-line td:nth-child(n+3) .link-btn span,
  .bf-app tr.card-line .col-pro1 .link-btn {
    font-size: 14px !important;
    line-height: 1.25 !important;
    padding: 3px 8px !important;
  }
  .bf-app tr.card-line p.odds_home > span:not(.link-btn),
  .bf-app tr.card-line p.odds_away > span:not(.link-btn),
  .bf-app tr.card-line p.odds_draw > span:not(.link-btn) {
    font-size: 12.5px !important;
    min-height: 15px !important;
  }
  .bf-app tr.card-line .odds-rate-bar {
    height: 17px !important;
  }
  .bf-app tr.card-line .odds-rate-bar .bf-progress-bar__text {
    font-size: 10px !important;
    line-height: 17px !important;
  }
  .bf-app tr.card-line .inplay-time-ticking {
    font-size: 13px !important;
  }
  .bf-app tr.card-line .inplay-stage-text {
    font-size: 12px !important;
  }
  .bf-app tr.card-line .inplay-live-score {
    font-size: 15px !important;
  }
  .bf-app tr.card-line .inplay-half-score {
    font-size: 11.5px !important;
  }
  .bf-app tr.card-line td.text-center > div > div:not(.ot-pill):not(.status-circle):not(.inplay-time-container):not(.inplay-score-sub):not(:has(> div)) {
    font-size: 13.5px !important;
    line-height: 20px !important;
    height: 20px !important;
  }
  .bf-app tr.card-line td:nth-child(4).text-center > div > div:not(.ot-pill):not(.status-circle):not(.inplay-time-container):not(.inplay-score-sub):not(:has(> div)),
  .bf-app tr.card-line td:nth-child(4) > div > div:not(.ot-pill):not(.status-circle):not(.inplay-time-container):not(.inplay-score-sub) > div {
    font-size: 14px !important;
    line-height: 20px !important;
    height: 20px !important;
  }
  .bf-app tr.card-line .bf-wdl-cell > span {
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
  }
  .bf-app tr.card-line .bf-wdl-cell > span svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* 4. 通用底部日期胶囊、分页抽屉与日历弹窗（四页共用） */
.bf-bottom-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-top: 6px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
  position: relative;
  box-sizing: border-box;
}

.bf-date-capsule {
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.bf-date-capsule:hover {
  border-color: #FF8E4D;
  color: #FF8E4D;
}

.bf-date-capsule.is-finished-default {
  background: #FFFDFB;
  border-color: #F5DFD0;
  color: #64748b;
}

.bf-date-capsule.is-active {
  background: #FFF3EB;
  border-color: #FF8E4D;
  color: #FF8E4D;
  font-weight: 600;
}

.bf-date-capsule-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: 2px;
  font-size: 13px;
  line-height: 1;
  color: #FF8E4D;
  background: rgba(255, 142, 77, 0.15);
  transition: background-color 0.15s;
}

.bf-date-capsule-clear:hover {
  background: rgba(255, 142, 77, 0.28);
}

.bf-pager-compact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.bf-pager-btn,
.bf-pager-trigger {
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  padding: 0;
}

.bf-pager-btn {
  width: 32px;
}

.bf-pager-trigger {
  padding: 0 10px;
  gap: 5px;
  min-width: 74px;
}

.bf-pager-btn:hover:not(.is-disabled),
.bf-pager-trigger:hover,
.bf-pager-trigger.is-open {
  border-color: #FF8E4D;
  color: #FF8E4D;
  background: #FFF3EB;
}

.bf-pager-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bf-pager-caret {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.bf-pager-trigger.is-open .bf-pager-caret {
  transform: rotate(180deg);
}

.bf-pager-drawer {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 -6px 24px rgba(18, 38, 65, 0.12);
  padding: 8px 10px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 1200;
  box-sizing: border-box;
  animation: bfSlideUpFade 0.18s ease-out;
}

.bf-pager-drawer.is-open {
  display: flex;
  flex-wrap: wrap;
}

.bf-pager-rail {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.bf-pager-num {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.bf-pager-num:hover {
  border-color: #FF8E4D;
  color: #FF8E4D;
}

.bf-pager-num.is-active {
  background: #FF7B54;
  border-color: #FF7B54;
  color: #ffffff;
  font-weight: 600;
}

.bf-pager-dots {
  color: #94a3b8;
  font-size: 11px;
  padding: 0 2px;
  flex-shrink: 0;
}

.bf-pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 12px;
  color: #64748b;
}

.bf-pager-jump input {
  width: 42px;
  height: 28px;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  text-align: center;
  font-size: 12px;
  padding: 0 4px;
  color: #334155;
  outline: none;
}

.bf-pager-jump input:focus {
  border-color: #FF8E4D !important;
}

.bf-pager-go {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: none;
  background: #FFF3EB;
  color: #FF8E4D;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.bf-pager-go:hover {
  background: #FF8E4D;
  color: #ffffff;
}

.bf-date-sheet {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 -8px 28px rgba(18, 38, 65, 0.14);
  z-index: 1210;
  padding: 14px;
  box-sizing: border-box;
  display: none;
  animation: bfSlideUpFade 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.bf-date-sheet.is-open {
  display: block;
}

.bf-date-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bf-date-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.bf-date-sheet-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bf-date-sheet-banner {
  background: #FFF3EB;
  color: #D96B27;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 12px;
}

.bf-date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.bf-date-preset-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.bf-date-preset-btn:hover {
  border-color: #FF8E4D;
  color: #FF8E4D;
}

.bf-date-preset-btn.is-active {
  background: #FFF3EB;
  border-color: #FF8E4D;
  color: #FF8E4D;
  font-weight: 600;
}

.bf-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.bf-cal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bf-cal-nav-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.bf-cal-weekdays,
.bf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.bf-cal-weekdays {
  margin-bottom: 4px;
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.bf-cal-cell {
  height: 36px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background-color 0.15s, color 0.15s;
}

.bf-cal-cell:hover:not(.is-disabled):not(.is-empty) {
  background: #FFF3EB;
  color: #FF8E4D;
}

.bf-cal-cell.is-empty {
  cursor: default;
  pointer-events: none;
}

.bf-cal-cell.is-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}

.bf-cal-cell.is-today-mark {
  border: 1px dashed #FF8E4D;
}

.bf-cal-cell.is-selected {
  background: #FF8E4D !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none !important;
}

.bf-date-sheet-reset {
  margin-top: 12px;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.bf-date-sheet-reset:hover {
  border-color: #FF8E4D;
  color: #FF8E4D;
  background: #FFF3EB;
}

@keyframes bfSlideUpFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

