/* 港彩 — 对齐 4-9tk.com/49zz.html（选「港彩」） */

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo.lottery-info,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo.lottery-panel-49zz {
  background: #fff9c4 !important;
  border-radius: 10px;
  padding: 4px 16px !important;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .info-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .info-header .history-entry,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .info-header .history-entry-49zz {
  flex: 1 1 100%;
  display: block !important;
  width: 100%;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #1a5fb4;
  text-decoration: none;
  padding: 2px 0 0;
  line-height: 1.35;
  white-space: nowrap;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .info-header .history-entry:active {
  opacity: 0.75;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .period-info {
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-shadow: none;
  flex: 1;
  min-width: 0;
}

body[data-lottery-type="macau_second"].macau-second-pre-draw #lotteryInfo .countdown {
  display: flex !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .countdown {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color, #f94470);
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(249, 68, 112, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .countdown .countdown-title {
  font-size: 11px;
  color: #333;
  margin-bottom: 2px;
  font-weight: 600;
  display: block;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .countdown .countdown-time,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .countdown #countdown {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color, #f94470);
  letter-spacing: 0.02em;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) .lottery-bar-49zz-hk .next-draw-period,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) .lottery-bar-49zz-hk .lottery-time {
  display: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .next-draw-row-49zz {
  flex: 1 1 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .next-draw-row-49zz #nextDrawPeriod {
  display: block !important;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-shadow: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .next-draw-row-49zz #lotteryTime {
  display: block !important;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-align: right;
  flex-shrink: 0;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .numbers-title {
  font-size: 14px;
  color: #000;
  margin-bottom: 3px;
  text-align: center;
  font-weight: 600;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .numbers-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 4px;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .numbers-row.draw-sequence-row {
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  padding: 8px 6px 6px;
  margin: 0 -2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #e3e3e3;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .numbers-row.draw-sequence-row::-webkit-scrollbar {
  display: none;
}

/* 卡片式球槽（与目标站港彩截图一致） */
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .draw-sequence-row .ball-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 4px 4px;
  border-radius: 8px;
  border: 1px solid #c8c8c8;
  background: linear-gradient(180deg, #d4d4d4 0%, #ececec 38%, #f8f8f8 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  min-width: 0;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .plus-sign {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 3px 12px;
  align-self: flex-end;
  line-height: 1;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball {
  width: 60px;
  height: 60px;
  max-width: none;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  color: #000;
  position: relative;
  overflow: visible;
  background: #fff !important;
  box-shadow: none;
  transition: transform 0.2s ease;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.red {
  border: 4px solid #c40000 !important;
  background: #fff !important;
  animation: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.blue {
  border: 4px solid #0033cc !important;
  background: #fff !important;
  animation: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.green {
  border: 4px solid #008800 !important;
  background: #fff !important;
  animation: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.gray {
  border: 4px solid #888 !important;
  background: #f0f0f0 !important;
  animation: none !important;
}

/* 特码：外圈仍用波色，额外橙色光晕（不用主站金色 #FFD700） */
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.special {
  animation: tk49-specialPulse 2s infinite !important;
  box-shadow: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.red.special {
  border: 4px solid #c40000 !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.blue.special {
  border: 4px solid #0033cc !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.green.special {
  border: 4px solid #008800 !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.gray.special {
  border: 4px solid #888 !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.ball-confirmed,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.ball-revealed,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.ball-waiting,
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.ball-next {
  opacity: 1;
  filter: none;
  transform: none;
  box-shadow: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball.ball-waiting {
  opacity: 0.75;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball .ball-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 50%;
  color: #000;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  box-shadow: none;
  animation: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball .small-ellipse {
  display: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .ball-wrap .zodiac-info {
  font-size: 12px;
  font-weight: 600;
  color: #000;
  margin-top: 2px;
  text-align: center;
  line-height: 1.2;
  min-height: 18px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 4px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  text-shadow: none;
}

@keyframes tk49-specialPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

@media (max-width: 992px) {
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-width: 3px;
  }
}

@media (max-width: 480px) {
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo.lottery-info {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .number-ball {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-width: 3px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .draw-sequence-row .ball-wrap {
    padding: 2px 2px 1px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .plus-sign {
    font-size: 16px;
    margin-bottom: 10px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .ball-wrap .zodiac-info {
    font-size: 9px;
    min-height: 16px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .countdown .countdown-time,
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .countdown #countdown {
    font-size: 14px;
  }
}

/* 历史记录页 / 首页底部 — 与开奖区同款灰底槽位 + 波色球 */
body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .numbers-row.draw-sequence-row {
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  padding: 8px 6px 6px;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #e3e3e3;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .numbers-row.draw-sequence-row::-webkit-scrollbar {
  display: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .ball-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 4px 4px;
  border-radius: 8px;
  border: 1px solid #c8c8c8;
  background: linear-gradient(180deg, #d4d4d4 0%, #ececec 38%, #f8f8f8 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  min-width: 0;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .plus-sign {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0 3px 12px;
  align-self: flex-end;
  line-height: 1;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball {
  width: 48px;
  height: 48px;
  max-width: none;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  position: relative;
  overflow: visible;
  background: #fff !important;
  box-shadow: none;
  animation: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.red {
  border: 4px solid #c40000 !important;
  background: #fff !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.blue {
  border: 4px solid #0033cc !important;
  background: #fff !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.green {
  border: 4px solid #008800 !important;
  background: #fff !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.gray {
  border: 4px solid #888 !important;
  background: #f0f0f0 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.red.special {
  border: 4px solid #c40000 !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.blue.special {
  border: 4px solid #0033cc !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball.green.special {
  border: 4px solid #008800 !important;
  box-shadow: 0 0 0 2px #ff9900 !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball .ball-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 50%;
  color: #000;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  box-shadow: none;
  animation: none !important;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball .small-ellipse {
  display: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .ball-wrap .zodiac-info {
  font-size: 11px;
  font-weight: 600;
  color: #000;
  margin-top: 2px;
  text-align: center;
  line-height: 1.2;
  min-height: 16px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 1px 4px;
  display: inline-block;
  width: auto;
  max-width: 100%;
  text-shadow: none;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) .records-page .history-balls-cell {
  padding: 6px 4px;
  vertical-align: middle;
  min-width: 0;
}

body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #historyBox .history-balls-cell {
  padding: 6px 4px;
  vertical-align: middle;
}

@media (max-width: 480px) {
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .number-ball {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-width: 3px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .ball-wrap {
    padding: 2px 2px 1px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .plus-sign {
    font-size: 14px;
    margin-bottom: 10px;
  }
  body:is([data-lottery-type="hongkong"], [data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) :is(.records-page:not(.records-balls-66852), #historyBox:not(.records-balls-66852)) .draw-sequence-row .ball-wrap .zodiac-info {
    font-size: 9px;
    min-height: 14px;
  }
}

.container > .copyright,
#siteCopyrightBar.copyright {
  text-align: center;
  color: #333 !important;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 10px 16px;
  margin: 0 calc(-1 * var(--page-padding-x, 8px)) 8px;
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.container > .copyright p,
#copyright {
  color: inherit !important;
  margin: 0;
}

/* 新香港彩 / 新澳门：方块彩种 + 与「历史开奖记录」同一行 */
body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-nav-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 4px 0 2px;
  padding: 8px 0 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-nav-history-row .lottery-types {
  flex: 0 1 auto;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: calc(100% - 100px);
}

body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-types-square .type-btn {
  border-radius: 6px;
  box-sizing: border-box;
  min-width: 56px;
  width: auto;
  max-width: none;
  height: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
  flex: 0 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-types-square .type-btn.active {
  border-color: rgba(249, 68, 112, 0.55);
  box-shadow: 0 2px 6px rgba(249, 68, 112, 0.35);
}

body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-nav-history-row .history-entry,
body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-nav-history-row .history-entry-49zz {
  flex: 0 0 auto;
  width: auto;
  display: inline-block !important;
  text-align: right;
  align-self: center;
  padding: 0;
  margin: 0;
  line-height: 1.35;
  font-size: 13px;
}

@media (max-width: 420px) {
  body:is([data-lottery-type="macau_second"], [data-lottery-type="macau_new"]) #lotteryInfo .lottery-types-square .type-btn {
    min-width: 52px;
    height: 40px;
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
  }
}
