/* 历史开奖 — 对齐 manycai365 /Issue/draw */
.page-mc-history main {
  background: var(--mc-gray, #f2f2f2);
  padding-bottom: 0;
}

.mc-history-nav {
  height: 24px;
  line-height: 24px;
  margin: 30px auto 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mc-history-nav a,
.mc-history-nav span {
  font-size: 16px;
  color: #a9a9a9;
}
.mc-history-nav a:hover { text-decoration: underline; }
.mc-history-nav-home { width: 22px; height: 18px; vertical-align: sub; }
.mc-history-nav-sep { width: 8px; height: 14px; vertical-align: sub; }

.mc-history-cats {
  margin-bottom: 14px;
}
.mc-history-cat {
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  background-color: #24a4d9;
  display: inline-block;
  margin: 0 8px 8px 0;
  cursor: pointer;
  user-select: none;
}
.mc-history-cat.active {
  background-color: #fe8726;
  position: relative;
}
.mc-history-cat.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-bottom: none;
  border-top-color: #fe8726;
}

.mc-history-content {
  background: url('../img/manycai/draw-bg.png') no-repeat bottom center;
  background-size: contain;
  padding-bottom: 8px;
}
.mc-lotter-history {
  margin: 10px auto 0;
  min-height: 680px;
}

.mc-history-thead table {
  width: 100%;
  border-collapse: collapse;
}
.mc-history-thead td {
  height: 34px;
  background: #24a4d9;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.mc-history-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.mc-history-table td {
  text-align: center;
  min-height: 74px;
  height: 74px;
  border: 1px solid #e5e5e5;
  vertical-align: middle;
  font-size: 14px;
  color: #333;
  padding: 8px 4px;
}
.mc-history-table tr.is-tall td {
  height: auto;
  min-height: 90px;
  padding: 14px 4px;
}
.mc-history-table tr.is-highlight td {
  background: #fff8e8;
}
.mc-history-table tr.hidden { display: none; }
.mc-his-name { font-size: 14px; color: #333; }

.mc-his-ball-box {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.mc-his-ball-box.b1 { width: 262px; }
.mc-his-ball-box.b2 { width: 202px; }
.mc-his-ball-box.b2-5 { width: 202px; }
.mc-his-ball-box.b3 { width: 272px; }
.mc-his-ball-box.b4 { width: 272px; }
.mc-his-ball-box.b-kl8 { width: 360px; }

.mc-his-ball {
  display: inline-block;
  text-align: center;
  margin: 4px 4px 4px 0;
  color: #24a4d9;
  background: url('../img/manycai/his_ball.png') no-repeat center;
  background-size: 100% 100%;
  flex-shrink: 0;
}
.mc-his-ball-box.b1 .mc-his-ball {
  width: 46px;
  height: 46px;
  line-height: 46px;
  font-size: 2rem;
}
.mc-his-ball-box.b2 .mc-his-ball {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 1.6rem;
}
.mc-his-ball-box.b2-5 .mc-his-ball {
  width: 35px;
  height: 35px;
  line-height: 35px;
  font-size: 1.5rem;
}
.mc-his-ball-box.b3 .mc-his-ball,
.mc-his-ball-box.b4 .mc-his-ball {
  width: 30px;
  height: 30px;
  line-height: 30px;
  font-size: 1.3rem;
}
.mc-his-ball-box.b4 .mc-his-ball {
  width: 22px;
  height: 22px;
  line-height: 22px;
}
.mc-his-ball-box.b-kl8 .mc-his-ball {
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 11px;
  margin: 2px;
}

.mc-his-ball.bg-red-ball {
  background: radial-gradient(74.69% 74.69% at 80.48% -3.32%, #fe8282 0%, #e41919 74%, #bb0303 99%);
  border-radius: 50%;
  color: #fff;
}
.mc-his-ball.bg-blue-ball {
  background: radial-gradient(74.69% 74.69% at 80.48% -3.32%, #9ce1ff 0%, #2183de 74%, #06689f 100%);
  border-radius: 50%;
  color: #fff;
}
.mc-his-ball.bg-green-ball {
  background: radial-gradient(74.69% 74.69% at 80.48% -3.32%, #f4f762 0%, #4b9f08 74%, #2e6f10 99%);
  border-radius: 50%;
  color: #fff;
}
.mc-his-op {
  display: inline-block;
  width: 20px;
  height: 46px;
  line-height: 46px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  background: none !important;
  margin: 4px 0;
  vertical-align: middle;
  text-align: center;
  flex-shrink: 0;
}
.mc-his-ball-box.b2 .mc-his-op,
.mc-his-ball-box.b2-5 .mc-his-op {
  width: 16px;
  height: 35px;
  line-height: 35px;
  font-size: 1.2rem;
}
.mc-his-time {
  line-height: 1.35;
  font-size: 13px;
}
.mc-his-link { color: #333; }
.mc-his-link:hover { color: #24a4d9; text-decoration: underline; }
.mc-his-muted { color: #999; }
.mc-his-empty { color: #999; font-size: 13px; }

.mc-history-empty {
  text-align: center;
  padding: 48px 16px;
  color: #999;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: none;
}

.mc-history-page {
  height: auto;
  margin: 110px 0 30px;
  line-height: 40px;
  font-size: 14px;
  text-align: center;
  color: #656565;
}
.mc-page-btn,
.mc-page-num {
  display: inline-block;
  margin-right: 10px;
  padding: 0 9px;
  height: 36px;
  line-height: 36px;
  border-radius: 2px;
  box-shadow: 1px 1px 1px #d9d9d9;
  color: #656565;
  background: #efefef;
  cursor: pointer;
}
.mc-page-btn:hover,
.mc-page-num:hover,
.mc-page-num.current {
  color: #fff;
  background: #24a4d9;
  text-decoration: none;
}
.mc-page-input {
  width: 38px;
  height: 38px;
  line-height: 38px;
  margin-left: 10px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #e7e7e7;
}
.mc-page-go {
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border: none;
  border-radius: 2px;
  box-shadow: 1px 1px 1px #d9d9d9;
  background: #efefef;
  cursor: pointer;
  color: #656565;
}
.mc-page-go:hover { color: #fff; background: #24a4d9; }

@media (max-width: 768px) {
  .mc-history-nav {
    height: auto;
    flex-wrap: wrap;
    margin: 16px auto 12px;
    line-height: 1.4;
  }
  .mc-history-nav a,
  .mc-history-nav span {
    font-size: 14px;
  }
  .mc-history-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mc-history-cat {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
  }
  .mc-lotter-history {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  /* 列表页仍可横滑；详情页单独适配 */
  .mc-history-thead table,
  .mc-history-table:not(.mc-history-detail-table) {
    min-width: 620px;
  }
  .mc-history-table td { font-size: 12px; height: auto; min-height: 64px; }
  .mc-his-ball-box.b1 { width: 100%; max-width: 280px; }
  .mc-his-ball-box.b1 .mc-his-ball { width: 36px; height: 36px; line-height: 36px; font-size: 16px; }
  .mc-his-ball-box.b2,
  .mc-his-ball-box.b2-5,
  .mc-his-ball-box.b3,
  .mc-his-ball-box.b4,
  .mc-his-ball-box.b-kl8 {
    width: 100%;
    max-width: 280px;
  }

  /* 详情页：三列（隐藏官网历史）；号码列加宽，六合 7 球才放得下 */
  .mc-history-detail-table,
  .mc-history-content .mc-history-thead table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }
  .mc-history-content .mc-history-thead td:nth-child(4),
  .mc-history-detail-table td:nth-child(4) {
    display: none;
  }
  .mc-history-content .mc-history-thead td:nth-child(1),
  .mc-history-detail-table td:nth-child(1) {
    width: 52% !important;
    padding: 8px 4px !important;
    overflow: visible;
  }
  .mc-history-content .mc-history-thead td:nth-child(2),
  .mc-history-detail-table td:nth-child(2) {
    width: 24% !important;
    font-size: 11px;
    line-height: 1.25;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .mc-history-content .mc-history-thead td:nth-child(3),
  .mc-history-detail-table td:nth-child(3) {
    width: 24% !important;
    font-size: 11px;
    line-height: 1.35;
  }

  .mc-history-detail-table tr.is-tall td {
    min-height: 0;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* 少球（幸运28 等）：小球紧凑，避免号码列占太宽 */
  .mc-history-detail-table .mc-his-ball-box {
    width: auto !important;
    max-width: 100% !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .mc-history-detail-table .mc-his-ball-box .mc-his-ball {
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 12px !important;
    margin: 0 1px !important;
  }
  .mc-history-detail-table .mc-his-ball-box .mc-his-op {
    width: 8px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 12px !important;
    margin: 0 !important;
  }
  .mc-history-detail-table .mc-his-ball-box.b2 .mc-his-ball,
  .mc-history-detail-table .mc-his-ball-box.b2-5 .mc-his-ball {
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    font-size: 13px !important;
  }

  /* 多球（PK10/幸运10 等 ≥10）：两行×5，避免挤爆 */
  .mc-history-detail-table .mc-his-ball-box.b4,
  .mc-history-detail-table .mc-his-ball-box.b3,
  .mc-history-detail-table .mc-his-ball-box.b-kl8 {
    flex-wrap: wrap !important;
    width: 132px !important;
    max-width: 100% !important;
    margin: 0 auto;
    justify-content: center;
  }
  .mc-history-detail-table .mc-his-ball-box.b4 .mc-his-ball,
  .mc-history-detail-table .mc-his-ball-box.b3 .mc-his-ball,
  .mc-history-detail-table .mc-his-ball-box.b-kl8 .mc-his-ball {
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 10px !important;
    margin: 2px !important;
  }
  .mc-history-detail-table .mc-his-ball-box.b-kl8 {
    width: 150px !important;
  }
  .mc-history-detail-table .mc-his-ball-box.b-kl8 .mc-his-ball {
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 10px !important;
    margin: 2px !important;
  }

  /* 六合彩 7 球：缩球 + 占满号码列，避免居中溢出被裁切 */
  .mc-history-detail-table .mc-his-ball-box.b1 {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    padding: 0 1px;
  }
  .mc-history-detail-table .mc-his-ball-box.b1 .mc-his-ball {
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
    margin: 0 1px !important;
  }
  .mc-history-detail-table .mc-his-ball-box.b1 .mc-his-op {
    width: 6px !important;
    height: 20px !important;
    line-height: 20px !important;
    font-size: 11px !important;
    margin: 0 !important;
  }

  .mc-history-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 28px 0 20px;
    line-height: 1.4;
  }
  .mc-history-page .mc-page-btn,
  .mc-history-page .mc-page-num {
    margin-right: 0;
  }
}

/* 超窄屏：六合 7 球再缩一档，避免左边被裁 */
@media (max-width: 380px) {
  .mc-history-detail-table .mc-his-ball-box.b1 .mc-his-ball {
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    font-size: 10px !important;
    margin: 0 !important;
  }
  .mc-history-detail-table .mc-his-ball-box.b1 .mc-his-op {
    width: 5px !important;
    height: 18px !important;
    line-height: 18px !important;
    font-size: 10px !important;
  }
  .mc-history-content .mc-history-thead td:nth-child(1),
  .mc-history-detail-table td:nth-child(1) {
    width: 56% !important;
  }
  .mc-history-content .mc-history-thead td:nth-child(2),
  .mc-history-detail-table td:nth-child(2),
  .mc-history-content .mc-history-thead td:nth-child(3),
  .mc-history-detail-table td:nth-child(3) {
    width: 22% !important;
  }
}

/* 单彩种历史详情 */
.mc-history-detail-table td:first-child {
  padding: 12px 8px;
}
.mc-history-detail-table .mc-his-ball-box.b1 {
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  justify-content: center;
}
.mc-history-detail-table tr.is-tall td {
  height: auto;
  min-height: 74px;
  padding-top: 12px;
  padding-bottom: 12px;
}
