@import url('./channel-headings.css');

#app h1, #app h2, #app .arco-page-header-title, #app .van-nav-bar__title,
#app .headerxm, #app .list-title, #app #tugsb td {
  background: var(--heading-band) !important;
  color: #fff !important;
}

#app .list-title :is(p, span, font, b, strong) { color: #fff !important; }
#app .headerxm-top1 { background: #fff4f5; }
#app .headerxm .logo-t { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; white-space: nowrap; }
#app .headerxm .logo-t h1 { margin: 0; background: none !important; font: 650 16px/1.2 "PingFang SC", sans-serif; }
#app .headerxm .brand-domain { color: #fff; font: 800 26px/1.15 system-ui, sans-serif; }
#app .headerxm .brand-nav { display: inline-flex; align-items: center; flex: none; gap: 6px; min-height: 24px; margin-right: 6px; padding: 0 9px; border: 1px solid #b5122a; border-radius: 999px; background: #ffe574; color: #b5122a; font: 850 12px/1.25 system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
#app .headerxm .brand-nav::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(215 8 32 / 15%); }
#app .headerxm .brand-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#app .local-forum a { display: block; padding: 5px 4px; color: #252125; }
#app .local-forum tbody a {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 6.5em);
  justify-content: center;
  align-items: baseline;
  column-gap: .4em;
  font-size: 17px;
  text-align: left;
}
#app .local-forum tbody a :is(span, font) { font-size: inherit !important; }
#app .prediction-material :is(table:not(.wdll-title-table) > tbody *, .conmejno, .conmejno *, .h5-rowyu:has(.h5-result665) *, .yixiaoyima-prediction-row, .yixiaoyima-prediction-row *) {
  font-size: 17px !important;
}
#app .prediction-material :is(.yixiaoyima-header-banner, .h5-title656, .wdll-title-table td, .yangshidandu) {
  background: var(--heading-band) !important;
  color: #fff !important;
}
#app .prediction-material :is(.h5-title656, .wdll-title-table td, .yangshidandu) * { color: #fff !important; }
#app .yixiaoyima-main-wrapper .list-title { font-size: clamp(17px, 5vw, 20px); }
#app .yixiaoyima-prediction-row {
  display: grid;
  grid-template-columns: minmax(5.5em, 22%) minmax(0, 1fr) minmax(4.2em, 17%);
  line-height: 1.45;
}
#app .yixiaoyima-prediction-row > div { width: auto; min-width: 0; }
#app .yixiaoyima-number-display { overflow-wrap: anywhere; }
#app .yixiaoyima-number-display span:not(:has(span)) { display: inline-block; }
#app .noheader-top1fixed [data-draw-type]:is(.bnav-active, .bnav-active2),
#app .tuzhi118box [data-draw-type].hover { background: var(--heading-band) !important; color: #fff !important; }
#app .tuzhi118box [data-draw-type].hover font { color: #fff !important; }

#app .macau-forum-poster { display: block; width: 100%; max-width: 480px; height: auto; margin: 8px auto; }
#app #five-zodiac { margin: 8px 0; border: 1px solid #b2c9e2; background: #fff; color: #263746; font: 700 17px/1.5 system-ui, sans-serif; }
#five-zodiac .list-title { margin: 0; padding: 8px 10px 14px; text-align: center; font-size: 24px; }
#five-zodiac table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; }
#five-zodiac :is(td, th) { padding: 7px 4px; border-bottom: 1px solid #b2c9e2; text-align: center; }
#five-zodiac thead th { background: #f1f5f9; color: #123f7a; font-size: 15px; }
#five-zodiac th:first-child { width: 23%; }
#five-zodiac th:last-child { width: 29%; }
#five-zodiac tbody th { color: #15559b; }
#five-zodiac tr:nth-child(even) { background: #f1f5f9; }
#five-zodiac td:first-of-type, #five-zodiac .ink-red { color: #8f1729; }
#five-zodiac tbody td:first-of-type { overflow-wrap: anywhere; }
#five-zodiac mark { background: #ffe397; color: #263746; }
#five-zodiac small { display: block; font-size: 13px; }
#five-zodiac .zodiac-miss { color: #5f6d79; }
#five-zodiac summary { padding: 10px 12px; color: #123f7a; text-align: left; cursor: pointer; }

#local-material-panel {
  width: min(calc(100% - 24px), 760px);
  margin: 18px auto 32px;
  overflow: hidden;
  border: 1px solid #d9aab1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(83 0 18 / 12%);
}

#local-material-panel[hidden] {
  display: none !important;
}

.local-material-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 14px;
  border-bottom: 2px solid #b5122a;
  background: var(--heading-band);
}

.local-material-panel__heading h2 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  font-weight: 850;
}

.local-material-panel__back {
  flex: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #b5122a;
  border-radius: 5px;
  background: #fff;
  color: #850b1d;
  font: 700 14px/1.3 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}

.local-material-panel__frame {
  display: block;
  width: 100%;
  height: min(82vh, 900px);
  min-height: 520px;
  border: 0;
  background: #fff;
}

.local-material-preview {
  position: fixed;
  inset: 0;
  max-width: 96vw;
  max-height: 96dvh;
  padding: 0;
  border: 0;
  background: transparent;
}

.local-material-preview::backdrop {
  background: rgb(22 13 15 / 92%);
}

.local-material-preview img {
  display: block;
  max-width: 92vw;
  max-height: 90dvh;
  object-fit: contain;
}

.local-material-preview__close {
  position: fixed;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #850b1d;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.ad-frame,
.boc,
[class*="ad-img-banner"],
[class*="YYLX149"],
[class*="pt494949"],
[class*="notice494949"],
[class*="advert"],
[class*="promo"],
[id*="advert"],
[id*="promo"],
.ad-container,
.ad-banner,
.bottom-ad,
.bottom-banner,
.footer-ad,
.sidebar-ad,
.float-ad,
.advertisement,
.advertising,
.promoBox,
.promo-item,
.float-group,
.float-item,
.share-float-btn,
.wechat-share-widget,
.PathInner,
#PathMenu,
.float-money-wrapper,
.slide-float,
.float-btn-group,
#allsite,
#guilvsite,
.allsite,
.link13696,
.tribotmi2,
.ppc-post-detail__ad,
.ppc-comment-ad-label,
[data-ad],
[data-ad-slot],
[data-advertisement],
[data-ad-position],
[data-ad-id],
[data-promo] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width: 600px) {
  #local-material-panel {
    width: calc(100% - 12px);
    margin-top: 12px;
  }

  .local-material-panel__heading {
    min-height: 48px;
    padding: 6px 9px;
  }

  .local-material-panel__heading h2 {
    font-size: 18px;
  }

  .local-material-panel__back {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .local-material-panel__frame {
    min-height: 70vh;
  }
}
