:root {
  --pri: #0b4ea2;
  --pri2: #083b7a;
  --red: #e11d2e;
  --bg: #eef2f7;
  --card: #fff;
  --line: #dfe5ee;
  --txt: #1f2937;
  --mut: #64748b;
  --soft: #f5f8fc;
  --yel: #fff7d6
}

* {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif
}

a {
  color: var(--pri);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

img {
  max-width: 100%;
  height: auto
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px
}

.site-h {
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.hbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pri2);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px
}

.logo b {
  color: var(--red)
}

.logo small {
  font-size: 13px;
  color: var(--mut);
  font-weight: 600
}

.logo:hover {
  text-decoration: none
}

.hdate {
  margin-left: auto;
  color: var(--mut);
  font-size: 14px
}

.nav-tg {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer
}

.nav-tg span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--pri2);
  margin: 4px 0
}

.mainnav {
  background: var(--pri)
}

.mainnav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap
}

.mainnav .menu>li {
  position: relative
}

.mainnav .menu>li>a {
  display: block;
  color: #fff;
  padding: 11px 13px;
  font-weight: 600;
  font-size: 14.5px;
  text-transform: uppercase
}

.mainnav .menu>li>a:hover {
  background: var(--pri2);
  text-decoration: none
}

.mainnav .sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 50;
  background: #fff;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  border-radius: 0 0 6px 6px
}

.mainnav .sub-region {
  left: 0;
  right: 0;
  width: 100%;
  max-height: min(72vh, 620px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 20px;
  overflow-y: auto
}

.mainnav .menu {
  position: relative
}

.mainnav .menu>li.region-menu {
  position: static
}

.mainnav .region-menu:hover>.sub-region,
.mainnav .region-menu:focus-within>.sub-region {
  display: grid
}

.region-mega-column {
  min-width: 0
}

.region-mega-title {
  display: block;
  padding: 2px 14px 9px;
  color: var(--pri);
  font-size: 16px;
  border-bottom: 1px solid var(--line)
}

.region-mega-column ul {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  columns: 1
}

.mainnav .sub-align-right {
  right: 0;
  left: auto
}

.mainnav .sub a {
  display: block;
  padding: 7px 14px;
  color: var(--txt)
}

.mainnav .sub a:hover {
  background: var(--soft);
  text-decoration: none
}

.mainnav li:hover>.sub,
.mainnav li:focus-within>.sub {
  display: block
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 24px
}

.content {
  min-width: 0
}

.ph1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 4px 0 12px;
  color: var(--pri2)
}

.bc ol {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mut)
}

.bc li+li:before {
  content: "›";
  margin: 0 6px
}

.lead {
  background: var(--card);
  border-left: 4px solid var(--pri);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 0 0 14px
}

.kq-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 16px;
  overflow: hidden
}

.kq-head {
  background: var(--yel);
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line)
}

.kq-title {
  margin: 0;
  font-size: 18px;
  color: var(--red);
  line-height: 1.35
}

.kq-links {
  font-size: 13.5px;
  margin-top: 4px
}

.kq-links a {
  text-decoration: underline
}

.kq-links .st {
  color: var(--mut)
}

.kq {
  width: 100%;
  border-collapse: collapse;
  text-align: center
}

.kq th,
.kq td {
  border-top: 1px solid var(--line);
  padding: 4px 2px
}

.kq tbody th {
  width: 52px;
  background: var(--soft);
  font-weight: 600;
  color: var(--mut);
  font-size: 14px
}

.kq thead th {
  background: var(--soft);
  font-size: 15px;
  padding: 7px 2px
}

.kq thead th a {
  font-weight: 700
}

.kq tr:nth-child(even) td {
  background: #fbfcfe
}

.kq .nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around
}

.kq-mb .nums.c1 .n {
  width: 100%
}

.kq-mb .nums.c2 .n {
  width: 50%
}

.kq-mb .nums.c3 .n {
  width: 33.3%
}

.kq-mb .nums.c4 .n {
  width: 25%
}

.kq-mb .nums.c6 .n {
  width: 33.3%
}

.n {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
  color: #111
}

.kq-multi .n {
  display: block;
  font-size: 20px
}

.n.db {
  color: var(--red);
  font-size: 30px
}

.kq-multi .n.db {
  font-size: 22px
}

.n.g8,
.n.g7 {
  color: var(--red)
}

.n-wait .spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #cbd5e1;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: sp 1s linear infinite
}

@keyframes sp {
  to {
    transform: rotate(360deg)
  }
}

.ma td {
  padding: 6px
}

.ma-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center
}

.ma-list span {
  color: var(--red);
  font-weight: 700;
  font-size: 15px
}

.kq-filter {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: var(--soft)
}

.kq-filter button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 13px
}

.kq-filter button.on {
  background: var(--pri);
  color: #fff;
  border-color: var(--pri)
}

.loto-box {
  border-top: 1px solid var(--line)
}

.loto-box summary {
  cursor: pointer;
  padding: 9px 12px;
  font-weight: 600;
  color: var(--pri2);
  background: #fff
}

.loto {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px
}

.loto th,
.loto td {
  border: 1px solid var(--line);
  padding: 5px 6px;
  text-align: center
}

.loto thead th {
  background: var(--soft)
}

.loto tbody th {
  width: 44px;
  background: var(--soft);
  color: var(--red)
}

.loto td {
  text-align: left;
  font-weight: 600;
  letter-spacing: .3px
}

.loto-multi td {
  text-align: center
}

.r {
  color: var(--red)
}

.live-note {
  margin: 0;
  padding: 8px 12px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 14px;
  text-align: center
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  animation: bl 1s infinite
}

@keyframes bl {
  50% {
    opacity: .2
  }
}

.summary {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin: -4px 0 16px
}

.summary p {
  margin: 0
}

.seo-text,
.st-box,
.linkgrid,
.faq,
.empty,
.today-grid,
.tool,
.win {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px
}

.seo-text h2,
.st-box h2,
.linkgrid h2,
.faq h2,
.today-grid h2 {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--pri2)
}

.seo-text h3 {
  font-size: 16px;
  margin: 14px 0 6px
}

.note {
  color: var(--mut);
  font-size: 13px
}

.linkgrid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px 12px
}

.linkgrid li a {
  display: block;
  padding: 3px 0
}

.linkgrid.dates ul {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 8px 0
}

.faq summary {
  cursor: pointer;
  font-weight: 600
}

.faq details div {
  padding-top: 6px;
  color: #334155
}

.today-grid .tg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px
}

.today-grid .tg div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--soft)
}

.today-grid .tg b a {
  color: var(--red)
}

.dow-tabs,
.seg {
  display: flex;
  gap: 0;
  margin: 0 0 14px;
  flex-wrap: wrap
}

.dow-tabs a,
.seg a {
  flex: 1;
  min-width: 105px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 4px;
  font-weight: 600
}

.dow-tabs a + a,
.seg a + a {
  margin-left: -1px
}

.dow-tabs a:first-child,
.seg a:first-child {
  border-radius: 6px 0 0 6px
}

.dow-tabs a:last-child,
.seg a:last-child {
  border-radius: 0 6px 6px 0
}

/* Keep unrelated segmented controls unchanged. */
.seg {
  gap: 4px
}

.seg a,
.seg a:first-child,
.seg a:last-child {
  min-width: 44px;
  margin-left: 0;
  border-radius: 6px
}

.dow-tabs a.on,
.seg a.on {
  background: var(--pri);
  color: #fff;
  border-color: var(--pri)
}

.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 16px
}

.prevnext a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600
}

.cal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin: 0 0 16px;
  max-width: 360px
}

.cal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 6px
}

.cal-h a {
  padding: 2px 10px;
  font-size: 20px
}

.cal-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
  font-size: 14px
}

.cal-g b {
  color: var(--mut);
  font-size: 12px
}

.cal-g i {
  font-style: normal;
  color: #cbd5e1;
  padding: 5px 0
}

.cal-g a {
  padding: 5px 0;
  border-radius: 5px;
  background: var(--soft)
}

.cal-g a.on {
  background: var(--pri);
  color: #fff
}

.tb-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.tb {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: #fff
}

.tb th,
.tb td {
  border: 1px solid var(--line);
  padding: 6px 8px;
  text-align: center
}

.tb thead th {
  background: var(--soft);
  color: var(--pri2)
}

.st-box.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.chip {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 3px 10px;
  background: var(--soft);
  font-size: 14px
}

.chip b {
  color: var(--red);
  margin-right: 3px
}

.grid100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px
}

.grid100 .c {
  border: 1px solid var(--line);
  border-radius: 5px;
  text-align: center;
  padding: 4px 0;
  line-height: 1.2;
  background: #fff
}

.grid100 .c b {
  display: block;
  font-size: 15px
}

.grid100 .c span {
  font-size: 12px;
  color: var(--mut)
}

.grid100 .h1 {
  background: #fff4e5
}

.grid100 .h2 {
  background: #ffe0b8
}

.grid100 .h3 {
  background: #ffc27a
}

.grid100 .h4 {
  background: #ff8f6b;
  color: #fff
}

.grid100 .h4 span {
  color: #fff
}

.mx th,
.mx td {
  padding: 2px 4px;
  font-size: 12.5px;
  min-width: 30px
}

.mx td.hit {
  background: #fde68a;
  font-weight: 700
}

.gdb {
  font-variant-numeric: tabular-nums;
  color: #334155
}

.gdb b {
  color: var(--red)
}

.gdb-t td,
.gdb-m td {
  padding: 4px 3px;
  font-size: 14px;
  white-space: nowrap
}

.bar {
  position: relative;
  background: var(--soft);
  border-radius: 4px;
  height: 22px
}

.bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #93c5fd;
  border-radius: 4px
}

.bar span {
  position: relative;
  font-weight: 600
}

.lich td {
  text-align: left
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 8px
}

.ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, var(--red));
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(225, 29, 46, .35)
}

.ball.sp {
  background: radial-gradient(circle at 30% 30%, #fcd34d, #d97706)
}

.ball.sm {
  width: 36px;
  height: 36px;
  font-size: 15px
}

.keno-sum {
  text-align: center;
  margin: 0 0 10px
}

.vl-prize {
  margin: 0
}

.money {
  font-weight: 700;
  color: var(--red)
}

.kq-3d .n {
  font-size: 22px;
  margin: 0 8px
}

.tool {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end
}

.tool label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--mut);
  gap: 3px
}

.tool input,
.tool select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  min-width: 140px
}

.tool button,
.btn {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer
}

.qt-actions {
  padding: 10px;
  text-align: center
}

.win {
  background: #ecfdf5;
  border-color: #34d399
}

.side .widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 0 14px;
  overflow: hidden
}

.side .wt {
  margin: 0;
  background: var(--pri);
  color: #fff;
  font-weight: 700;
  padding: 9px 12px;
  font-size: 14.5px;
  text-transform: uppercase
}

.wl {
  list-style: none;
  margin: 0;
  padding: 6px 0
}

.wl li a {
  display: block;
  padding: 5px 14px
}

.wl li a:before {
  content: "›";
  margin-right: 6px;
  color: var(--mut)
}

.wl.cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.posts {
  display: grid;
  gap: 12px
}

.pcard {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px
}

.pcard h2 {
  font-size: 17px;
  margin: 0 0 4px
}

.meta {
  color: var(--mut);
  font-size: 13px;
  margin: 0 0 6px
}

.entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px
}

.entry-c {
  font-size: 16px;
  line-height: 1.7
}

.kqxs-footer {
  margin-top: 28px;
  padding: 34px 0 26px;
  background: #102b50;
  color: #cbd8e8;
  font-size: 14px
}

.ft-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(130px, 1fr));
  gap: 30px 24px;
  align-items: start
}

.ft-logo { min-height: 48px; margin-bottom: 10px }
.ft-logo .custom-logo-link { display: inline-flex }
.ft-logo .custom-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 58px;
  object-fit: contain
}

.ft-site-name {
  display: inline-block;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none
}

.ft-tagline {
  margin: 0 0 9px;
  color: #ffd166;
  font-weight: 700;
  line-height: 1.45
}

.ft-about-text,
.ft-about-text p {
  margin: 0;
  color: #aebdd0;
  font-size: 13px;
  line-height: 1.65
}

.ft-heading {
  display: block;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2b70bd;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase
}

.ft-links { margin: 0; padding: 0; list-style: none }
.ft-news-link { margin-bottom: 7px }
.ft-links li { margin: 0 0 7px }
.ft-links a {
  color: #d8e3f0;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .15s ease
}

.ft-links a:hover,
.ft-links a:focus-visible { color: #fff; text-decoration: underline }

.kqxs-footer-bottom {
  padding: 11px 0;
  background: #0a1f3a;
  text-align: center
}

.kqxs-footer-bottom p {
  margin: 0;
  color: #91a7c1;
  font-size: 12px;
  line-height: 1.5
}

.kqxs-footer-bottom strong { color: #c7d5e5 }

.d2 .kq .n[data-n] {
  font-size: 0
}

.d2 .kq .n[data-n]:after {
  content: attr(data-2);
  font-size: 24px
}

.d3 .kq .n[data-n] {
  font-size: 0
}

.d3 .kq .n[data-n]:after {
  content: attr(data-3);
  font-size: 24px
}

.d2 .kq .n.db:after,
.d3 .kq .n.db:after {
  color: var(--red)
}

@media (max-width:960px) {
  .layout {
    grid-template-columns: 1fr
  }

  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .side .widget {
    margin: 0
  }

  .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .ft-col-about {
    grid-column: 1 / -1
  }
}

@media (max-width:720px) {
  .nav-tg {
    display: block
  }

  .hdate {
    font-size: 12px
  }

  .mainnav {
    display: none
  }

  .mainnav.open {
    display: block
  }

  .mainnav .menu {
    flex-direction: column
  }

  .mainnav .sub {
    position: static;
    box-shadow: none;
    background: var(--pri2);
    display: none
  }

  .mainnav .sub-region {
    width: auto;
    max-height: 62vh;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 0;
    overflow-y: auto
  }

  .region-mega-title {
    color: #fff;
    padding: 10px 14px 6px;
    border-color: rgba(255,255,255,.16)
  }

  .mainnav .sub a {
    color: #e2e8f0
  }

  .mainnav li.open>.sub {
    display: block
  }

  .mainnav li.open>.sub-region {
    display: block
  }

  .ph1 {
    font-size: 19px
  }

  .kq-title {
    font-size: 16px
  }

  .n {
    font-size: 21px
  }

  .n.db {
    font-size: 26px
  }

  .kq-multi .n {
    font-size: 17px
  }

  .kq-multi .n.db {
    font-size: 19px
  }

  .kq-multi thead th {
    font-size: 13.5px
  }

  .kq tbody th {
    width: 36px;
    font-size: 13px
  }

  .today-grid .tg {
    grid-template-columns: 1fr 1fr
  }

  .st-box.two {
    grid-template-columns: 1fr
  }

  .side {
    grid-template-columns: 1fr
  }

  .grid100 {
    grid-template-columns: repeat(5, 1fr)
  }

  .pcard {
    grid-template-columns: 1fr
  }

  .kqxs-footer {
    padding: 28px 0 22px
  }

  .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px
  }

  .ft-col-about {
    grid-column: 1 / -1
  }

  .ball {
    width: 40px;
    height: 40px;
    font-size: 17px
  }
}

.ball.wide {
  width: auto;
  min-width: 46px;
  padding: 0 12px;
  border-radius: 24px
}

.dbgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px
}

.gan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gan-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #d8e1ee;
  border-radius: 18px;
  background: #f5f8fc;
  color: #123b70;
  text-decoration: none;
}

.gan-pill b {
  color: #e51d35;
}

.gan-pill span {
  color: #123b70;
}

.dbgrid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 0;
  background: var(--soft)
}

.dbgrid small {
  color: var(--mut);
  font-size: 11px
}

@media (max-width:720px) {
  .dbgrid {
    grid-template-columns: repeat(3, 1fr)
  }
}

.byline {
  color: var(--mut);
  font-size: 13px;
  margin: -6px 0 12px
}

.byline a {
  font-weight: 600
}

.info h2 {
  margin-top: 16px
}

.info ul {
  padding-left: 20px
}

.author-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px
}

.author-card .av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pri);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  flex: none
}

.author-card .an {
  font-size: 20px;
  font-weight: 800;
  margin: 0
}

.author-card .ar {
  margin: 2px 0 0;
  color: var(--mut)
}

.tb.vt td,
.tb.vt th {
  padding: 4px 6px;
  font-variant-numeric: tabular-nums
}

.tb.vt td.rep {
  background: #fff3c4;
  font-weight: 700
}

.tb.vt td.hit {
  outline: 2px solid var(--red);
  outline-offset: -2px
}

.tb td.hot {
  background: #ffe1e1;
  font-weight: 700
}

.tb td.cold {
  background: #e4efff
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.two-col h3,
.st-box h3 {
  font-size: 15px;
  margin: 8px 0 6px
}

a.chip {
  text-decoration: none;
  color: inherit
}

@media(max-width:700px) {
  .two-col {
    grid-template-columns: 1fr
  }
}

/* FE statistics page */
.kqxs-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 12px
}

.kqxs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start
}

.kqxs-main {
  min-width: 0
}

.kqxs-sb-right {
  min-width: 0;
  order: 2
}

.kqxs-main {
  order: 1
}

@media(max-width:800px) {
  .kqxs-layout {
    grid-template-columns: 1fr
  }

  .kqxs-sb-right {
    order: 2
  }
}

.kq-box.vl {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 16px
}

.kq-head {
  background: #fff7d6;
  border-bottom: 1px solid #dfe5ee;
  text-align: center;
  padding: 11px
}

.kq-title {
  margin: 0;
  color: #e11d2e;
  font-size: 18px
}

.kq-links {
  margin-top: 4px;
  font-size: 13px
}

.balls {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  flex-wrap: wrap
}

.ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ff626b, #e11d35);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 2px 6px #ccd
}

.tb {
  width: 100%;
  border-collapse: collapse
}

.tb th,
.tb td {
  border: 1px solid #d9e2ee;
  padding: 8px;
  text-align: center
}

.tb th {
  background: #f1f6fb;
  color: #073d78
}

.tb .money {
  color: #e11d2e;
  font-weight: 700
}

.dt-title {
  font-size: 22px;
  color: #083b7a;
  margin: 4px 0 12px
}

.dt-header form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end
}

.dt-header label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #334155;
  font-weight: 600
}

.dt-header input,
.dt-header select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
  background: #fff
}

.dt-header button {
  background: #0b4ea2;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  font-weight: 700
}

.d123-box .balls {
  min-height: 68px
}

.d123-box .ball-loading {
  background: #e5e7eb;
  box-shadow: none;
  position: relative
}

.d123-box .ball-loading:after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid #cbd5e1;
  border-top-color: #e11d35;
  border-radius: 50%;
  animation: d123-spin .8s linear infinite
}

@keyframes d123-spin {
  to {
    transform: rotate(360deg)
  }
}

.keno-page .lead {
  display: block
}

.keno-spotlight,
.keno-history-wrap,
.keno-stats-top,
.keno-ts100 {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  margin: 0 0 16px;
  overflow: hidden
}

.keno-card__head,
.keno-history-head {
  background: #fff7d6;
  border-bottom: 1px solid #dfe5ee;
  padding: 12px 16px
}

.keno-card__head-inner {
  display: flex;
  align-items: center;
  gap: 12px
}

.keno-card__logo {
  width: 58px;
  height: 58px;
  object-fit: contain
}

.keno-card__title {
  font-weight: 800;
  color: #e11d2e
}

.keno-card__meta,
.keno-countdown-wrap {
  color: #334155;
  font-size: 14px;
  margin-top: 3px
}

.keno-card__body {
  padding: 14px
}

.keno-ball-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px
}

.keno-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(#ff626b, #e11d35);
  box-shadow: 0 2px 5px #ccd
}

.keno-ball.z2 {
  background: linear-gradient(#f59e0b, #d97706)
}

.keno-ball.z3 {
  background: linear-gradient(#16a34a, #15803d)
}

.keno-ball.z4 {
  background: linear-gradient(#2563eb, #1d4ed8)
}

.keno-ball.is-loading {
  background: #e5e7eb
}

.keno-stats-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px
}

.keno-stat {
  font-size: 14px
}

.keno-stat__ico {
  font-weight: 800;
  color: #e11d2e;
  margin-right: 3px
}

.keno-stat__val {
  font-weight: 700
}

.keno-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.keno-history-head__title {
  font-weight: 800;
  color: #083b7a
}

.keno-history-head__sub {
  font-size: 13px;
  color: #64748b
}

.keno-history-table-wrap {
  overflow-x: auto
}

.keno-history-table-head,
.keno-hist-row {
  display: grid;
  grid-template-columns: 130px 110px minmax(400px, 1fr);
  gap: 12px;
  align-items: center
}

.keno-history-table-head {
  background: #f1f6fb;
  color: #083b7a;
  font-weight: 700;
  padding: 9px 14px
}

.keno-hist-row {
  padding: 10px 14px;
  border-top: 1px solid #dfe5ee
}

.keno-hist-ky-num {
  font-weight: 800;
  color: #083b7a
}

.keno-hist-badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 10px;
  padding: 2px 6px;
  background: #f1f6fb;
  margin: 3px 2px 0 0
}

.keno-hist-time {
  font-size: 13px;
  color: #64748b
}

.keno-hist-nums-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px
}

.keno-hist-num {
  min-width: 28px;
  text-align: center;
  padding: 3px 4px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #f8fafc;
  color: #083b7a;
  font-weight: 600
}

.keno-hist-row--new {
  animation: keno-row-in .4s ease
}

@keyframes keno-row-in {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(max-width:700px) {

  .keno-history-table-head,
  .keno-hist-row {
    grid-template-columns: 90px 75px minmax(300px, 1fr);
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px
  }

  .keno-ball {
    width: 32px;
    height: 32px;
    font-size: 13px
  }
}

.keno-stats-top-wrap {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  margin: 0 0 16px;
  padding: 14px
}

.keno-stats-top-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px
}

.kst-col {
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff
}

.kst-col__head {
  padding: 9px 12px;
  color: #fff;
  font-weight: 800;
  font-size: 14px
}

.kst-head--nhieu {
  background: #0b4ea2
}

.kst-head--it {
  background: #64748b
}

.kst-head--chuave {
  background: #d97706
}

.kst-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 31px;
  padding: 4px 10px;
  border-top: 1px solid #edf1f5;
  font-size: 14px
}

.kst-row--alt {
  background: #f7f9fc
}

.kst-num {
  font-weight: 800;
  color: #e11d2e;
  font-variant-numeric: tabular-nums
}

.kst-count {
  color: #334155
}

.kst-col:empty {
  display: none
}

@media(max-width:700px) {
  .keno-stats-top-wrap {
    padding: 10px
  }

  .keno-stats-top-inner {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .kst-row {
    min-height: 34px;
    padding: 5px 12px
  }
}

.tk-xien-more {
  display: block;
  margin: 16px auto 0;
  padding: 9px 22px;
  border: 1px solid #0b4ea2;
  border-radius: 6px;
  background: #0b4ea2;
  color: #fff;
  font-weight: 700;
  cursor: pointer
}

.tk-xien-more:hover {
  background: #083b7a
}

.tk-xien-more:disabled {
  opacity: .65;
  cursor: wait
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  gap: 6px
}

.freq-item {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  background: #f5f8fc;
  border: 1px solid #d9e2ee;
  border-radius: 5px;
  font-size: 13px
}

.freq-item b {
  color: #123d70
}

.freq-item span {
  color: #e11d2e;
  font-weight: 700
}

.stats-scroll {
  overflow-x: auto
}

.stats-matrix {
  min-width: 760px;
  font-size: 12px
}

.tkdb-filter-form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap
}

.tkdb-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  color: #123d70
}

.tkdb-filter-form select {
  min-height: 38px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff
}

.tkdb-search-btn,
.tkck-clear-btn {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #0757a5;
  border-radius: 6px;
  background: #0757a5;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease
}

.tkdb-search-btn:hover,
.tkck-clear-btn:hover {
  border-color: #064783;
  background: #064783
}

.tkdb-search-btn:focus-visible,
.tkck-clear-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7,87,165,.18)
}

.tkdb-search-btn:disabled,
.tkck-clear-btn:disabled {
  cursor: wait;
  opacity: .65
}

@media (max-width: 700px) {
  .tkdb-filter-form {
    align-items: stretch
  }

  .tkdb-filter-form label {
    flex: 1 1 140px
  }

  .tkdb-filter-form select,
  .tkdb-filter-form .tkdb-search-btn {
    width: 100%
  }

  .tkdb-filter-form .tkdb-search-btn {
    flex: 1 0 100%
  }
}

.filter-card {
  background: #fff;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0
}

.filter-card form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap
}

.filter-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  color: #123d70
}

.filter-card select,
.filter-card button {
  min-height: 38px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff
}

.filter-card button {
  background: #0757a5;
  color: #fff;
  font-weight: 700;
  cursor: pointer
}

/* Flatpickr dùng chung cho các form của theme mới */
.flatpickr-calendar {
  width: 320px;
  overflow: hidden;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 61, 112, .18);
  color: #1f2937;
  font-family: inherit
}

.flatpickr-calendar.open {
  z-index: 99999
}

.flatpickr-calendar .dt-flatpickr-header {
  padding: 10px 14px;
  background: #0757a5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: left
}

.flatpickr-calendar .flatpickr-months {
  padding: 8px 8px 2px;
  background: #f5f8fc
}

.flatpickr-calendar .flatpickr-current-month,
.flatpickr-calendar .flatpickr-current-month input.cur-year,
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #123d70;
  font-weight: 700
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
  top: 43px;
  padding: 10px 12px;
  color: #0757a5;
  fill: #0757a5
}

.flatpickr-calendar .flatpickr-prev-month:hover svg,
.flatpickr-calendar .flatpickr-next-month:hover svg {
  fill: #e11d2e
}

.flatpickr-calendar .flatpickr-weekdays {
  background: #f5f8fc
}

.flatpickr-calendar span.flatpickr-weekday {
  color: #64748b;
  font-size: 12px;
  font-weight: 700
}

.flatpickr-calendar .flatpickr-day {
  border-radius: 6px;
  color: #334155
}

.flatpickr-calendar .flatpickr-day:hover,
.flatpickr-calendar .flatpickr-day:focus {
  border-color: #dbeafe;
  background: #dbeafe;
  color: #0757a5
}

.flatpickr-calendar .flatpickr-day.today {
  border-color: #0757a5;
  color: #0757a5;
  font-weight: 700
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
  border-color: #0757a5;
  background: #0757a5;
  color: #fff;
  box-shadow: none
}

.flatpickr-calendar .dt-flatpickr-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #d9e2ee;
  background: #f8fafc
}

.flatpickr-calendar .dt-fp-btn {
  min-height: 34px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  padding: 6px 12px;
  background: #fff;
  color: #123d70;
  font: inherit;
  font-weight: 700;
  cursor: pointer
}

.flatpickr-calendar .dt-fp-btn:hover {
  border-color: #0757a5;
  background: #edf5ff
}

.flatpickr-calendar .dt-fp-btn-today {
  border-color: #0757a5;
  background: #0757a5;
  color: #fff
}

.flatpickr-calendar .dt-fp-btn-today:hover {
  background: #064887;
  color: #fff
}

@media (max-width: 420px) {
  .flatpickr-calendar {
    width: calc(100vw - 24px)
  }

  .flatpickr-calendar .flatpickr-days,
  .flatpickr-calendar .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%
  }
}

/* Form thống kê dùng chung cho theme mới */
.tk-form-card {
  margin: 14px 0 16px;
  padding: 16px;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  background: #fff
}

.tk-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin: 0;
  text-align: left
}

.tk-form * {
  box-sizing: border-box
}

.tk-form .tkck-filter-main-row,
.tk-form .tkck-filter-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  width: 100%;
  margin: 0
}

.tk-form .tkck-filter-col,
.tk-form .tkck-filter-col--wide {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0
}

.tk-form .tkck-filter-field > .tkck-filter-col:first-child {
  flex: 0 0 190px;
  width: 190px
}

.tk-form .tkck-filter-field > .tkck-filter-col--wide {
  flex: 1
}

.tk-form label,
.tk-form .tkck-quick-label,
.tk-form .tkck-mode-label {
  display: block;
  width: auto;
  margin: 0;
  color: #123d70;
  font-weight: 700
}

.tk-form select,
.tk-form input[type=text] {
  min-height: 38px;
  height: 38px;
  padding: 7px 10px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit
}

.tk-form .tkck-filter-col:first-child select {
  width: 100%
}

.tk-form .tkck-date-range-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  width: 100%
}

.tk-form .tkck-date-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 170px
}

.tk-form .tkck-date-field input {
  width: 170px
}

.tk-form .tkdb-date-ico,
.tk-form .tkck-date-ico {
  height: 18px;
  line-height: 18px
}

.tk-form .tkdb-arrow {
  align-self: center;
  padding-top: 25px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap
}

.tk-form .tkck-wd {
  display: block;
  min-height: 18px;
  color: #334155;
  white-space: nowrap
}

.tk-form .tkck-bottom-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  gap: 16px;
  flex-wrap: wrap
}

.tk-form .tkck-submit-btn {
  min-width: 130px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: #0757a5;
  color: #fff;
  font-weight: 700;
  cursor: pointer
}

.tk-form .tkck-submit-btn:hover {
  background: #064887
}

.tkdd-summary-box .note {
  margin: -4px 0 12px
}

.tkdd-summary-table th:first-child {
  width: 54px
}

.tkdd-summary-table .bar {
  min-width: 120px
}

@media (max-width: 700px) {
  .tk-form .tkck-filter-main-row,
  .tk-form .tkck-filter-field {
    flex-direction: column;
    align-items: stretch;
    gap: 16px
  }

  .tk-form .tkck-filter-field > .tkck-filter-col:first-child,
  .tk-form .tkck-filter-field > .tkck-filter-col--wide {
    width: 100%;
    flex: 0 0 auto
  }

  .tk-form .tkck-date-range-row {
    flex-direction: column;
    align-items: stretch
  }

  .tk-form .tkck-date-field,
  .tk-form .tkck-date-field input {
    width: 100%;
    max-width: 100%
  }

  .tk-form .tkdb-arrow {
    align-self: flex-start;
    padding-top: 0
  }

  .tk-form .tkck-submit-btn {
    width: 100%
  }

  .tkdd-summary-table {
    min-width: 620px
  }
}

/* Soi cầu giải đặc biệt */
.scdb-filter-form .scdb-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0
}

.scdb-filter-form > .scdb-item:first-child {
  width: min(100%, 320px)
}

.scdb-filter-form .scdb-item select,
.scdb-filter-form .scdb-item input[type=text] {
  width: 100%
}

.scdb-filter-form .scdb-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
  width: 100%
}

.scdb-filter-form .scdb-row-dates .scdb-item {
  flex: 0 1 230px
}

.scdb-filter-form .scdb-date-field {
  width: 100%
}

.scdb-filter-form .scdb-date-field input {
  width: 100%
}

.scdb-filter-form .scdb-row-opt .scdb-item {
  flex: 0 1 210px
}

.scdb-filter-form .scdb-switch-wrap {
  flex: 0 1 220px;
  padding-bottom: 7px
}

.scdb-switch {
  position: relative;
  display: inline-block !important;
  width: 46px !important;
  height: 24px;
  cursor: pointer
}

.scdb-switch input {
  width: 0;
  height: 0;
  opacity: 0
}

.scdb-slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #cbd5e1;
  transition: .2s
}

.scdb-slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  content: '';
  transition: .2s
}

.scdb-switch input:checked + .scdb-slider {
  background: #0757a5
}

.scdb-switch input:checked + .scdb-slider::before {
  transform: translateX(22px)
}

.scdb-row-submit {
  margin-top: -2px
}

.scdb-grid-card,
.scdb-detail-wrap {
  position: relative;
  margin: 0 0 16px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch
}

.scdb-grid-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums
}

.scdb-grid-table th,
.scdb-grid-table td {
  border: 1px solid #d9e2ee;
  padding: 7px 4px;
  text-align: center
}

.scdb-grid-table th {
  width: 64px;
  background: #f5f8fc;
  color: #123d70;
  font-weight: 700
}

.scdb-grid-table td {
  background: #fff
}

.scdb-grid-table td:not(.is-empty) {
  background: #fff7d6
}

.scdb-cell-num {
  color: #123d70;
  font-weight: 700
}

.scdb-cell-hit {
  margin-top: 2px;
  color: #e11d2e;
  font-size: 13px;
  font-weight: 800
}

.scdb-grid-table td.is-empty .scdb-cell-hit {
  color: #94a3b8
}

.scdb-btn-pairs {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #0757a5;
  border-radius: 6px;
  background: #fff;
  color: #0757a5;
  font-weight: 700;
  cursor: pointer
}

.scdb-btn-pairs:hover {
  background: #edf5ff
}

.scdb-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 39, 71, .62)
}

.scdb-modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.25)
}

.scdb-modal-content h3 {
  margin: 0 36px 14px 0;
  color: #083b7a
}

.scdb-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: #64748b;
  font-size: 30px;
  line-height: 1;
  cursor: pointer
}

.scdb-pairs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px
}

.scdb-pair-item {
  padding: 8px 10px;
  border: 1px solid #d9e2ee;
  border-radius: 6px;
  background: #f5f8fc
}

.scdb-pair-label {
  color: #123d70;
  font-weight: 700
}

.scdb-pair-count {
  color: #e11d2e
}

.scdb-modal-open {
  overflow: hidden
}

.scdb-detail-wrap {
  overflow: visible
}

.scdb-detail-wrap > h2 {
  margin: 0 0 12px;
  color: #083b7a;
  font-size: 18px
}

.scdb-day-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 9px;
  background: #fff
}

.scdb-day-card h3 {
  margin: 0;
  padding: 10px 12px;
  background: #fff7d6;
  color: #e11d2e;
  font-size: 16px;
  text-align: center
}

.scdb-day-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}

.scdb-day-table td {
  padding: 6px 8px;
  border-top: 1px solid #d9e2ee;
  text-align: center
}

.scdb-day-table .prize-label {
  width: 90px;
  background: #f5f8fc;
  color: #64748b;
  font-weight: 700
}

.scdb-day-table .prize-numbers {
  color: #111;
  font-size: 20px;
  font-weight: 700
}

.scdb-day-table .prize-db .prize-numbers,
.scdb-day-table .prize-g7-mb .prize-numbers,
.scdb-day-table .prize-g8 .prize-numbers {
  color: #e11d2e
}

.scdb-day-table .mb-grid {
  display: grid;
  gap: 4px
}

.scdb-day-table .mb-col-2 { grid-template-columns: repeat(2, 1fr) }
.scdb-day-table .mb-col-3,
.scdb-day-table .mb-col-6 { grid-template-columns: repeat(3, 1fr) }
.scdb-day-table .mb-col-4 { grid-template-columns: repeat(4, 1fr) }

.scdb-special-note {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid #d9e2ee;
  background: #f8fafc;
  text-align: center
}

.scdb-special-note span {
  color: #e11d2e;
  font-weight: 800
}

/* Soi cầu loto bạch thủ và 3 càng */
.sc-predict-form {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(170px, 1fr) minmax(155px, 1fr) minmax(135px, .8fr);
  align-items: start;
  gap: 14px;
  width: 100%;
  margin: 0;
  text-align: left
}

.sc-predict-form *,
.sc-predict-form *::before,
.sc-predict-form *::after {
  box-sizing: border-box
}

.sc-predict-form .scdb-row-main,
.sc-predict-form .scdb-row-opt {
  display: contents
}

.sc-predict-form .scdb-item,
.sc-predict-form .scdb-row-opt .scdb-item,
.sc-predict-form .scdb-row-main .scdb-item {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: auto;
  min-width: 0;
  margin: 0
}

.sc-predict-form .scdb-item label {
  display: block;
  margin: 0;
  color: #123d70;
  font-weight: 700;
  line-height: 20px
}

.sc-predict-form select,
.sc-predict-form input[type=text],
.sc-predict-form .flatpickr-input + input {
  width: 100% !important;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit;
  box-shadow: none
}

.sc-predict-form select:focus,
.sc-predict-form input[type=text]:focus,
.sc-predict-form .flatpickr-input + input:focus {
  border-color: #1670c5;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(22,112,197,.12)
}

.sc-predict-form .scdb-date-row,
.sc-predict-form .scdb-date-field {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0
}

.sc-predict-form .tkck-wd {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 18px
}

.sc-predict-form .scdb-row-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 2px 0 0
}

.sc-predict-form .sc-predict-submit {
  min-width: 132px;
  min-height: 40px;
  padding: 9px 20px;
  border: 1px solid #0757a5;
  border-radius: 6px;
  background: #0757a5;
  color: #fff;
  font-weight: 700;
  cursor: pointer
}

.sc-predict-form .sc-predict-submit:hover {
  border-color: #064783;
  background: #064783
}

.sclbt-page .lead,
.sc3cl-page .lead {
  margin: -4px 0 14px;
  color: #64748b
}

.sclbt-page .tk-form-card,
.sc3cl-page .tk-form-card {
  margin-bottom: 16px
}

.sclbt-page .scdb-row-main .scdb-item,
.sc3cl-page .scdb-row-main .scdb-item {
  flex: 0 1 260px
}

.sclbt-page .scdb-row-opt,
.sc3cl-page .scdb-row-opt {
  margin-top: 14px
}

.sclbt-page .scdb-row-submit,
.sc3cl-page .scdb-row-submit {
  margin-top: 14px
}

.sclbt-summary-note,
.sc3cl-summary-note {
  margin: 0 0 10px;
  color: #475569;
  line-height: 1.6
}

.sc3cl-position-note {
  padding: 9px 12px;
  border: 1px solid #d9e2ee;
  border-radius: 7px;
  background: #f5f8fc;
  color: #123d70;
  text-align: center;
  font-weight: 700
}

.sc3cl-grid-card {
  position: relative;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fff
}

.sc3cl-grid-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px
}

.sc3cl-box-item {
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid #d9e2ee;
  border-radius: 7px;
  background: #fff7d6;
  text-align: center
}

.sc3cl-box-num {
  color: #123d70;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.sc3cl-box-hit {
  margin-top: 3px;
  color: #e11d2e;
  font-size: 13px;
  font-weight: 700
}

.sc3cl-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: #64748b;
  text-align: center
}

.sclbt-loto-direct-wrap {
  padding: 0 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.sclbt-loto-direct-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums
}

.sclbt-loto-direct-table th {
  padding: 9px;
  border: 1px solid #d9e2ee;
  background: #f5f8fc;
  color: #123d70;
  font-size: 14px
}

.sclbt-loto-direct-table td {
  padding: 7px 4px;
  border: 1px solid #d9e2ee;
  color: #123d70;
  text-align: center
}

@media (max-width: 700px) {
  .sc-predict-form {
    grid-template-columns: 1fr;
    gap: 13px
  }

  .sc-predict-form .scdb-row-submit {
    grid-column: 1
  }

  .sc-predict-form .sc-predict-submit {
    width: 100%
  }

  .scdb-filter-form .scdb-row {
    flex-direction: column;
    align-items: stretch
  }

  .scdb-filter-form > .scdb-item:first-child,
  .scdb-filter-form .scdb-row .scdb-item {
    width: 100%;
    flex: 0 0 auto
  }

  .scdb-filter-form .scdb-switch-wrap {
    padding-bottom: 0
  }

  .scdb-grid-card,
  .scdb-detail-wrap {
    padding: 12px
  }

  .scdb-pairs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .scdb-day-table .prize-label {
    width: 66px;
    font-size: 12px
  }

  .scdb-day-table .prize-numbers {
    font-size: 16px
  }

  .scdb-day-table .mb-col-4,
  .scdb-day-table .mb-col-6 {
    grid-template-columns: repeat(2, 1fr)
  }

  .sclbt-page .lead,
  .sc3cl-page .lead {
    font-size: 14px
  }

  .sclbt-page .scdb-row-main .scdb-item,
  .sc3cl-page .scdb-row-main .scdb-item,
  .sclbt-page .scdb-row-opt .scdb-item,
  .sc3cl-page .scdb-row-opt .scdb-item {
    flex: 0 0 auto;
    width: 100%
  }

  .sc3cl-grid-card {
    padding: 12px
  }

  .sc3cl-grid-boxes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px
  }

  .sc3cl-box-item {
    padding: 9px 4px
  }

  .scdb-detail-wrap > h2 {
    font-size: 17px;
    line-height: 1.45
  }

  .sclbt-loto-direct-wrap {
    padding: 0 8px 8px
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .sc-predict-form {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .sc3cl-grid-boxes {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }
}

/* Trang soi cầu tam giác Pascal */
.scpas-page .lead {
  margin: -4px 0 14px;
  color: #64748b
}

.scpas-filter-form .scpas-label-hidden {
  visibility: hidden
}

.scpas-filter-form .scpas-item-btn {
  align-self: start
}

.scpas-filter-form .scpas-item-btn .sc-predict-submit {
  width: 100%;
  height: 40px
}

.scpas-results-wrap {
  position: relative
}

.scpas-empty,
.scpas-card {
  margin-bottom: 16px;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fff
}

.scpas-empty {
  padding: 22px;
  color: #64748b;
  text-align: center
}

.scpas-card {
  overflow: hidden
}

.scpas-card-head {
  padding: 13px 16px;
  border-bottom: 1px solid #d9e2ee;
  background: #fff7d6
}

.scpas-card-head h2 {
  margin: 0;
  color: #083b7a;
  font-size: 18px;
  line-height: 1.45
}

.scpas-card-body {
  padding: 18px 16px 22px
}

.scpas-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 11px;
  border-bottom: 1px dashed #d9e2ee;
  color: #123d70;
  font-variant-numeric: tabular-nums
}

.scpas-meta-row span {
  color: #e11d2e;
  font-weight: 700
}

.scpas-triangle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow: hidden
}

.scpas-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-width: max-content
}

.scpas-ball,
.scpas-result-ball {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 2px 4px rgba(255,255,255,.3), 0 4px 8px rgba(121,15,30,.22)
}

.scpas-ball {
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, #f2384f, #bd001d);
  font-size: 16px
}

.scpas-result-title {
  margin: 17px 0 9px;
  color: #123d70;
  font-size: 16px;
  font-weight: 800;
  text-align: center
}

.scpas-result-row {
  display: flex;
  justify-content: center;
  gap: 12px
}

.scpas-result-ball {
  width: 54px;
  height: 54px;
  background: linear-gradient(145deg, #4fd29c, #05945f);
  font-size: 21px;
  box-shadow: inset 0 2px 5px rgba(255,255,255,.35), 0 5px 11px rgba(5,148,95,.25)
}

.scpas-guide {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  line-height: 1.7
}

.scpas-guide h2 {
  margin: 0 0 10px;
  color: #083b7a;
  font-size: 19px
}

.scpas-guide p {
  margin: 7px 0
}

.scpas-guide-note {
  color: #64748b;
  font-size: 14px;
  font-style: italic
}

@media (max-width: 700px) {
  .scpas-page .lead {
    font-size: 14px
  }

  .scpas-card-head,
  .scpas-card-body {
    padding-right: 12px;
    padding-left: 12px
  }

  .scpas-card-head h2 {
    font-size: 16px
  }

  .scpas-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px
  }

  .scpas-triangle-wrap {
    gap: 4px
  }

  .scpas-row {
    gap: 4px
  }

  .scpas-ball {
    width: 29px;
    height: 29px;
    font-size: 14px
  }

  .scpas-result-ball {
    width: 48px;
    height: 48px;
    font-size: 19px
  }
}

@media (max-width: 380px) {
  .scpas-card-body {
    padding-right: 8px;
    padding-left: 8px
  }

  .scpas-row {
    gap: 3px
  }

  .scpas-ball {
    width: 25px;
    height: 25px;
    font-size: 12px
  }
}

/* Trang quay thử xổ số ba miền */
.qt-page {
  min-width: 0
}

.qt-page__region-tabs {
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #d9e2ee;
  border-radius: 9px;
  background: #fff
}

.qt-page__region-tabs .weekday-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px
}

.qt-page__region-tabs .weekday-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  color: #123d70;
  font-weight: 800;
  text-decoration: none;
  transition: .18s ease
}

.qt-page__region-tabs .weekday-item:hover {
  background: #edf5ff
}

.qt-page__region-tabs .weekday-item.active {
  background: #0757a5;
  color: #fff;
  box-shadow: 0 3px 8px rgba(7,87,165,.2)
}

.qt-page__toolbar {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #d9e2ee;
  border-left: 4px solid #0757a5;
  border-radius: 9px;
  background: #fff
}

.qt-page__toolbar p {
  margin: 0 0 13px;
  color: #475569;
  line-height: 1.65
}

.qt-page__toolbar strong {
  color: #e11d2e
}

.qt-page__action-btn {
  min-width: 170px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #0757a5;
  border-radius: 6px;
  background: #0757a5;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(7,87,165,.18)
}

.qt-page__action-btn:hover {
  border-color: #064783;
  background: #064783
}

.qt-page__action-btn:disabled {
  cursor: wait;
  opacity: .72
}

.qt-page .primary-result-wrapper {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fff
}

.qt-page .primary-result-wrapper .region-section {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none
}

.qt-page .region-header,
.qt-page .loto-header {
  background: #0757a5 !important;
  color: #fff
}

.qt-page .region-header {
  padding: 10px 12px
}

.qt-page .region-name-main,
.qt-page .region-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase
}

.qt-page .region-name-main,
.qt-page .region-title,
.qt-page .loto-title {
  color: #fff
}

.qt-page .region-name-sub {
  color: #e7f2ff
}

.qt-page .drawing-label {
  padding: 7px 11px;
  border-bottom: 1px solid #d9e2ee;
  background: #edf5ff;
  color: #0757a5;
  font-size: 13px;
  font-weight: 800
}

.qt-page .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  animation: qt-pulse 1s infinite
}

@keyframes qt-pulse {
  0%, 100% { opacity: 1; transform: scale(1) }
  50% { opacity: .4; transform: scale(.75) }
}

.qt-page .lottery-table-wrap,
.qt-page .loto-body {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.qt-page .lottery-table,
.qt-page .loto-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums
}

.qt-page .loto-table th:nth-child(1),
.qt-page .loto-table td:nth-child(1),
.qt-page .loto-table th:nth-child(3),
.qt-page .loto-table td:nth-child(3) {
  width: 42px
}

.qt-page .lottery-table th,
.qt-page .lottery-table td {
  border-right: 1px solid #d9e2ee;
  border-bottom: 1px solid #d9e2ee
}

.qt-page .lottery-table th:last-child,
.qt-page .lottery-table td:last-child {
  border-right: 0
}

.qt-page .lottery-table .prize-label {
  width: 74px;
  padding: 9px 5px;
  background: #f5f8fc;
  color: #123d70;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap
}

.qt-page .lottery-table .province-name {
  padding: 9px 6px;
  background: #f5f8fc;
  color: #123d70;
  font-size: 14px;
  font-weight: 800;
  text-align: center
}

.qt-page .lottery-table .prize-numbers,
.qt-page .lottery-table .ky-hieu-box {
  min-height: 42px;
  padding: 8px 6px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
  vertical-align: middle
}

.qt-page .lottery-table .ky-hieu-box {
  color: #475569;
  font-size: 13px;
  font-weight: 600
}

.qt-page .lottery-table .prize-db .prize-label,
.qt-page .lottery-table .prize-db .prize-numbers {
  background: #fff9e8
}

.qt-page .lottery-table .prize-db .prize-numbers,
.qt-page .lottery-table .prize-g8 .prize-numbers,
.qt-page .lottery-table .prize-g7-mb .prize-numbers {
  color: #e11d2e
}

.qt-page .lottery-table .prize-db .prize-numbers {
  font-size: 25px;
  font-weight: 850
}

.qt-page .mb-grid {
  display: grid;
  gap: 0;
  width: 100%
}

.qt-page .mb-col-1 { grid-template-columns: 1fr }
.qt-page .mb-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.qt-page .mb-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.qt-page .mb-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.qt-page .mb-col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) }
.qt-page .mb-col-6 { grid-template-columns: repeat(6, minmax(0, 1fr)) }

.qt-page .mb-grid > div {
  min-width: 0;
  padding: 4px 2px;
  border-right: 1px dotted #d9e2ee;
  text-align: center
}

.qt-page .mb-grid > div:last-child {
  border-right: 0
}

.qt-page [data-display="full"] .v-2,
.qt-page [data-display="full"] .v-3,
.qt-page [data-display="2"] .v-full,
.qt-page [data-display="2"] .v-3,
.qt-page [data-display="3"] .v-full,
.qt-page [data-display="3"] .v-2 {
  display: none
}

.qt-page [data-display="full"] .v-full,
.qt-page [data-display="2"] .v-2,
.qt-page [data-display="3"] .v-3 {
  display: inline
}

.qt-page .prize-loading-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px
}

.qt-page .prize-loading {
  display: inline-block;
  width: 24px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(90deg, #edf1f5 25%, #dce4ec 50%, #edf1f5 75%);
  background-size: 200% 100%;
  animation: qt-shimmer 1.15s ease-in-out infinite;
  vertical-align: middle
}

.qt-page .prize-loading.loading-db {
  width: 58px;
  height: 18px
}

.qt-page .num-slot,
.qt-page .qt-char-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: .68em;
  color: #e11d2e;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center
}

.qt-page .qt-char-sep {
  margin: 0 3px;
  color: #94a3b8
}

@keyframes qt-shimmer {
  0% { background-position: 200% 0 }
  100% { background-position: -200% 0 }
}

.qt-page .display-mode-row {
  padding: 8px 10px;
  border-top: 1px solid #d9e2ee;
  border-bottom: 1px solid #d9e2ee;
  background: #f8fafc
}

.qt-page .loto-table-wrapper {
  margin: 0;
  overflow: hidden;
  border-top: 0;
  background: #fff
}

.qt-page .loto-header {
  padding: 9px 12px
}

.qt-page .loto-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase
}

.qt-page .loto-table thead th {
  padding: 7px 6px;
  border-right: 1px solid #d9e2ee;
  border-bottom: 1px solid #d9e2ee;
  background: #f5f8fc;
  color: #475569;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase
}

.qt-page .loto-table td {
  padding: 5px 7px;
  border-right: 1px solid #e5ebf2;
  border-bottom: 1px solid #e5ebf2;
  color: #334155;
  font-size: 13px;
  line-height: 1.55
}

.qt-page .loto-table .loto-nums {
  width: auto;
  min-width: 0
}

.qt-page .loto-table tbody tr:nth-child(odd) {
  background: #f8fafc
}

.qt-page .loto-head-cell {
  width: 34px;
  background: #0757a5;
  color: #fff !important;
  font-weight: 800;
  text-align: center
}

.qt-page .loto-span {
  display: inline-block;
  margin: 1px 2px;
  padding: 1px 3px
}

.qt-page .loto-hi {
  border-radius: 3px;
  background: #fff0ad;
  color: #9a3412;
  font-weight: 800
}

.qt-page .mode-btn {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid #cbd8e8;
  border-radius: 5px;
  background: #fff;
  color: #475569;
  cursor: pointer
}

.qt-page .mode-btn.active {
  border-color: #0757a5;
  background: #0757a5;
  color: #fff;
  font-weight: 700
}

.qt-page__extra-card,
.qt-page__prediction-card {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fff
}

.qt-page__section-title {
  margin: 0;
  padding: 10px 13px;
  background: #0757a5;
  color: #fff;
  font-size: 16px
}

.qt-page__link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
  padding: 8px 14px 10px;
  list-style: none
}

.qt-page__link-list li {
  border-bottom: 1px solid #edf1f6
}

.qt-page__link-list a {
  display: block;
  padding: 8px 2px;
  color: #0757a5;
  text-decoration: none
}

.qt-page__link-list a::before {
  margin-right: 7px;
  color: #64748b;
  content: '›'
}

.qt-page__prediction-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px
}

.qt-page__prediction-thumb {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: #edf5ff;
  aspect-ratio: 16 / 9
}

.qt-page__prediction-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.qt-page__prediction-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #0757a5;
  font-size: 13px;
  font-weight: 700;
  text-align: center
}

.qt-page__prediction-item-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.45
}

.qt-page__prediction-item-title a {
  color: #123d70;
  text-decoration: none
}

.qt-page__prediction-empty,
.qt-page__prediction-more {
  margin: 12px 14px
}

@media (max-width: 700px) {
  .qt-page__toolbar {
    padding: 13px
  }

  .qt-page__toolbar p {
    font-size: 14px
  }

  .qt-page__action-btn {
    width: 100%
  }

  .qt-page .lottery-table {
    min-width: 620px
  }

  .qt-page .lottery-table-mb {
    min-width: 0
  }

  .qt-page .lottery-table .prize-label {
    width: 58px;
    font-size: 12px
  }

  .qt-page .lottery-table .prize-numbers,
  .qt-page .lottery-table .ky-hieu-box {
    font-size: 17px
  }

  .qt-page .lottery-table .prize-db .prize-numbers {
    font-size: 22px
  }

  .qt-page .lottery-table-mb .mb-col-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .qt-page .loto-body {
    overflow-x: visible
  }

  .qt-page .loto-table {
    width: 100%;
    min-width: 0
  }

  .qt-page .loto-table th:nth-child(1),
  .qt-page .loto-table td:nth-child(1),
  .qt-page .loto-table th:nth-child(3),
  .qt-page .loto-table td:nth-child(3) {
    width: 34px;
    padding-right: 2px;
    padding-left: 2px
  }

  .qt-page .loto-table .loto-nums {
    padding-right: 4px;
    padding-left: 4px;
    overflow-wrap: anywhere
  }

  .qt-page__link-list {
    grid-template-columns: 1fr
  }

  .qt-page__prediction-item {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 10px;
    padding: 11px
  }
}

/* Trang thống kê chu kỳ */
.tkcky-fullwidth-page {
  max-width: 1320px
}

.tkcky-main {
  min-width: 0;
  width: 100%;
  padding: 14px 0 24px
}

.tk-form .tkcky-filter-row {
  align-items: flex-end;
  gap: 14px
}

.tk-form .tkcky-filter-row > .tkck-filter-col {
  flex: 0 1 210px;
  width: 210px
}

.tk-form .tkcky-filter-row > .tkck-filter-col:first-child {
  flex: 0 1 160px;
  width: 160px
}

.tk-form .tkcky-filter-row select {
  width: 100%
}

.tk-form .tkcky-submit-col {
  flex: 0 0 auto;
  width: auto
}

.tkcky-hidden-label {
  visibility: hidden
}

.tkcky-results-box {
  padding: 0;
  overflow: hidden
}

.tkcky-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line, #d9e2ee)
}

.tkcky-results-head h2 {
  margin: 0
}

.tkcky-table-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  scrollbar-color: #94a3b8 #eef2f7;
  scrollbar-width: thin
}

.tkcky-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  background: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums
}

.tkcky-table th,
.tkcky-table td {
  height: 32px;
  padding: 4px 6px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap
}

.tkcky-table thead th {
  position: sticky;
  z-index: 3;
  background: #f5f8fc;
  color: #123d70;
  font-weight: 700
}

.tkcky-table .tkcky-row-month th {
  top: 0
}

.tkcky-table .tkcky-row-day th {
  top: 32px
}

.tkcky-table .tkcky-sticky-col {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 62px;
  min-width: 62px;
  background: #f5f8fc;
  color: #123d70;
  font-weight: 700;
  box-shadow: 1px 0 0 #d9e2ee
}

.tkcky-table tbody tr:nth-child(even) td:not(.tkcky-hit) {
  background: #fbfcfe
}

.tkcky-table .tkcky-data-cell {
  min-width: 42px;
  color: transparent
}

.tkcky-table .tkcky-hit {
  background: #fff1b8;
  color: #9a3412;
  font-weight: 800
}

.tkcky-table tbody tr:hover td {
  background: #edf5ff
}

.tkcky-table tbody tr:hover .tkcky-hit {
  background: #fde68a
}

.dt-results-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .78)
}

.dt-results-overlay.active {
  display: flex
}

.dt-results-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d9e2ee;
  border-top-color: #0757a5;
  border-radius: 50%;
  animation: tk-stats-spin .8s linear infinite
}

@keyframes tk-stats-spin {
  to { transform: rotate(360deg) }
}

@media (max-width: 700px) {
  .tkcky-main {
    padding-top: 10px
  }

  .tk-form .tkcky-filter-row {
    align-items: stretch
  }

  .tk-form .tkcky-filter-row > .tkck-filter-col,
  .tk-form .tkcky-filter-row > .tkck-filter-col:first-child,
  .tk-form .tkcky-submit-col {
    width: 100%;
    flex: 0 0 auto
  }

  .tkcky-hidden-label {
    display: none
  }

  .tkcky-results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px
  }

  .tkcky-table {
    font-size: 12px
  }

  .tkcky-table th,
  .tkcky-table td {
    height: 30px;
    padding: 3px 5px
  }

  .tkcky-table .tkcky-row-day th {
    top: 30px
  }

  .tkcky-table .tkcky-sticky-col {
    width: 52px;
    min-width: 52px
  }

  .tkcky-table .tkcky-data-cell {
    min-width: 38px
  }
}

.stats-table,
.stats-matrix table {
  width: 100%;
  border-collapse: collapse
}

.stats-table th,
.stats-table td,
.stats-matrix th,
.stats-matrix td {
  border: 1px solid #d9e2ee;
  padding: 7px;
  text-align: center
}

.stats-table thead th,
.stats-matrix thead th {
  background: #f1f6fb;
  color: #073d78
}

.freq-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left
}

.freq-bar i {
  display: inline-block;
  height: 16px;
  background: #1765b0;
  border-radius: 3px;
  min-width: 2px
}

.freq-bar b {
  color: #123d70
}

.stats-matrix {
  overflow: auto
}

.stats-matrix table {
  min-width: 680px;
  font-size: 12px
}

/* Prediction article archives */
.prediction-archive {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 58, 110, .05);
}

.prediction-list {
  padding: 0 20px;
}

.prediction-card {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line, #d9e2ee);
}

.prediction-card:last-child {
  border-bottom: 0;
}

.prediction-card__title {
  margin: 0 0 11px;
  font-size: 17px;
  line-height: 1.42;
}

.prediction-card__title a {
  color: var(--pri, #0b4ea2);
  text-decoration: none;
}

.prediction-card__title a:hover,
.prediction-card__title a:focus-visible {
  color: #e11d2e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prediction-card__body {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.prediction-card__thumb {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #edf4fc;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 7px;
}

.prediction-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.prediction-card__thumb:hover img {
  transform: scale(1.025);
}

.prediction-card__thumb-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #7b91ad;
  font-weight: 800;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #edf4fc, #f9fbfe);
}

.prediction-card__content {
  min-width: 0;
}

.prediction-card__excerpt {
  margin: -2px 0 9px;
  color: var(--txt, #1f2937);
  font-size: 15px;
  line-height: 1.6;
}

.prediction-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pri, #0b4ea2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.prediction-card__more:hover,
.prediction-card__more:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prediction-pagination {
  padding: 4px 20px 20px;
}

.prediction-pagination > .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prediction-pagination .page-numbers li {
  margin: 0;
}

.prediction-pagination a.page-numbers,
.prediction-pagination span.page-numbers {
  display: grid;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  place-items: center;
  color: var(--pri, #0b4ea2);
  text-decoration: none;
  background: #fff;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
}

.prediction-pagination span.page-numbers.current,
.prediction-pagination a.page-numbers:hover {
  color: #fff;
  background: var(--pri, #0b4ea2);
  border-color: var(--pri, #0b4ea2);
}

.prediction-empty {
  display: grid;
  min-height: 180px;
  padding: 32px 20px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--soft, #64748b);
  text-align: center;
}

.prediction-empty > span {
  color: #91a3ba;
  font-size: 30px;
}

.prediction-empty p {
  margin: 0;
}

@media (max-width: 700px) {
  .prediction-list {
    padding: 0 14px;
  }

  .prediction-card {
    padding: 15px 0 17px;
  }

  .prediction-card__title {
    margin-bottom: 9px;
    font-size: 16px;
  }

  .prediction-card__body {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 11px;
  }

  .prediction-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .prediction-card__more {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .prediction-card__body {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 9px;
  }

  .prediction-card__excerpt {
    -webkit-line-clamp: 3;
  }
}
/* Lịch mở thưởng */
.lmt-wrap {
  min-width: 0
}

.lmt-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  background: #fff
}

.lmt-tab {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #164477;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, color .18s ease
}

.lmt-tab:hover {
  background: #edf5ff
}

.lmt-tab.is-active {
  background: var(--pri, #0757a5);
  color: #fff;
  box-shadow: 0 3px 9px rgba(7, 87, 165, .2)
}

.lmt-tab:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 2px
}

.lmt-tab-ico {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  height: 19px
}

.lmt-tab-ico svg {
  width: 100%;
  height: 100%
}

.lmt-panel {
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 58, 110, .04)
}

.lmt-panel[hidden] {
  display: none !important
}

.lmt-panel-head {
  margin: 0;
  padding: 11px 14px;
  background: var(--pri, #0757a5);
  color: #fff;
  font-size: 16px;
  line-height: 1.35
}

.lmt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}

.lmt-table th,
.lmt-table td {
  padding: 11px 12px;
  border-right: 1px solid var(--line, #d9e2ee);
  border-bottom: 1px solid var(--line, #d9e2ee);
  text-align: left;
  vertical-align: middle
}

.lmt-table th:last-child,
.lmt-table td:last-child {
  border-right: 0
}

.lmt-table tbody tr:last-child td {
  border-bottom: 0
}

.lmt-table thead th {
  background: #f3f7fc;
  color: #123d70;
  font-size: 13px;
  font-weight: 800
}

.lmt-table th:first-child,
.lmt-table td:first-child {
  width: 112px
}

.lmt-table th:last-child,
.lmt-table td:last-child {
  width: 92px;
  text-align: center
}

.lmt-table tbody tr:nth-child(even) {
  background: #fbfdff
}

.lmt-table tbody tr.is-today {
  background: #fff9df
}

.lmt-table .is-day,
.lmt-table .is-time,
.lmt-table .is-product {
  color: #123d70;
  font-weight: 750
}

.lmt-table .is-time {
  color: #e11d2e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.lmt-today-badge {
  display: block;
  width: max-content;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #e11d2e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4
}

.lmt-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 2px 4px 2px 0;
  padding: 5px 9px;
  border: 1px solid #cbd8e8;
  border-radius: 16px;
  background: #f4f8fd;
  color: var(--pri, #0757a5);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none
}

a.lmt-chip:hover,
.lmt-table .is-product a:hover {
  border-color: var(--pri, #0757a5);
  background: #e7f2ff;
  text-decoration: none
}

.lmt-chip.is-outline {
  background: #fff
}

.lmt-table .is-product a {
  color: var(--pri, #0757a5);
  text-decoration: none
}

.lmt-note-box {
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--line, #d9e2ee);
  border-left: 4px solid var(--pri, #0757a5);
  border-radius: 9px;
  background: #fff
}

.lmt-note-box h3 {
  margin: 0 0 10px;
  color: #123d70;
  font-size: 17px
}

.lmt-note-box p {
  margin: 6px 0;
  color: #334155;
  line-height: 1.6
}

.lmt-note-box .is-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #d9e2ee);
  color: #64748b;
  font-size: 13px
}

@media (max-width: 700px) {
  .lmt-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch
  }

  .lmt-tab {
    flex: 0 0 auto;
    min-width: 118px
  }

  .lmt-table th,
  .lmt-table td {
    padding: 9px 7px
  }

  .lmt-table th:first-child,
  .lmt-table td:first-child {
    width: 78px
  }

  .lmt-table th:last-child,
  .lmt-table td:last-child {
    width: 62px
  }

  .lmt-chip {
    min-height: 27px;
    margin-right: 2px;
    padding: 4px 7px;
    font-size: 12px
  }

  .lmt-note-box {
    padding: 14px
  }
}

@media (max-width: 390px) {
  .lmt-table th,
  .lmt-table td {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px
  }

  .lmt-table th:first-child,
  .lmt-table td:first-child {
    width: 70px
  }

  .lmt-table th:last-child,
  .lmt-table td:last-child {
    width: 56px
  }
}

/* Ticket result checker */
.xskt-ticket-page .lead {
  margin-bottom: 14px
}

.ticket-checker,
.ticket-result,
.ticket-guide,
.ticket-page-content {
  margin-bottom: 14px;
  padding: 16px
}

.ticket-checker > h2,
.ticket-result > h2,
.ticket-guide > h2 {
  margin: 0 0 14px;
  color: #073d79;
  font-size: 18px
}

.ticket-check-form {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) minmax(180px, 1fr) minmax(165px, .8fr) auto;
  gap: 12px;
  align-items: end
}

.ticket-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px
}

.ticket-field > span {
  color: #123d70;
  font-size: 14px;
  font-weight: 800
}

.ticket-field input,
.ticket-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c8d7e8;
  border-radius: 7px;
  background: #fff;
  color: #17283d;
  font: inherit
}

.ticket-field input:focus,
.ticket-field select:focus {
  border-color: var(--pri, #0757a5);
  outline: 3px solid rgba(7, 87, 165, .12)
}

.ticket-field small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4
}

.ticket-actions {
  padding-bottom: 1px
}

.ticket-actions button {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--pri, #0757a5);
  border-radius: 7px;
  background: var(--pri, #0757a5);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer
}

.ticket-actions button:hover {
  background: #064a8c
}

.ticket-alert {
  padding: 13px 14px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.55
}

.ticket-alert-error {
  border: 1px solid #f3c9ce;
  background: #fff4f5;
  color: #a31424
}

.ticket-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: -3px 0 13px;
  color: #52657a;
  font-size: 13px
}

.ticket-result-meta strong {
  color: #073d79
}

.ticket-result-list {
  display: grid;
  gap: 10px
}

.ticket-result-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #f8fbff
}

.ticket-result-item.is-win {
  border-color: #87d6ad;
  background: #effbf5
}

.ticket-result-item.is-miss {
  border-color: #e1e7ef;
  background: #f8fafc
}

.ticket-result-number {
  grid-row: 1 / span 2;
  color: #073d79;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums
}

.ticket-result-item.is-win .ticket-result-number,
.ticket-result-item.is-win .ticket-result-status {
  color: #087443
}

.ticket-result-status {
  color: #42566e;
  font-weight: 700
}

.ticket-result-item ul {
  margin: 0;
  padding-left: 19px;
  color: #263b50;
  font-size: 14px
}

.ticket-result-note {
  margin: 13px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55
}

.ticket-guide ol {
  margin: 0 0 10px;
  padding-left: 20px
}

.ticket-guide li {
  margin-bottom: 6px
}

.ticket-guide p,
.ticket-page-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.65
}

.ticket-guide p {
  margin: 0
}

@media (max-width: 900px) {
  .ticket-check-form {
    grid-template-columns: 1fr 1fr
  }

  .ticket-field-number {
    grid-column: 1 / -1
  }

  .ticket-actions button {
    width: 100%
  }
}

@media (max-width: 540px) {
  .ticket-checker,
  .ticket-result,
  .ticket-guide,
  .ticket-page-content {
    padding: 13px
  }

  .ticket-check-form {
    grid-template-columns: 1fr
  }

  .ticket-field-number {
    grid-column: auto
  }

  .ticket-result-item {
    grid-template-columns: 1fr
  }

  .ticket-result-number {
    grid-row: auto;
    font-size: 23px
  }
}
/* Sổ mơ */
.somo-wrap {
  position: relative;
  min-width: 0
}

.somo-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 10px;
  background: #fff
}

.somo-field {
  min-width: 0
}

.somo-field label {
  display: block;
  margin: 0 0 6px;
  color: #123d70;
  font-size: 14px;
  font-weight: 750
}

.somo-field input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 14px;
  outline: none
}

.somo-field input:focus {
  border-color: var(--pri, #0757a5);
  box-shadow: 0 0 0 3px rgba(7, 87, 165, .12)
}

.somo-actions {
  display: flex;
  gap: 7px
}

.somo-btn {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer
}

.somo-btn-search {
  border-color: var(--pri, #0757a5);
  background: var(--pri, #0757a5);
  color: #fff
}

.somo-btn-search:hover {
  background: #064783
}

.somo-btn-reset:hover {
  border-color: #94a3b8;
  background: #f1f5f9
}

.somo-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #d9e2ee);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f5f8fc
}

.somo-results-meta {
  color: #475569;
  font-size: 13px
}

.somo-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end
}

.somo-page-btn,
.somo-page-dots {
  display: inline-grid;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  place-items: center;
  border: 1px solid #cbd8e8;
  border-radius: 5px;
  background: #fff;
  color: var(--pri, #0757a5);
  font: inherit;
  font-size: 13px
}

.somo-page-btn {
  cursor: pointer
}

.somo-page-btn:hover,
.somo-page-btn.is-active {
  border-color: var(--pri, #0757a5);
  background: var(--pri, #0757a5);
  color: #fff
}

.somo-page-btn.is-active {
  font-weight: 800
}

.somo-page-btn.is-disabled {
  cursor: not-allowed;
  opacity: .45
}

.somo-page-dots {
  border-color: transparent;
  background: transparent
}

.somo-table-wrap {
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line, #d9e2ee);
  border-radius: 0 0 10px 10px;
  background: #fff
}

.somo-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed
}

.somo-table th,
.somo-table td {
  padding: 10px 12px;
  border-right: 1px solid var(--line, #d9e2ee);
  border-bottom: 1px solid var(--line, #d9e2ee);
  text-align: left;
  vertical-align: middle
}

.somo-table th:last-child,
.somo-table td:last-child {
  border-right: 0
}

.somo-table tbody tr:last-child td {
  border-bottom: 0
}

.somo-table thead th {
  background: var(--pri, #0757a5);
  color: #fff;
  font-size: 13px;
  font-weight: 800
}

.somo-table th:first-child,
.somo-table td:first-child {
  width: 70px;
  text-align: center
}

.somo-table th:last-child,
.somo-table td:last-child {
  width: 180px;
  text-align: center
}

.somo-table tbody tr:nth-child(even) {
  background: #f8fafc
}

.somo-table tbody tr:hover {
  background: #edf5ff
}

.somo-table tbody td:nth-child(2) {
  color: #1f2937;
  font-weight: 600
}

.somo-table tbody td:last-child {
  color: #e11d2e;
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.somo-empty {
  height: 120px;
  color: #64748b !important;
  font-weight: 500 !important;
  text-align: center !important
}

.somo-wrap.is-loading::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Đang tải…";
  background: rgba(255, 255, 255, .72);
  color: var(--pri, #0757a5);
  font-weight: 800;
  backdrop-filter: blur(1px)
}

@media (max-width: 700px) {
  .somo-filter {
    grid-template-columns: 1fr 1fr;
    padding: 13px
  }

  .somo-actions {
    grid-column: 1 / -1
  }

  .somo-btn {
    flex: 1
  }

  .somo-meta-row {
    align-items: flex-start;
    flex-direction: column
  }

  .somo-pagination {
    justify-content: flex-start
  }

  .somo-table th,
  .somo-table td {
    padding: 9px 7px;
    font-size: 13px
  }

  .somo-table th:first-child,
  .somo-table td:first-child {
    width: 48px
  }

  .somo-table th:last-child,
  .somo-table td:last-child {
    width: 112px
  }
}

@media (max-width: 430px) {
  .somo-filter {
    grid-template-columns: 1fr
  }

  .somo-actions {
    grid-column: auto
  }

  .somo-table th,
  .somo-table td {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px
  }

  .somo-table th:first-child,
  .somo-table td:first-child {
    width: 42px
  }

  .somo-table th:last-child,
  .somo-table td:last-child {
    width: 96px
  }
}

/* News archive and standard WordPress posts */
.xskt-news-page .lead {
  margin-bottom: 14px
}

.xskt-news-list-card {
  padding: 0 16px
}

.xskt-news-list-wrap {
  display: flex;
  flex-direction: column
}

.xskt-news-item {
  padding: 17px 0;
  border-bottom: 1px solid #dbe4ef
}

.xskt-news-item:first-child {
  padding-top: 15px
}

.xskt-news-item:last-child {
  border-bottom: 0
}

.xskt-news-item-title {
  margin: 0 0 4px;
  color: #073d79;
  font-size: 18px;
  line-height: 1.4
}

.xskt-news-item-title a {
  color: inherit;
  text-decoration: none
}

.xskt-news-item-title a:hover {
  color: var(--pri, #0757a5);
  text-decoration: underline
}

.xskt-news-item-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px
}

.xskt-news-item-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: start
}

.xskt-news-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #eef5fd;
  text-decoration: none
}

.xskt-news-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease
}

.xskt-news-thumb:hover img {
  transform: scale(1.025)
}

.xskt-news-thumb-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #e8f2ff, #f7fbff);
  color: var(--pri, #0757a5);
  font-weight: 800
}

.xskt-news-item-summary p {
  margin: 0 0 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.65
}

.xskt-news-readmore {
  color: var(--pri, #0757a5);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none
}

.xskt-news-readmore:hover {
  text-decoration: underline
}

.xskt-news-empty {
  margin: 0;
  padding: 30px 10px;
  color: #64748b;
  text-align: center
}

.xskt-news-pagination {
  padding: 5px 0 17px
}

.xskt-news-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none
}

.xskt-news-pagination a,
.xskt-news-pagination span {
  display: grid;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  place-items: center;
  border: 1px solid #cbd8e8;
  border-radius: 6px;
  background: #fff;
  color: #0757a5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none
}

.xskt-news-pagination .current,
.xskt-news-pagination a:hover {
  border-color: var(--pri, #0757a5);
  background: var(--pri, #0757a5);
  color: #fff
}

.xskt-news-article {
  overflow: hidden;
  margin-top: 14px;
  padding: 20px
}

.xskt-news-hero {
  margin: -20px -20px 20px
}

.xskt-news-hero img {
  display: block;
  width: 100%;
  height: auto
}

.xskt-news-content {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.75
}

.xskt-news-content > :first-child {
  margin-top: 0
}

.xskt-news-content > :last-child {
  margin-bottom: 0
}

.xskt-news-content h2,
.xskt-news-content h3,
.xskt-news-content h4 {
  margin: 1.35em 0 .55em;
  color: #0b376d;
  line-height: 1.35
}

.xskt-news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px
}

.xskt-news-content figure {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto
}

.xskt-news-content blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--pri, #0757a5);
  background: #f3f8fe
}

.xskt-news-content table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse
}

.xskt-news-content th,
.xskt-news-content td {
  padding: 8px;
  border: 1px solid #dbe4ef
}

.xskt-content-pages,
.xskt-news-tags {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #dbe4ef;
  color: #52657a;
  font-size: 13px
}

@media (max-width: 600px) {
  .xskt-news-list-card {
    padding: 0 12px
  }

  .xskt-news-item {
    padding: 14px 0
  }

  .xskt-news-item-title {
    font-size: 16px
  }

  .xskt-news-item-body {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px
  }

  .xskt-news-item-summary p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3
  }

  .xskt-news-article {
    padding: 14px
  }

  .xskt-news-hero {
    margin: -14px -14px 15px
  }

  .xskt-news-content {
    font-size: 15px
  }
}

@media (max-width: 390px) {
  .xskt-news-item-body {
    grid-template-columns: 96px minmax(0, 1fr)
  }

  .xskt-news-readmore {
    font-size: 12px
  }
}
