/* =========================================================
   长顺资讯网
   香港 / 新澳门 / 老澳门六合彩
   按参考站实际 CSS 尺寸复刻
   ========================================================= */

.mk-board {
  width: 100%;
  margin: 8px 0;

  background: #fff;

  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;

  font-family:
    Arial,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}


/* =========================================================
   每种彩票固定一行
   ========================================================= */

.mk-row {
  position: relative;

  min-height: 76px;

  display: grid;

  grid-template-columns:
    138px
    minmax(610px, 1fr)
    145px;

  align-items: center;

  column-gap: 8px;

  padding:
    4px 10px;

  border-bottom:
    1px solid #ececec;

  background: #fff;
}

.mk-row:last-child {
  border-bottom: 0;
}


/* =========================================================
   左侧旗帜 + 名称
   ========================================================= */

.mk-brand {
  height: 100%;

  display: flex;
  align-items: center;

  gap: 7px;
}


.mk-flag {
  width: 27px;
  height: 19px;

  display: block;

  object-fit: cover;

  border: 0;

  flex: 0 0 auto;
}


.mk-brand-copy {
  min-width: 0;
}


.mk-name {
  color: #333;

  font-size: 12px;
  line-height: 24px;

  font-weight: normal;

  white-space: nowrap;
}


.mk-status {
  height: 16px;

  color: #999;

  font-size: 10px;
  line-height: 16px;

  white-space: nowrap;
}


.mk-status.success {
  color: #888;
}


.mk-status.error {
  color: #d42b2b;
}


.mk-status.warning {
  color: #d27b00;
}


.mk-status.loading {
  color: #999;
}


/* =========================================================
   中间开奖号码区域
   ========================================================= */

.mk-draw {
  min-width: 0;
}


.mk-draw-top {
  height: 24px;

  display: flex;
  align-items: center;

  gap: 15px;
}


.mk-issue {
  color: #777;

  font-size: 12px;
  line-height: 24px;

  white-space: nowrap;
}


.mk-issue strong {
  color: #f04a18;

  font-size: 12px;
  line-height: 24px;

  font-weight: normal;
}


.mk-total {
  margin-left: auto;

  color: #333;

  font-size: 13px;
  line-height: 24px;

  font-weight: bold;

  white-space: nowrap;
}


/* =========================================================
   号码区域
   ========================================================= */

.mk-balls {
  height: 24px;

  display: flex;
  align-items: center;

  gap: 3px;

  overflow: visible;

  white-space: nowrap;

  line-height: 24px;
}


.mk-ball-item {
  width: 22px;
  height: 24px;

  flex: 0 0 22px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}


/* =========================================================
   原站号码球
   实际 21 × 21 CSS px
   ========================================================= */

.mk-ball {
  width: 21px;
  height: 21px;

  display: block;

  padding: 0;
  margin: 0;

  overflow: hidden;

  background-image:
    url("/assets/bgbm.gif");

  background-repeat:
    no-repeat;

  color: #fff;

  font-family:
    Arial,
    sans-serif;

  font-size: 13px;

  font-weight: bold;

  line-height: 21px;

  text-align: center;

  border: 0;

  border-radius: 0;

  box-shadow: none;
}


/*
   原站 sprite：
   红  0px
   绿 -21px
   蓝 -42px
*/

.mk-ball.color-red {
  background-position:
    0 0;
}


.mk-ball.color-green {
  background-position:
    -21px 0;
}


.mk-ball.color-blue {
  background-position:
    -42px 0;
}


/*
   如果源站没有可靠波色，
   不伪造红蓝绿。
*/
.mk-ball.color-unknown {
  background-image: none;

  background: #999;

  border-radius: 50%;
}


/* =========================================================
   生肖
   原站约 14 × 22
   ========================================================= */

.mk-zodiac {
  position: absolute;

  left: 3px;
  top: 21px;

  width: 14px;
  height: 22px;

  color: #333;

  font-size: 12px;
  line-height: 23px;

  font-weight: normal;

  text-align: center;

  white-space: nowrap;
}


/* =========================================================
   加号
   ========================================================= */

.mk-plus {
  width: 14px;

  flex: 0 0 14px;

  color: #333;

  font-size: 14px;
  line-height: 24px;

  font-weight: normal;

  text-align: center;

  margin: 0 2px;
}


/* 为生肖第二行留空间 */
.mk-balls {
  margin-bottom: 22px;
}


/* =========================================================
   下一期开奖
   ========================================================= */

.mk-next {
  min-height: 24px;

  display: flex;
  align-items: center;

  gap: 12px;

  margin: 0;

  color: #777;

  font-size: 12px;
  line-height: 24px;

  white-space: nowrap;
}


.mk-next span {
  line-height: 24px;
}


/* 更新时间不要抢主视觉 */
.mk-next [data-role="updateTime"] {
  color: #aaa;

  font-size: 10px;
}


/* =========================================================
   右侧按钮
   ========================================================= */

.mk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 0;

  white-space: nowrap;
}


.mk-action {
  height: 24px;

  padding: 0;

  margin-left: 5px;
  margin-right: 5px;

  border: 0;

  background: transparent;

  color: #666;

  font-family:
    Arial,
    "Microsoft YaHei",
    sans-serif;

  font-size: 12px;
  line-height: 24px;

  font-weight: normal;

  text-decoration: none;

  cursor: pointer;

  white-space: nowrap;
}


.mk-action:hover {
  color: #d94816;

  text-decoration:
    underline;
}


.mk-action.primary,
.mk-action.secondary {
  background: transparent;
  border: 0;
  color: #666;
}


.mk-action:disabled {
  opacity: .55;

  cursor: default;

  text-decoration: none;
}


/* =========================================================
   暂无数据
   ========================================================= */

.mk-empty {
  color: #999;

  font-size: 12px;
  line-height: 24px;
}


/* =========================================================
   历史记录弹窗
   仍然使用本站 UI
   ========================================================= */

.mk-history-modal {
  position: fixed;

  inset: 0;

  z-index: 99999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(0, 0, 0, .55);
}


.mk-history-modal.open {
  display: flex;
}


.mk-history-card {
  width: min(820px, 96vw);
  max-height: 85vh;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #fff;

  border-radius: 5px;

  box-shadow:
    0 10px 35px
    rgba(0, 0, 0, .28);
}


.mk-history-header {
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 12px;

  background: #fafafa;

  border-bottom:
    1px solid #ddd;
}


.mk-history-title {
  color: #333;

  font-size: 14px;

  font-weight: bold;
}


.mk-history-close {
  width: 28px;
  height: 28px;

  padding: 0;

  border: 0;

  background: transparent;

  color: #777;

  font-size: 21px;

  cursor: pointer;
}


.mk-history-body {
  flex: 1;

  overflow-y: auto;

  padding:
    8px 12px;
}


.mk-history-record {
  min-height: 70px;

  padding:
    7px 0;

  border-bottom:
    1px solid #eee;
}


.mk-history-head {
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #777;

  font-size: 12px;
  line-height: 24px;
}


.mk-history-head strong {
  color: #f04a18;

  font-weight: normal;
}


.mk-history-head span {
  color: #333;

  font-size: 13px;
  font-weight: bold;
}


.mk-history-balls {
  min-height: 46px;

  display: flex;
  align-items: flex-start;

  gap: 3px;

  padding-top: 3px;

  white-space: nowrap;
}


.mk-history-balls .mk-ball-item {
  height: 45px;
}


.mk-history-footer {
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 15px;

  border-top:
    1px solid #ddd;
}


.mk-history-footer .mk-action {
  padding: 0 8px;

  border:
    1px solid #ddd;

  background:
    #fafafa;
}


.mk-history-state {
  padding: 30px;

  text-align: center;

  color: #888;

  font-size: 12px;
}


.mk-history-state.error {
  color: #c22;
}


.mk-modal-open {
  overflow: hidden;
}


/* =========================================================
   PC 中等宽度
   ========================================================= */

@media (max-width: 1050px) {

  .mk-row {
    grid-template-columns:
      125px
      minmax(520px, 1fr)
      125px;

    padding-left: 7px;
    padding-right: 7px;
  }


  .mk-name {
    font-size: 11px;
  }


  .mk-actions {
    flex-direction: column;
    align-items: flex-end;
  }


  .mk-action {
    height: 20px;

    line-height: 20px;
  }

}


/* =========================================================
   H5
   原站尺寸保持 21px，不强行放大
   ========================================================= */

@media (max-width: 760px) {

  .mk-board {
    margin: 6px 0;

    border-left: 0;
    border-right: 0;
  }


  .mk-row {
    display: block;

    min-height: 0;

    padding:
      7px 8px 8px;
  }


  .mk-brand {
    height: 24px;

    margin-bottom: 2px;
  }


  .mk-flag {
    width: 24px;
    height: 17px;
  }


  .mk-name {
    font-size: 12px;
    line-height: 24px;
  }


  .mk-status {
    display: inline-block;

    margin-top: 0;
    margin-left: 6px;

    height: 24px;

    line-height: 24px;
  }


  .mk-brand-copy {
    display: flex;
    align-items: center;
  }


  .mk-draw-top {
    height: 24px;

    margin: 0;
  }


  .mk-issue,
  .mk-issue strong {
    font-size: 12px;
    line-height: 24px;
  }


  .mk-total {
    font-size: 13px;
  }


  /*
     H5 不压球；
     内容不够宽直接横向滚动
  */

  .mk-balls {
    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    padding-bottom: 0;

    scrollbar-width: none;
  }


  .mk-balls::-webkit-scrollbar {
    display: none;
  }


  .mk-next {
    width: 100%;

    overflow-x: auto;

    gap: 10px;

    scrollbar-width: none;
  }


  .mk-next::-webkit-scrollbar {
    display: none;
  }


  .mk-actions {
    margin-top: 2px;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    height: 24px;
  }


  .mk-action {
    height: 24px;

    font-size: 12px;
    line-height: 24px;

    margin-left: 5px;
    margin-right: 5px;
  }


  .mk-history-modal {
    padding: 0;

    align-items: flex-end;
  }


  .mk-history-card {
    width: 100%;
    max-height: 88vh;

    border-radius:
      5px 5px 0 0;
  }

}
