/* Token m�u global � Customizer Style ? Colors ghi d� qua inline :root */
:root {
  --xoso-color-primary: var(--fs-color-primary, #446084);
  --xoso-color-secondary: var(--fs-color-secondary, #d26e4b);
  --xoso-color-success: var(--fs-color-success, #7a9c59);
  --xoso-color-alert: var(--fs-color-alert, #b20000);
  --xoso-color-text: var(--fs-color-base, #4a4a4a);
  --xoso-color-accent: #c80505;
  --xoso-color-border: #dddfe2;
  --xoso-color-panel: #f8fafc;
  --xoso-color-row-alt: #f0f8ff;
  --xoso-color-muted: #6b7280;
  --xoso-color-mark-tens: #41e241;
  --xoso-color-mark-units: #56fdf8;
  --xoso-color-highlight: color-mix(in srgb, var(--xoso-color-primary) 18%, white);
  --xoso-color-on-primary: #fff;
}
/*
M?i element m?t class g?c. M?i rule con n?m b�n trong class d�.
*/

.xoso-bang-mien-bac {
  container-type: inline-size;
  container-name: xoso-mb;
  --xoso-primary: var(--xoso-color-primary);
  --xoso-accent: var(--xoso-primary);
  --xoso-header-text: #fff;
  --xoso-link: #fff;
  --xoso-row: #fff;
  --xoso-row-alt: var(--xoso-color-row-alt);
  --xoso-border: var(--xoso-color-border);
  --xoso-divider: var(--xoso-border);
  --xoso-text: #000;
  --xoso-label: #000;
  --xoso-loto: var(--xoso-accent);
  --xoso-highlight: var(--xoso-color-highlight);
  --xoso-tool-bg: var(--xoso-color-panel);
  --xoso-tool-text: #000;
  --xoso-tool-active: var(--xoso-primary);
  --xoso-tool-active-text: #fff;
  --xoso-ball: var(--xoso-color-muted);
  --xoso-ball-active: var(--xoso-primary);
  --xoso-ball-text: #fff;
  --xoso-mark-tens: var(--xoso-color-mark-tens);
  --xoso-mark-units: var(--xoso-color-mark-units);
  display: flow-root;
  width: 100%;
  margin: 0 0 16px;
  position: relative;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  background: var(--xoso-row);
  color: var(--xoso-text);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;

  &::after,
  .section-content::after {
    content: "";
    display: table;
    clear: both;
  }

  .xoso-note {
    margin: 0;
    padding: 16px;
    color: #333;
  }

  .section-header {
    float: left;
    width: 100%;
    position: relative;
    background: var(--xoso-primary);
    border: solid 0.5px var(--xoso-border);
    border-bottom: 0;
    padding: 8px 0;
    text-align: center;
    color: var(--xoso-header-text);
  }

  .section-header h1,
  .section-header h2,
  .section-header h3,
  .section-header h4 {
    margin: 0;
    padding: 0;
    min-height: 1.5em;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    color: var(--xoso-header-text);
    background: transparent;
    border: 0;
  }

  .section-header .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .site-link {
    width: 100%;
    float: left;
    font-size: 14px;
    font-weight: 400;
  }

  .site-link .xoso-link-mirror {
    display: inline;
  }

  .section-header a {
    font-family: inherit;
    color: var(--xoso-link);
    text-decoration: underline;
  }

  .section-header a:hover {
    color: var(--xoso-header-text);
  }

  .section-header .site-link a + a::before {
    padding: 0 3px;
    color: color-mix(in srgb, var(--xoso-link) 70%, white);
    content: "/\00a0";
    display: inline-block;
  }

  .section-content {
    float: left;
    width: 100%;
    position: relative;
  }

  table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--xoso-row);
  }

  th,
  td {
    padding: 3px;
    border: solid 1px var(--xoso-border);
    text-align: center;
    vertical-align: middle;
  }

  .table-result {
    text-align: center;
    font-family: inherit;
  }

  .table-result td {
    padding: 0;
  }

  .table-result tr {
    background-color: var(--xoso-row);
  }

  .table-result tr:nth-of-type(2n) {
    background-color: var(--xoso-row-alt);
  }

  .table-result th {
    width: 10%;
    font-weight: 400;
    font-size: 16px;
    color: var(--xoso-label);
  }

  .name-prize {
    width: 10%;
  }

  .number-prize {
    width: 90%;
  }

  td.number-prize:has(.code-DB6) {
    text-align: center;
  }

  .code-DB6 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: auto;
    max-width: max-content;
    height: 32px;
    margin: 3px 4px;
    padding: 0 8px;
    line-height: 1;
    white-space: nowrap;
    color: var(--xoso-accent);
    font-size: 16px;
    font-weight: 700;
  }

  .special-prize,
  .prize1,
  .prize2,
  .prize3,
  .prize4,
  .prize5,
  .prize6,
  .prize7 {
    float: left;
    height: 40px;
    line-height: 40px;
    font-weight: 700;
  }

  .special-prize,
  .prize1 {
    width: 100%;
  }

  .prize2 {
    width: 50%;
  }

  .prize3,
  .prize5,
  .prize6 {
    width: 33.3%;
  }

  .prize4,
  .prize7 {
    width: 25%;
  }

  .special-prize,
  .prize7 {
    font-size: 34px;
    color: var(--xoso-accent);
  }

  .prize1,
  .prize2,
  .prize3,
  .prize4,
  .prize5,
  .prize6 {
    font-size: 28px;
    color: var(--xoso-text);
  }

  .table-result td .special-prize:hover,
  .table-result td .prize1:hover,
  .table-result td .prize2:hover,
  .table-result td .prize3:hover,
  .table-result td .prize4:hover,
  .table-result td .prize5:hover,
  .table-result td .prize6:hover,
  .table-result td .prize7:hover {
    background-color: var(--xoso-highlight);
    border-radius: 2px;
  }

  .div-table {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    border-bottom: solid 1px var(--xoso-divider);
    padding: 4px 8px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .config-item {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    padding: 4px 0;
    border-right: solid 1px var(--xoso-divider);
    background: var(--xoso-tool-bg);
    color: var(--xoso-tool-text);
  }

  .config-item:first-child {
    border-left: solid 1px var(--xoso-divider);
  }

  .config-item:hover,
  .config-item.active {
    background: var(--xoso-tool-active);
    color: var(--xoso-tool-active-text);
  }

  .number-configs {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 4px;
    flex: 1 1 280px;
    min-width: 0;
    padding: 4px 8px;
    box-sizing: border-box;
  }

  .number-config {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--xoso-ball), #001);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    color: var(--xoso-ball-text);
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
  }

  .number-config:hover,
  .number-config.clicked {
    background: radial-gradient(circle at center, var(--xoso-ball-active), #000);
    color: var(--xoso-ball-text);
  }

  .highlight-wrapper {
    background: radial-gradient(circle at 5px 5px, var(--xoso-mark-tens), #001);
    color: var(--xoso-ball-text);
    padding: 1px 7px;
    border-radius: 50%;
    font-weight: 700;
    display: inline-block;
  }

  .table-result span.highlighted {
    position: relative;
  }

  .table-result span.highlighted .highlight-wrapper.hang-don-vi {
    background: radial-gradient(circle at 5px 5px, var(--xoso-mark-units), #000);
    color: var(--xoso-ball-text);
  }

  .table-loto tbody tr {
    background-color: var(--xoso-row);
  }

  .table-loto tbody tr:nth-of-type(2n) {
    background-color: var(--xoso-row-alt);
  }

  .table-loto tbody tr:hover,
  .table-loto tbody tr:hover:nth-of-type(2n) {
    background-color: var(--xoso-highlight);
  }

  .table-loto td {
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-text);
  }

  .table-loto th {
    color: var(--xoso-loto);
    font-weight: 400;
    font-size: 16px;
  }

  .table-loto thead th {
    background-color: var(--xoso-row-alt);
    font-size: 14px;
    color: var(--xoso-loto);
    font-weight: 700;
  }

  .loto-name {
    width: 10%;
  }

  .loto-col2 {
    width: 40%;
    font-size: 16px;
    font-weight: 700;
  }

  .red {
    color: var(--xoso-accent);
  }

  @container xoso-mb (max-width: 560px) {
    .code-DB6 {
      height: 32px;
      font-size: 13px;
      line-height: 32px;
    }

    .special-prize,
    .prize1,
    .prize2,
    .prize3,
    .prize4,
    .prize5,
    .prize6,
    .prize7 {
      height: 36px;
      line-height: 36px;
    }

    .prize1,
    .prize2,
    .prize3,
    .prize4,
    .prize5,
    .prize6 {
      font-size: 18px;
    }

    .special-prize,
    .prize7 {
      font-size: 24px;
    }

    .div-table {
      gap: 4px;
      padding: 4px;
      justify-content: center;
    }

    .div-table > .config-item {
      display: inline-flex;
      width: auto;
      min-width: 64px;
      padding: 4px 8px;
      font-size: 12px;
      justify-content: center;
      align-items: center;
    }

    .number-configs {
      flex: 1 1 100%;
      justify-content: center;
      flex-wrap: wrap;
    }

    .table-loto td,
    .table-loto th {
      font-size: 14px;
    }
  }
}

.xoso-bang-nhieu-tinh {
  container-type: inline-size;
  container-name: xoso-nt;

  .table-result h3 a,
  .table-result .prize-city a,
  .table-loto th a {
    color: inherit;
    text-decoration: underline;
  }
  --xoso-primary: var(--xoso-color-primary);
  --xoso-accent: var(--xoso-primary);
  --xoso-header-text: #fff;
  --xoso-link: #fff;
  --xoso-row: #fff;
  --xoso-row-alt: var(--xoso-color-row-alt);
  --xoso-border: var(--xoso-color-border);
  --xoso-divider: var(--xoso-border);
  --xoso-text: #000;
  --xoso-label: #000;
  --xoso-loto: var(--xoso-accent);
  --xoso-highlight: var(--xoso-color-highlight);
  --xoso-tool-bg: var(--xoso-color-panel);
  --xoso-tool-text: #000;
  --xoso-tool-active: var(--xoso-primary);
  --xoso-tool-active-text: #fff;
  --xoso-ball: var(--xoso-color-muted);
  --xoso-ball-active: var(--xoso-primary);
  --xoso-ball-text: #fff;
  --xoso-mark-tens: var(--xoso-color-mark-tens);
  --xoso-mark-units: var(--xoso-color-mark-units);
  display: flow-root;
  width: 100%;
  margin: 0 0 16px;
  position: relative;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  background: var(--xoso-row);
  color: var(--xoso-text);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;

  &::after,
  .section-content::after {
    content: "";
    display: table;
    clear: both;
  }

  .xoso-note {
    margin: 0;
    padding: 16px;
    color: #333;
  }

  .section-header {
    float: left;
    width: 100%;
    position: relative;
    background: var(--xoso-primary);
    border: solid 0.5px var(--xoso-border);
    border-bottom: 0;
    padding: 8px 0;
    text-align: center;
    color: var(--xoso-header-text);
  }

  .section-header h1,
  .section-header h2,
  .section-header h3,
  .section-header h4 {
    margin: 0;
    padding: 0;
    min-height: 1.5em;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    color: var(--xoso-header-text);
    background: transparent;
    border: 0;
  }

  .section-header .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .site-link {
    width: 100%;
    float: left;
    font-size: 14px;
    font-weight: 400;
  }

  .site-link .xoso-link-mirror {
    display: inline;
  }

  .section-header a {
    font-family: inherit;
    color: var(--xoso-link);
    text-decoration: underline;
  }

  .section-header a:hover {
    color: var(--xoso-header-text);
  }

  .section-header .site-link a + a::before {
    padding: 0 3px;
    color: color-mix(in srgb, var(--xoso-link) 70%, white);
    content: "/\00a0";
    display: inline-block;
  }

  .section-content {
    float: left;
    width: 100%;
    position: relative;
  }

  table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--xoso-row);
  }

  th,
  td {
    padding: 3px;
    border: solid 1px var(--xoso-border);
    text-align: center;
    vertical-align: middle;
  }

  .table-result tbody tr {
    background-color: var(--xoso-row);
  }

  .table-result tbody tr:nth-of-type(2n) {
    background-color: var(--xoso-row-alt);
  }

  .table-result tbody th,
  .name-prize {
    width: 36px;
    font-weight: 400;
    font-size: 16px;
    color: var(--xoso-label);
  }

  .table-result thead th {
    color: var(--xoso-label);
    font-weight: 700;
    background: var(--xoso-row);
  }

  .table-result thead th h3,
  .table-result thead th .prize-city {
    display: block;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: var(--xoso-label);
    background: transparent;
    border: 0;
  }

  .prize-col2 {
    width: 40%;
  }

  .prize-col3 {
    width: 30%;
  }

  .prize-col4 {
    width: 22.5%;
  }

  .prize-col5 {
    width: 18%;
  }

  .xs_prize1 {
    display: block;
    width: 100%;
    height: 36px;
    line-height: 36px;
    font-size: 22px;
    font-weight: 700;
    color: var(--xoso-text);
  }

  .xs_prize1.color_red,
  .xs_prize1.prize_db {
    font-size: 26px;
    color: var(--xoso-accent);
  }

  .table-result td .xs_prize1:hover {
    background-color: var(--xoso-highlight);
    border-radius: 2px;
  }

  .div-table {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    border-bottom: solid 1px var(--xoso-divider);
    padding: 4px 8px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .config-item {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    padding: 4px 0;
    border-right: solid 1px var(--xoso-divider);
    background: var(--xoso-tool-bg);
    color: var(--xoso-tool-text);
  }

  .config-item:first-child {
    border-left: solid 1px var(--xoso-divider);
  }

  .config-item:hover,
  .config-item.active {
    background: var(--xoso-tool-active);
    color: var(--xoso-tool-active-text);
  }

  .number-configs {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 4px;
    flex: 1 1 280px;
    min-width: 0;
    padding: 4px 8px;
    box-sizing: border-box;
  }

  .number-config {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--xoso-ball), #001);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    color: var(--xoso-ball-text);
    line-height: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
  }

  .number-config:hover,
  .number-config.clicked {
    background: radial-gradient(circle at center, var(--xoso-ball-active), #000);
    color: var(--xoso-ball-text);
  }

  .highlight-wrapper {
    background: radial-gradient(circle at 5px 5px, var(--xoso-mark-tens), #001);
    color: var(--xoso-ball-text);
    padding: 1px 7px;
    border-radius: 50%;
    font-weight: 700;
    display: inline-block;
  }

  .table-result span.highlighted {
    position: relative;
  }

  .table-result span.highlighted .highlight-wrapper.hang-don-vi {
    background: radial-gradient(circle at 5px 5px, var(--xoso-mark-units), #000);
    color: var(--xoso-ball-text);
  }

  .table-loto tbody tr {
    background-color: var(--xoso-row);
  }

  .table-loto tbody tr:nth-of-type(2n) {
    background-color: var(--xoso-row-alt);
  }

  .table-loto tbody tr:hover,
  .table-loto tbody tr:hover:nth-of-type(2n) {
    background-color: var(--xoso-highlight);
  }

  .table-loto td {
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-text);
  }

  .table-loto th {
    color: var(--xoso-loto);
    font-weight: 400;
    font-size: 16px;
  }

  .table-loto thead th {
    background-color: var(--xoso-row-alt);
    font-size: 14px;
    color: var(--xoso-loto);
    font-weight: 700;
  }

  .loto-name {
    width: 10%;
  }

  .loto-col2 {
    width: 40%;
  }

  .loto-col3 {
    width: 30%;
  }

  .loto-col4 {
    width: 22.5%;
  }

  .loto-col5 {
    width: 18%;
  }

  .red {
    color: var(--xoso-accent);
  }

  @container xoso-nt (max-width: 560px) {
    .table-result thead th h3,
    .table-result thead th .prize-city,
    .table-loto thead th {
      font-size: 12px;
    }

    .xs_prize1 {
      height: 30px;
      line-height: 30px;
      font-size: 16px;
    }

    .xs_prize1.color_red,
    .xs_prize1.prize_db {
      font-size: 18px;
    }

    .div-table {
      gap: 4px;
      padding: 4px;
      justify-content: center;
    }

    .div-table > .config-item {
      display: inline-flex;
      width: auto;
      min-width: 64px;
      padding: 4px 8px;
      font-size: 12px;
      justify-content: center;
      align-items: center;
    }

    .number-configs {
      flex: 1 1 100%;
      justify-content: center;
      flex-wrap: wrap;
    }

    .table-loto td,
    .table-loto th {
      font-size: 13px;
    }
  }
}

.xoso-bang-dien-toan {
  --xoso-dt-border: var(--xoso-color-border);
  --xoso-dt-bg: #fff;
  --xoso-dt-header: color-mix(in srgb, var(--xoso-dt-border) 35%, #fff);
  --xoso-dt-title: #222;
  --xoso-dt-meta: var(--xoso-color-text);
  --xoso-dt-link: var(--xoso-color-primary);
  --xoso-dt-ball-text: #222;
  --xoso-dt-ball-face: var(--xoso-color-border);
  --xoso-dt-ball-edge: var(--xoso-color-muted);
  --xoso-dt-mega: var(--xoso-color-accent);
  --xoso-dt-mega-text: #fff;
  container-type: inline-size;
  container-name: xoso-dt;
  width: 100%;
  margin: 0;
  border: 1px solid var(--xoso-dt-border);
  border-bottom: 0;
  background: var(--xoso-dt-bg);
  color: var(--xoso-dt-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  &.xoso-dt-day-end {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--xoso-dt-border);
  }

  &:not(.xoso-dt-day-start) {
    border-top: 0;
  }

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-dt-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-dt-border);
    background: var(--xoso-dt-header);
  }

  &:not(.xoso-dt-day-start) .xoso-dt-header {
    border-top: 1px solid var(--xoso-dt-border);
  }

  .xoso-dt-title {
    min-width: 0;
    flex: 1 1 auto;
  }

  .xoso-dt-title h1,
  .xoso-dt-title h2,
  .xoso-dt-title h3,
  .xoso-dt-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--xoso-dt-title);
  }

  .xoso-dt-title a {
    color: var(--xoso-dt-title);
    text-decoration: none;
  }

  .xoso-dt-title a:hover {
    color: var(--xoso-dt-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-dt-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-dt-meta);
  }

  .xoso-dt-draw {
    white-space: nowrap;
  }

  .site-link {
    font-size: 14px;
    font-weight: 600;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a {
    color: var(--xoso-dt-link);
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-dt-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-dt-body {
    padding: 16px 12px 20px;
  }

  .xoso-dt-balls {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .xoso-dt-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .xoso-dt-sep {
    flex: 0 0 auto;
    width: 2px;
    height: clamp(16px, 7cqi, 32px);
    margin: 0 2px;
    background: color-mix(in srgb, var(--xoso-dt-border) 70%, var(--xoso-color-muted));
    border-radius: 1px;
  }

  .xoso-dt-ball {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 11cqi, 48px);
    height: clamp(26px, 11cqi, 48px);
    border-radius: 50%;
    font-size: clamp(13px, 4.5cqi, 22px);
    font-weight: 700;
    line-height: 1;
    color: var(--xoso-dt-ball-text);
    background: radial-gradient(
      circle at 32% 28%,
      var(--xoso-dt-ball-face) 38%,
      color-mix(in srgb, var(--xoso-dt-ball-face) 55%, var(--xoso-dt-ball-edge)) 72%,
      var(--xoso-dt-ball-edge) 100%
    );
    border: 1px solid color-mix(in srgb, var(--xoso-dt-ball-edge) 55%, transparent);
  }

  .xoso-dt-ball-mega {
    color: var(--xoso-dt-mega-text);
    background: radial-gradient(
      circle at 32% 28%,
      color-mix(in srgb, var(--xoso-dt-mega) 55%, white) 38%,
      var(--xoso-dt-mega) 72%,
      color-mix(in srgb, var(--xoso-dt-mega) 70%, black) 100%
    );
    border-color: color-mix(in srgb, var(--xoso-dt-mega) 55%, transparent);
  }

  @media (max-width: 640px) {
    .xoso-dt-header {
      flex-direction: column;
      align-items: flex-start;
    }

  }
}

.xoso-bang-vietlott {
  --xoso-vl-border: var(--xoso-color-border);
  --xoso-vl-bg: #fff;
  --xoso-vl-header: color-mix(in srgb, var(--xoso-vl-border) 35%, #fff);
  --xoso-vl-title: #222;
  --xoso-vl-meta: var(--xoso-color-text);
  --xoso-vl-link: var(--xoso-color-primary);
  --xoso-vl-ball-text: #222;
  --xoso-vl-ball-face: var(--xoso-color-border);
  --xoso-vl-ball-edge: var(--xoso-color-muted);
  --xoso-vl-special: var(--xoso-color-accent);
  --xoso-vl-special-text: #fff;
  container-type: inline-size;
  container-name: xoso-vl;
  width: 100%;
  margin: 0;
  border: 1px solid var(--xoso-vl-border);
  border-bottom: 0;
  background: var(--xoso-vl-bg);
  color: var(--xoso-vl-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  &.xoso-vl-day-end {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--xoso-vl-border);
  }

  &:not(.xoso-vl-day-start) {
    border-top: 0;
  }

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-vl-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-vl-border);
    background: var(--xoso-vl-header);
  }

  &:not(.xoso-vl-day-start) .xoso-vl-header {
    border-top: 1px solid var(--xoso-vl-border);
  }

  .xoso-vl-title {
    min-width: 0;
    flex: 1 1 auto;
  }

  .xoso-vl-title h1,
  .xoso-vl-title h2,
  .xoso-vl-title h3,
  .xoso-vl-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--xoso-vl-title);
  }

  .xoso-vl-title a {
    color: var(--xoso-vl-title);
    text-decoration: none;
  }

  .xoso-vl-title a:hover {
    color: var(--xoso-vl-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-vl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-vl-meta);
  }

  .xoso-vl-draw {
    white-space: nowrap;
  }

  .site-link {
    font-size: 14px;
    font-weight: 600;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a {
    color: var(--xoso-vl-link);
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-vl-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-vl-body {
    padding: 16px 12px 20px;
  }

  .xoso-vl-balls {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .xoso-vl-group {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .xoso-vl-sep {
    flex: 0 0 auto;
    width: 2px;
    height: clamp(16px, 7cqi, 32px);
    margin: 0 2px;
    background: color-mix(in srgb, var(--xoso-vl-border) 70%, var(--xoso-color-muted));
    border-radius: 1px;
  }

  .xoso-vl-ball {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(26px, 11cqi, 48px);
    height: clamp(26px, 11cqi, 48px);
    border-radius: 50%;
    font-size: clamp(13px, 4.5cqi, 22px);
    font-weight: 700;
    line-height: 1;
    color: var(--xoso-vl-ball-text);
    background: radial-gradient(
      circle at 32% 28%,
      var(--xoso-vl-ball-face) 38%,
      color-mix(in srgb, var(--xoso-vl-ball-face) 55%, var(--xoso-vl-ball-edge)) 72%,
      var(--xoso-vl-ball-edge) 100%
    );
    border: 1px solid color-mix(in srgb, var(--xoso-vl-ball-edge) 55%, transparent);
  }

  .xoso-vl-ball-special {
    color: var(--xoso-vl-special-text);
    background: radial-gradient(
      circle at 32% 28%,
      color-mix(in srgb, var(--xoso-vl-special) 55%, white) 38%,
      var(--xoso-vl-special) 72%,
      color-mix(in srgb, var(--xoso-vl-special) 70%, black) 100%
    );
    border-color: color-mix(in srgb, var(--xoso-vl-special) 55%, transparent);
  }

  @media (max-width: 640px) {
    .xoso-vl-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-max3d {
  --xoso-m3-border: var(--xoso-color-border);
  --xoso-m3-bg: #fff;
  --xoso-m3-header: color-mix(in srgb, var(--xoso-m3-border) 35%, #fff);
  --xoso-m3-title: #222;
  --xoso-m3-meta: var(--xoso-color-text);
  --xoso-m3-link: var(--xoso-color-primary);
  --xoso-m3-ball-text: #222;
  --xoso-m3-ball-face: var(--xoso-color-border);
  --xoso-m3-ball-edge: var(--xoso-color-muted);
  --xoso-m3-special: var(--xoso-color-accent);
  --xoso-m3-special-text: #fff;
  container-type: inline-size;
  container-name: xoso-m3;
  width: 100%;
  margin: 0;
  border: 1px solid var(--xoso-m3-border);
  border-bottom: 0;
  background: var(--xoso-m3-bg);
  color: var(--xoso-m3-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  &.xoso-m3-day-end {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--xoso-m3-border);
  }

  &:not(.xoso-m3-day-start) {
    border-top: 0;
  }

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-m3-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-m3-border);
    background: var(--xoso-m3-header);
  }

  &:not(.xoso-m3-day-start) .xoso-m3-header {
    border-top: 1px solid var(--xoso-m3-border);
  }

  .xoso-m3-title {
    min-width: 0;
    flex: 1 1 auto;
  }

  .xoso-m3-title h1,
  .xoso-m3-title h2,
  .xoso-m3-title h3,
  .xoso-m3-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    color: var(--xoso-m3-title);
  }

  .xoso-m3-title a {
    color: var(--xoso-m3-title);
    text-decoration: none;
  }

  .xoso-m3-title a:hover {
    color: var(--xoso-m3-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-m3-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-m3-meta);
  }

  .xoso-m3-draw {
    white-space: nowrap;
  }

  .site-link {
    font-size: 14px;
    font-weight: 600;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a {
    color: var(--xoso-m3-link);
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-m3-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-m3-body {
    padding: 12px 10px 16px;
  }

  .xoso-m3-tier {
    margin: 0 0 14px;
  }

  .xoso-m3-tier:last-child {
    margin-bottom: 0;
  }

  .xoso-m3-tier h5 {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--xoso-m3-title);
  }

  .xoso-m3-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .xoso-m3-triplet {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
  }

  .xoso-m3-ball {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(22px, 7.5cqi, 32px);
    height: clamp(22px, 7.5cqi, 32px);
    border-radius: 50%;
    font-size: clamp(12px, 3.2cqi, 16px);
    font-weight: 700;
    line-height: 1;
    color: var(--xoso-m3-ball-text);
    background: radial-gradient(
      circle at 32% 28%,
      var(--xoso-m3-ball-face) 38%,
      color-mix(in srgb, var(--xoso-m3-ball-face) 55%, var(--xoso-m3-ball-edge)) 72%,
      var(--xoso-m3-ball-edge) 100%
    );
    border: 1px solid color-mix(in srgb, var(--xoso-m3-ball-edge) 55%, transparent);
  }

  .xoso-m3-ball-special {
    color: var(--xoso-m3-special-text);
    background: radial-gradient(
      circle at 32% 28%,
      color-mix(in srgb, var(--xoso-m3-special) 55%, white) 38%,
      var(--xoso-m3-special) 72%,
      color-mix(in srgb, var(--xoso-m3-special) 70%, black) 100%
    );
    border-color: color-mix(in srgb, var(--xoso-m3-special) 55%, transparent);
  }

  @media (max-width: 640px) {
    .xoso-m3-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-keno {
  --xoso-kn-border: var(--xoso-color-border);
  --xoso-kn-bg: #fff;
  --xoso-kn-header: color-mix(in srgb, var(--xoso-kn-border) 35%, #fff);
  --xoso-kn-title: #222;
  --xoso-kn-meta: var(--xoso-color-text);
  --xoso-kn-link: var(--xoso-color-primary);
  --xoso-kn-ball-text: #222;
  --xoso-kn-ball-face: var(--xoso-color-border);
  --xoso-kn-ball-edge: var(--xoso-color-muted);
  container-type: inline-size;
  container-name: xoso-kn;
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-kn-border);
  background: var(--xoso-kn-bg);
  color: var(--xoso-kn-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-kn-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-kn-border);
    background: var(--xoso-kn-header);
  }

  .xoso-kn-title h1,
  .xoso-kn-title h2,
  .xoso-kn-title h3,
  .xoso-kn-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-kn-title);
  }

  .xoso-kn-title a {
    color: var(--xoso-kn-title);
    text-decoration: none;
  }

  .xoso-kn-title a:hover {
    color: var(--xoso-kn-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-kn-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-kn-meta);
  }

  .site-link {
    font-size: 14px;
    font-weight: 600;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a {
    color: var(--xoso-kn-link);
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-kn-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-kn-table-wrap {
    overflow-x: auto;
  }

  .xoso-kn-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-kn-bg);
  }

  .xoso-kn-table th,
  .xoso-kn-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--xoso-kn-border);
    vertical-align: middle;
    text-align: center;
  }

  .xoso-kn-table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--xoso-kn-meta);
  }

  .xoso-kn-meta {
    text-align: left;
    white-space: nowrap;
  }

  .xoso-kn-date,
  .xoso-kn-id {
    display: block;
  }

  .xoso-kn-id {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--xoso-kn-title);
  }

  .xoso-kn-line {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
  }

  .xoso-kn-line + .xoso-kn-line {
    margin-top: 4px;
  }

  .xoso-kn-ball {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(18px, 6cqi, 26px);
    height: clamp(18px, 6cqi, 26px);
    border-radius: 50%;
    font-size: clamp(10px, 2.6cqi, 13px);
    font-weight: 700;
    line-height: 1;
    color: var(--xoso-kn-ball-text);
    background: radial-gradient(
      circle at 32% 28%,
      var(--xoso-kn-ball-face) 38%,
      color-mix(in srgb, var(--xoso-kn-ball-face) 55%, var(--xoso-kn-ball-edge)) 72%,
      var(--xoso-kn-ball-edge) 100%
    );
    border: 1px solid color-mix(in srgb, var(--xoso-kn-ball-edge) 55%, transparent);
  }

  .xoso-kn-side-title,
  .xoso-kn-side-count {
    display: block;
    font-weight: 700;
  }

  .xoso-kn-side-count {
    font-size: 13px;
    color: var(--xoso-kn-meta);
  }

  @media (max-width: 720px) {
    .xoso-kn-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-kn-table thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }

    .xoso-kn-table,
    .xoso-kn-table tbody,
    .xoso-kn-table tr,
    .xoso-kn-table td {
      display: block;
      width: auto;
    }

    .xoso-kn-table tr {
      padding: 8px 0 10px;
      text-align: center;
    }

    .xoso-kn-meta,
    .xoso-kn-table td {
      text-align: center;
      border-bottom: 0;
    }

    .xoso-kn-table td.xoso-kn-side {
      display: inline-block;
      width: auto;
      min-width: 72px;
      vertical-align: top;
    }

    .xoso-kn-ball {
      width: clamp(20px, 8.2cqi, 30px);
      height: clamp(20px, 8.2cqi, 30px);
      font-size: clamp(11px, 3.4cqi, 14px);
    }
  }
}

.xoso-bang-bingo18 {
  --xoso-bi-border: var(--xoso-color-border);
  --xoso-bi-bg: #fff;
  --xoso-bi-header: color-mix(in srgb, var(--xoso-bi-border) 35%, #fff);
  --xoso-bi-title: #222;
  --xoso-bi-meta: var(--xoso-color-text);
  --xoso-bi-link: var(--xoso-color-primary);
  --xoso-bi-ball-text: #222;
  --xoso-bi-ball-face: var(--xoso-color-border);
  --xoso-bi-ball-edge: var(--xoso-color-muted);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-bi-border);
  background: var(--xoso-bi-bg);
  color: var(--xoso-bi-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-bi-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-bi-border);
    background: var(--xoso-bi-header);
  }

  .xoso-bi-title h1,
  .xoso-bi-title h2,
  .xoso-bi-title h3,
  .xoso-bi-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-bi-title);
  }

  .xoso-bi-title a {
    color: var(--xoso-bi-title);
    text-decoration: none;
  }

  .xoso-bi-title a:hover {
    color: var(--xoso-bi-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-bi-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-bi-meta);
  }

  .site-link {
    font-size: 14px;
    font-weight: 600;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a {
    color: var(--xoso-bi-link);
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-bi-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-bi-table-wrap {
    overflow-x: auto;
  }

  .xoso-bi-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-bi-bg);
  }

  .xoso-bi-table th,
  .xoso-bi-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--xoso-bi-border);
    vertical-align: middle;
    text-align: center;
  }

  .xoso-bi-table th {
    font-size: 13px;
    font-weight: 700;
    color: var(--xoso-bi-meta);
  }

  .xoso-bi-meta {
    line-height: 1.3;
  }

  .xoso-bi-date,
  .xoso-bi-id {
    display: block;
  }

  .xoso-bi-id {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--xoso-bi-title);
  }

  .xoso-bi-balls {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
  }

  .xoso-bi-ball {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: var(--xoso-bi-ball-text);
    background: var(--xoso-bi-ball-face);
    border: 1px solid var(--xoso-bi-ball-edge);
  }

  .xoso-bi-sum,
  .xoso-bi-size {
    display: block;
    font-weight: 700;
  }

  @media (max-width: 720px) {
    .xoso-bi-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-bi-table thead {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
    }

    .xoso-bi-table,
    .xoso-bi-table tbody,
    .xoso-bi-table tr,
    .xoso-bi-table td {
      display: block;
      width: auto;
    }

    .xoso-bi-table tr {
      padding: 8px 0 10px;
      text-align: center;
    }

    .xoso-bi-meta,
    .xoso-bi-table td {
      text-align: center;
      border-bottom: 0;
    }

    .xoso-bi-table td.xoso-bi-side {
      display: inline-block;
      width: auto;
      min-width: 72px;
      vertical-align: top;
    }
  }
}

.xoso-bang-du-doan {
  --xoso-dd-border: var(--xoso-color-border);
  --xoso-dd-bg: #fff;
  --xoso-dd-header: color-mix(in srgb, var(--xoso-dd-border) 35%, #fff);
  --xoso-dd-title: #222;
  --xoso-dd-meta: var(--xoso-color-text);
  --xoso-dd-link: var(--xoso-color-primary);
  --xoso-dd-number: #222;
  --xoso-dd-accent: var(--xoso-dd-number);
  --xoso-dd-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-dd-border);
  background: var(--xoso-dd-bg);
  color: var(--xoso-dd-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-dd-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-dd-border);
    background: var(--xoso-dd-header);
  }

  .xoso-dd-title h1,
  .xoso-dd-title h2,
  .xoso-dd-title h3,
  .xoso-dd-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-dd-title);
  }

  .xoso-dd-title a {
    color: var(--xoso-dd-title);
    text-decoration: none;
  }

  .xoso-dd-title a:hover {
    color: var(--xoso-dd-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-dd-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-dd-meta);
  }

  .site-link a {
    color: var(--xoso-dd-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-dd-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-dd-body {
    padding: 8px 12px 12px;
  }

  .xoso-dd-caption {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-dd-title);
  }

  .xoso-dd-label,
  .xoso-dd-line {
    margin: 4px 0;
    color: var(--xoso-dd-meta);
  }

  .xoso-dd-line strong,
  .xoso-dd-table strong,
  .xoso-dd-bridge strong {
    color: var(--xoso-dd-accent);
  }

  .xoso-dd-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .xoso-dd-pair .xoso-dd-table-wrap {
    flex: 1 1 180px;
  }

  .xoso-dd-table-wrap {
    overflow-x: auto;
    margin: 6px 0 12px;
  }

  .xoso-dd-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-dd-bg);
  }

  .xoso-dd-table th,
  .xoso-dd-table td {
    padding: 8px 10px;
    border: 1px solid var(--xoso-dd-border);
    text-align: center;
    vertical-align: middle;
  }

  .xoso-dd-table th {
    background: var(--xoso-dd-header);
    color: var(--xoso-dd-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-dd-table th:first-child,
  .xoso-dd-table td:first-child {
    width: 18%;
  }

  .xoso-dd-table tbody tr:nth-child(even) {
    background: var(--xoso-dd-row-alt);
  }

  .xoso-dd-province {
    padding-top: 8px;
    border-top: 1px dashed var(--xoso-dd-border);
  }

  .xoso-dd-bridge {
    margin: 6px 0 12px;
    padding-left: 18px;
  }

  .xoso-dd-bridge li {
    margin: 3px 0;
  }

  @media (max-width: 720px) {
    .xoso-dd-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-tan-suat {
  --xoso-ts-border: var(--xoso-color-border);
  --xoso-ts-bg: #fff;
  --xoso-ts-header: color-mix(in srgb, var(--xoso-ts-border) 35%, #fff);
  --xoso-ts-title: #222;
  --xoso-ts-meta: var(--xoso-color-text);
  --xoso-ts-link: var(--xoso-color-primary);
  --xoso-ts-number: #222;
  --xoso-ts-accent: var(--xoso-ts-number);
  --xoso-ts-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-ts-border);
  background: var(--xoso-ts-bg);
  color: var(--xoso-ts-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-ts-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-ts-border);
    background: var(--xoso-ts-header);
  }

  .xoso-ts-title h1,
  .xoso-ts-title h2,
  .xoso-ts-title h3,
  .xoso-ts-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-ts-title);
  }

  .xoso-ts-title a {
    color: var(--xoso-ts-title);
    text-decoration: none;
  }

  .xoso-ts-title a:hover {
    color: var(--xoso-ts-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-ts-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-ts-meta);
  }

  .site-link a {
    color: var(--xoso-ts-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-ts-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-ts-body {
    padding: 8px 12px 12px;
  }

  .xoso-ts-caption {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-ts-title);
  }

  .xoso-ts-table-wrap {
    overflow-x: auto;
    margin: 6px 0 12px;
  }

  .xoso-ts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-ts-bg);
  }

  .xoso-ts-table th,
  .xoso-ts-table td {
    padding: 8px 10px;
    border: 1px solid var(--xoso-ts-border);
    text-align: center;
    vertical-align: middle;
  }

  .xoso-ts-table th {
    background: var(--xoso-ts-header);
    color: var(--xoso-ts-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-ts-table th:first-child,
  .xoso-ts-table td:first-child {
    width: 18%;
  }

  .xoso-ts-table tbody tr:nth-child(even) {
    background: var(--xoso-ts-row-alt);
  }

  .xoso-ts-table strong {
    color: var(--xoso-ts-accent);
  }

  .xoso-ts-missing {
    table-layout: fixed;
  }

  .xoso-ts-missing th:first-child,
  .xoso-ts-missing td:first-child {
    width: auto;
  }

  .xoso-ts-missing td {
    vertical-align: top;
    word-spacing: 2px;
  }

  @media (max-width: 720px) {
    .xoso-ts-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-ts-table th,
    .xoso-ts-table td {
      padding: 6px 4px;
    }

    .xoso-ts-table th {
      font-size: 12px;
    }
  }
}

.xoso-bang-dau-duoi {
  --xoso-ht-border: var(--xoso-color-border);
  --xoso-ht-bg: #fff;
  --xoso-ht-header: color-mix(in srgb, var(--xoso-ht-border) 35%, #fff);
  --xoso-ht-title: #222;
  --xoso-ht-meta: var(--xoso-color-text);
  --xoso-ht-link: var(--xoso-color-primary);
  --xoso-ht-number: #222;
  --xoso-ht-bar: var(--xoso-color-primary);
  --xoso-ht-accent: var(--xoso-ht-number);
  --xoso-ht-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-ht-border);
  background: var(--xoso-ht-bg);
  color: var(--xoso-ht-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-ht-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-ht-border);
    background: var(--xoso-ht-header);
  }

  .xoso-ht-title h1,
  .xoso-ht-title h2,
  .xoso-ht-title h3,
  .xoso-ht-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-ht-title);
  }

  .xoso-ht-title a {
    color: var(--xoso-ht-title);
    text-decoration: none;
  }

  .xoso-ht-title a:hover {
    color: var(--xoso-ht-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-ht-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-ht-meta);
  }

  .site-link a {
    color: var(--xoso-ht-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-ht-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-ht-body {
    padding: 8px 12px 12px;
  }

  .xoso-ht-caption {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-ht-title);
  }

  .xoso-ht-table-wrap {
    overflow-x: auto;
    margin: 6px 0 12px;
  }

  .xoso-ht-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-ht-bg);
  }

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

  .xoso-ht-table thead th {
    background: var(--xoso-ht-header);
    color: var(--xoso-ht-meta);
    font-size: 13px;
  }

  .xoso-ht-table tbody tr:nth-child(even) {
    background: var(--xoso-ht-row-alt);
  }

  .xoso-ht-table tbody th {
    color: var(--xoso-ht-accent);
    font-weight: 700;
  }

  .xoso-ht-track {
    display: inline-block;
    width: 72px;
    height: 8px;
    margin-right: 6px;
    background: color-mix(in srgb, var(--xoso-ht-border) 55%, #fff);
    vertical-align: middle;
  }

  .xoso-ht-bar {
    display: block;
    height: 100%;
    background: var(--xoso-ht-bar);
  }

  @media (max-width: 720px) {
    .xoso-ht-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-0099 {
  --xoso-n99-border: var(--xoso-color-border);
  --xoso-n99-bg: #fff;
  --xoso-n99-header: color-mix(in srgb, var(--xoso-n99-border) 35%, #fff);
  --xoso-n99-title: #222;
  --xoso-n99-meta: var(--xoso-color-text);
  --xoso-n99-link: var(--xoso-color-primary);
  --xoso-n99-number: #222;
  --xoso-n99-bar: var(--xoso-color-primary);
  --xoso-n99-accent: var(--xoso-n99-number);
  --xoso-n99-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-n99-border);
  background: var(--xoso-n99-bg);
  color: var(--xoso-n99-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-n99-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-n99-border);
    background: var(--xoso-n99-header);
  }

  .xoso-n99-title h1,
  .xoso-n99-title h2,
  .xoso-n99-title h3,
  .xoso-n99-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-n99-title);
  }

  .xoso-n99-title a {
    color: var(--xoso-n99-title);
    text-decoration: none;
  }

  .xoso-n99-title a:hover {
    color: var(--xoso-n99-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-n99-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-n99-meta);
  }

  .xoso-n99-draw {
    color: inherit;
    font-weight: 600;
    white-space: nowrap;
  }

  .site-link a {
    color: var(--xoso-n99-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-n99-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-n99-body {
    padding: 8px 12px 12px;
  }

  .xoso-n99-caption {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-n99-title);
  }

  .xoso-n99-table-wrap {
    overflow-x: auto;
    margin: 6px 0 12px;
  }

  .xoso-n99-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-n99-bg);
  }

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

  .xoso-n99-table thead th {
    background: var(--xoso-n99-header);
    color: var(--xoso-n99-meta);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .xoso-n99-table tbody tr:nth-child(even) {
    background: var(--xoso-n99-row-alt);
  }

  .xoso-n99-table tbody th {
    color: var(--xoso-n99-accent);
    font-weight: 700;
  }

  .xoso-n99-track {
    display: inline-block;
    width: 72px;
    height: 8px;
    margin-right: 6px;
    background: color-mix(in srgb, var(--xoso-n99-border) 55%, #fff);
    vertical-align: middle;
  }

  .xoso-n99-bar {
    display: block;
    height: 100%;
    background: var(--xoso-n99-bar);
  }

  @media (max-width: 720px) {
    .xoso-n99-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-dac-biet-tuan {
  --xoso-dbt-border: var(--xoso-color-border);
  --xoso-dbt-bg: #fff;
  --xoso-dbt-header: color-mix(in srgb, var(--xoso-dbt-border) 35%, #fff);
  --xoso-dbt-title: #222;
  --xoso-dbt-meta: var(--xoso-color-text);
  --xoso-dbt-link: var(--xoso-color-primary);
  --xoso-dbt-number: var(--xoso-dbt-link);
  --xoso-dbt-accent: var(--xoso-dbt-number);
  --xoso-dbt-row-alt: var(--xoso-color-panel);
  --xoso-dbt-sun: color-mix(in srgb, var(--xoso-dbt-link) 12%, #fff);
  --xoso-dbt-tet-bg: var(--xoso-color-highlight);
  --xoso-dbt-tet-text: var(--xoso-color-secondary);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-dbt-border);
  background: var(--xoso-dbt-bg);
  color: var(--xoso-dbt-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-dbt-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-dbt-border);
    background: var(--xoso-dbt-header);
  }

  .xoso-dbt-title h1,
  .xoso-dbt-title h2,
  .xoso-dbt-title h3,
  .xoso-dbt-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-dbt-title);
  }

  .xoso-dbt-title a {
    color: var(--xoso-dbt-title);
    text-decoration: none;
  }

  .xoso-dbt-title a:hover {
    color: var(--xoso-dbt-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-dbt-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-dbt-meta);
  }

  .site-link a {
    color: var(--xoso-dbt-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-dbt-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-dbt-body {
    padding: 8px 12px 12px;
  }

  .xoso-dbt-modes {
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0 12px;
  }

  .xoso-dbt-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-dbt-border);
    background: var(--xoso-dbt-bg);
    color: var(--xoso-dbt-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-dbt-modes label + label {
    margin-left: -1px;
  }

  .xoso-dbt-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-dbt-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-dbt-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-dbt-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-dbt-accent);
    background: var(--xoso-dbt-accent);
    color: #fff;
  }

  .xoso-dbt-caption {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-dbt-title);
  }

  .xoso-dbt-table-wrap {
    overflow-x: auto;
    margin: 6px 0 12px;
  }

  .xoso-dbt-calendar,
  .xoso-dbt-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-dbt-bg);
  }

  .xoso-dbt-calendar {
    min-width: 720px;
    font-size: 13px;
  }

  .xoso-dbt-calendar th,
  .xoso-dbt-calendar td,
  .xoso-dbt-table th,
  .xoso-dbt-table td {
    padding: 4px 6px;
    border: 1px solid var(--xoso-dbt-border);
    text-align: center;
  }

  .xoso-dbt-calendar thead th,
  .xoso-dbt-table thead th {
    background: var(--xoso-dbt-header);
    color: var(--xoso-dbt-meta);
    font-size: 13px;
  }

  .xoso-dbt-calendar tbody th {
    color: var(--xoso-dbt-title);
    font-weight: 700;
  }

  .xoso-dbt-sun {
    background: var(--xoso-dbt-sun);
  }

  .xoso-dbt-tet {
    background: var(--xoso-dbt-tet-bg);
    color: var(--xoso-dbt-tet-text);
    font-size: 12px;
  }

  .xoso-dbt-table tbody tr:nth-child(even) {
    background: var(--xoso-dbt-row-alt);
  }

  .xoso-dbt-hot {
    color: var(--xoso-dbt-accent);
    font-weight: 700;
  }

  &.xoso-dbt-mode-full .xoso-dbt-last2,
  &.xoso-dbt-mode-full .xoso-dbt-head,
  &.xoso-dbt-mode-full .xoso-dbt-tail,
  &.xoso-dbt-mode-full .xoso-dbt-sum,
  &.xoso-dbt-mode-last2 .xoso-dbt-full,
  &.xoso-dbt-mode-last2 .xoso-dbt-head,
  &.xoso-dbt-mode-last2 .xoso-dbt-tail,
  &.xoso-dbt-mode-last2 .xoso-dbt-sum,
  &.xoso-dbt-mode-head .xoso-dbt-full,
  &.xoso-dbt-mode-head .xoso-dbt-last2,
  &.xoso-dbt-mode-head .xoso-dbt-tail,
  &.xoso-dbt-mode-head .xoso-dbt-sum,
  &.xoso-dbt-mode-tail .xoso-dbt-full,
  &.xoso-dbt-mode-tail .xoso-dbt-last2,
  &.xoso-dbt-mode-tail .xoso-dbt-head,
  &.xoso-dbt-mode-tail .xoso-dbt-sum,
  &.xoso-dbt-mode-sum .xoso-dbt-full,
  &.xoso-dbt-mode-sum .xoso-dbt-last2,
  &.xoso-dbt-mode-sum .xoso-dbt-head,
  &.xoso-dbt-mode-sum .xoso-dbt-tail {
    display: none;
  }

  @media (max-width: 720px) {
    .xoso-dbt-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-dbt-modes {
      flex-wrap: nowrap;
    }

    .xoso-dbt-modes label {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 4px;
      text-align: center;
    }
  }
}

.xoso-bang-dac-biet-thang {
  --xoso-dbm-border: var(--xoso-color-border);
  --xoso-dbm-bg: #fff;
  --xoso-dbm-header: color-mix(in srgb, var(--xoso-dbm-border) 35%, #fff);
  --xoso-dbm-title: #222;
  --xoso-dbm-meta: var(--xoso-color-text);
  --xoso-dbm-link: var(--xoso-color-primary);
  --xoso-dbm-number: var(--xoso-dbm-link);
  --xoso-dbm-accent: var(--xoso-dbm-number);
  --xoso-dbm-row-alt: var(--xoso-color-panel);
  --xoso-dbm-weekend: color-mix(in srgb, var(--xoso-color-accent) 12%, white);
  --xoso-dbm-tet-bg: var(--xoso-color-highlight);
  --xoso-dbm-tet-text: var(--xoso-color-secondary);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-dbm-border);
  background: var(--xoso-dbm-bg);
  color: var(--xoso-dbm-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-dbm-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-dbm-border);
    background: var(--xoso-dbm-header);
  }

  .xoso-dbm-title h1,
  .xoso-dbm-title h2,
  .xoso-dbm-title h3,
  .xoso-dbm-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-dbm-title);
  }

  .xoso-dbm-title a {
    color: var(--xoso-dbm-title);
    text-decoration: none;
  }

  .xoso-dbm-title a:hover {
    color: var(--xoso-dbm-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-dbm-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-dbm-meta);
  }

  .site-link a {
    color: var(--xoso-dbm-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-dbm-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-dbm-body {
    padding: 8px 12px 12px;
  }

  .xoso-dbm-modes {
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0 12px;
  }

  .xoso-dbm-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-dbm-border);
    background: var(--xoso-dbm-bg);
    color: var(--xoso-dbm-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-dbm-modes label + label {
    margin-left: -1px;
  }

  .xoso-dbm-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-dbm-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-dbm-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-dbm-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-dbm-accent);
    background: var(--xoso-dbm-accent);
    color: #fff;
  }

  .xoso-dbm-caption {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-dbm-title);
  }

  .xoso-dbm-table-wrap {
    overflow-x: auto;
  }

  .xoso-dbm-calendar,
  .xoso-dbm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-dbm-bg);
  }

  .xoso-dbm-calendar {
    min-width: 1100px;
    font-size: 12px;
  }

  .xoso-dbm-calendar th,
  .xoso-dbm-calendar td,
  .xoso-dbm-table th,
  .xoso-dbm-table td {
    padding: 4px 6px;
    border: 1px solid var(--xoso-dbm-border);
    text-align: center;
  }

  .xoso-dbm-calendar th,
  .xoso-dbm-calendar td {
    font-size: 12px;
  }

  .xoso-dbm-calendar thead th,
  .xoso-dbm-table thead th {
    background: var(--xoso-dbm-header);
    color: var(--xoso-dbm-meta);
    font-size: 12px;
  }

  .xoso-dbm-calendar tbody th,
  .xoso-dbm-calendar thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--xoso-dbm-header);
    color: var(--xoso-dbm-title);
    font-weight: 700;
  }

  .xoso-dbm-calendar thead th:first-child {
    z-index: 2;
  }

  .xoso-dbm-weekend {
    background: var(--xoso-dbm-weekend);
  }

  .xoso-dbm-tet {
    background: var(--xoso-dbm-tet-bg);
    color: var(--xoso-dbm-tet-text);
    font-size: 12px;
  }

  .xoso-dbm-table tbody tr:nth-child(even) {
    background: var(--xoso-dbm-row-alt);
  }

  .xoso-dbm-hot {
    color: var(--xoso-dbm-accent);
    font-weight: 700;
  }

  .xoso-dbm-full,
  .xoso-dbm-last2,
  .xoso-dbm-head,
  .xoso-dbm-tail {
    display: inline;
  }

  &.xoso-dbm-mode-full .xoso-dbm-last2,
  &.xoso-dbm-mode-full .xoso-dbm-head,
  &.xoso-dbm-mode-full .xoso-dbm-tail,
  &.xoso-dbm-mode-last2 .xoso-dbm-full,
  &.xoso-dbm-mode-last2 .xoso-dbm-head,
  &.xoso-dbm-mode-last2 .xoso-dbm-tail,
  &.xoso-dbm-mode-head .xoso-dbm-full,
  &.xoso-dbm-mode-head .xoso-dbm-last2,
  &.xoso-dbm-mode-head .xoso-dbm-tail,
  &.xoso-dbm-mode-tail .xoso-dbm-full,
  &.xoso-dbm-mode-tail .xoso-dbm-last2,
  &.xoso-dbm-mode-tail .xoso-dbm-head {
    display: none;
  }

  @media (max-width: 720px) {
    .xoso-dbm-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-dbm-modes {
      flex-wrap: nowrap;
    }

    .xoso-dbm-modes label {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 4px;
      text-align: center;
    }
  }
}

.xoso-bang-dac-biet-nam {
  --xoso-dby-border: var(--xoso-color-border);
  --xoso-dby-bg: #fff;
  --xoso-dby-header: color-mix(in srgb, var(--xoso-dby-border) 35%, #fff);
  --xoso-dby-title: #222;
  --xoso-dby-meta: var(--xoso-color-text);
  --xoso-dby-link: var(--xoso-color-primary);
  --xoso-dby-number: var(--xoso-dby-link);
  --xoso-dby-accent: var(--xoso-dby-number);
  --xoso-dby-row-alt: var(--xoso-color-panel);
  --xoso-dby-weekend: color-mix(in srgb, var(--xoso-color-accent) 12%, white);
  --xoso-dby-tet-bg: var(--xoso-color-highlight);
  --xoso-dby-tet-text: var(--xoso-color-secondary);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-dby-border);
  background: var(--xoso-dby-bg);
  color: var(--xoso-dby-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-dby-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-dby-border);
    background: var(--xoso-dby-header);
  }

  .xoso-dby-title h1,
  .xoso-dby-title h2,
  .xoso-dby-title h3,
  .xoso-dby-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-dby-title);
  }

  .xoso-dby-title a {
    color: var(--xoso-dby-title);
    text-decoration: none;
  }

  .xoso-dby-title a:hover {
    color: var(--xoso-dby-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-dby-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-dby-meta);
  }

  .site-link a {
    color: var(--xoso-dby-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-dby-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-dby-body {
    padding: 8px 12px 12px;
  }

  .xoso-dby-modes {
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0 12px;
  }

  .xoso-dby-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-dby-border);
    background: var(--xoso-dby-bg);
    color: var(--xoso-dby-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-dby-modes label + label {
    margin-left: -1px;
  }

  .xoso-dby-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-dby-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-dby-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-dby-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-dby-accent);
    background: var(--xoso-dby-accent);
    color: #fff;
  }

  .xoso-dby-caption {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-dby-title);
  }

  .xoso-dby-table-wrap {
    overflow-x: auto;
  }

  .xoso-dby-calendar,
  .xoso-dby-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-dby-bg);
  }

  .xoso-dby-calendar {
    min-width: 860px;
    font-size: 13px;
  }

  .xoso-dby-calendar th,
  .xoso-dby-calendar td,
  .xoso-dby-table th,
  .xoso-dby-table td {
    padding: 4px 6px;
    border: 1px solid var(--xoso-dby-border);
    text-align: center;
  }

  .xoso-dby-calendar thead th,
  .xoso-dby-table thead th {
    background: var(--xoso-dby-header);
    color: var(--xoso-dby-meta);
    font-size: 13px;
  }

  .xoso-dby-calendar tbody th,
  .xoso-dby-calendar thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--xoso-dby-header);
    color: var(--xoso-dby-title);
    font-weight: 700;
  }

  .xoso-dby-calendar thead th:first-child {
    z-index: 2;
  }

  .xoso-dby-weekend {
    background: var(--xoso-dby-weekend);
  }

  .xoso-dby-tet {
    background: var(--xoso-dby-tet-bg);
    color: var(--xoso-dby-tet-text);
    font-size: 12px;
  }

  .xoso-dby-table tbody tr:nth-child(even) {
    background: var(--xoso-dby-row-alt);
  }

  .xoso-dby-hot {
    color: var(--xoso-dby-accent);
    font-weight: 700;
  }

  .xoso-dby-full,
  .xoso-dby-last2,
  .xoso-dby-head,
  .xoso-dby-tail,
  .xoso-dby-sum {
    display: inline;
  }

  &.xoso-dby-mode-full .xoso-dby-last2,
  &.xoso-dby-mode-full .xoso-dby-head,
  &.xoso-dby-mode-full .xoso-dby-tail,
  &.xoso-dby-mode-full .xoso-dby-sum,
  &.xoso-dby-mode-last2 .xoso-dby-full,
  &.xoso-dby-mode-last2 .xoso-dby-head,
  &.xoso-dby-mode-last2 .xoso-dby-tail,
  &.xoso-dby-mode-last2 .xoso-dby-sum,
  &.xoso-dby-mode-head .xoso-dby-full,
  &.xoso-dby-mode-head .xoso-dby-last2,
  &.xoso-dby-mode-head .xoso-dby-tail,
  &.xoso-dby-mode-head .xoso-dby-sum,
  &.xoso-dby-mode-tail .xoso-dby-full,
  &.xoso-dby-mode-tail .xoso-dby-last2,
  &.xoso-dby-mode-tail .xoso-dby-head,
  &.xoso-dby-mode-tail .xoso-dby-sum,
  &.xoso-dby-mode-sum .xoso-dby-full,
  &.xoso-dby-mode-sum .xoso-dby-last2,
  &.xoso-dby-mode-sum .xoso-dby-head,
  &.xoso-dby-mode-sum .xoso-dby-tail {
    display: none;
  }

  @media (max-width: 720px) {
    .xoso-dby-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-dby-modes {
      flex-wrap: nowrap;
    }

    .xoso-dby-modes label {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 4px;
      text-align: center;
    }
  }
}

.xoso-bang-dac-biet-tong {
  --xoso-dbs-border: var(--xoso-color-border);
  --xoso-dbs-bg: #fff;
  --xoso-dbs-header: color-mix(in srgb, var(--xoso-dbs-border) 35%, #fff);
  --xoso-dbs-title: #222;
  --xoso-dbs-meta: var(--xoso-color-text);
  --xoso-dbs-link: var(--xoso-color-primary);
  --xoso-dbs-number: var(--xoso-dbs-link);
  --xoso-dbs-accent: var(--xoso-dbs-number);
  --xoso-dbs-row-alt: var(--xoso-color-panel);
  --xoso-dbs-weekend: color-mix(in srgb, var(--xoso-color-accent) 12%, white);
  --xoso-dbs-tet-bg: var(--xoso-color-highlight);
  --xoso-dbs-tet-text: var(--xoso-color-secondary);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-dbs-border);
  background: var(--xoso-dbs-bg);
  color: var(--xoso-dbs-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-dbs-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-dbs-border);
    background: var(--xoso-dbs-header);
  }

  .xoso-dbs-title h1,
  .xoso-dbs-title h2,
  .xoso-dbs-title h3,
  .xoso-dbs-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-dbs-title);
  }

  .xoso-dbs-title a {
    color: var(--xoso-dbs-title);
    text-decoration: none;
  }

  .xoso-dbs-title a:hover {
    color: var(--xoso-dbs-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-dbs-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-dbs-meta);
  }

  .site-link a {
    color: var(--xoso-dbs-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-dbs-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-dbs-body {
    padding: 8px 12px 12px;
  }

  .xoso-dbs-modes {
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0 12px;
  }

  .xoso-dbs-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-dbs-border);
    background: var(--xoso-dbs-bg);
    /* Không dùng --xoso-dbs-title: header cam thường set title trắng → nút inactive mất chữ. */
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-dbs-modes label + label {
    margin-left: -1px;
  }

  .xoso-dbs-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-dbs-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-dbs-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-dbs-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-dbs-accent);
    background: var(--xoso-dbs-accent);
    color: #fff;
  }

  .xoso-dbs-caption {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
  }

  .xoso-dbs-table-wrap {
    overflow-x: auto;
  }

  .xoso-dbs-calendar,
  .xoso-dbs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-dbs-bg);
  }

  .xoso-dbs-calendar {
    min-width: 640px;
    font-size: 13px;
  }

  .xoso-dbs-calendar th,
  .xoso-dbs-calendar td,
  .xoso-dbs-table th,
  .xoso-dbs-table td {
    padding: 4px 6px;
    border: 1px solid var(--xoso-dbs-border);
    text-align: center;
    vertical-align: top;
  }

  .xoso-dbs-calendar thead th,
  .xoso-dbs-table thead th {
    background: var(--xoso-dbs-header);
    /* Cùng màu chữ header (trắng trên cam). */
    color: var(--xoso-dbs-title);
    font-size: 13px;
  }

  .xoso-dbs-prize,
  .xoso-dbs-date,
  .xoso-dbs-view {
    margin: 0;
  }

  .xoso-dbs-date {
    color: var(--xoso-dbs-meta);
    font-size: 12px;
  }

  .xoso-dbs-view {
    display: none;
    margin-top: 2px;
    color: var(--xoso-dbs-accent);
    font-weight: 700;
  }

  .xoso-dbs-weekend {
    background: var(--xoso-dbs-weekend);
  }

  .xoso-dbs-tet {
    background: var(--xoso-dbs-tet-bg);
    color: var(--xoso-dbs-tet-text);
    font-size: 12px;
  }

  .xoso-dbs-table tbody tr:nth-child(even) {
    background: var(--xoso-dbs-row-alt);
  }

  .xoso-dbs-hot {
    color: var(--xoso-dbs-accent);
    font-weight: 700;
  }

  &.xoso-dbs-mode-head .xoso-dbs-view-head,
  &.xoso-dbs-mode-tail .xoso-dbs-view-tail,
  &.xoso-dbs-mode-loto .xoso-dbs-view-loto,
  &.xoso-dbs-mode-sum .xoso-dbs-view-sum,
  &.xoso-dbs-mode-sum_even .xoso-dbs-view-even,
  &.xoso-dbs-mode-sum_odd .xoso-dbs-view-odd {
    display: block;
  }

  @media (max-width: 720px) {
    .xoso-dbs-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-dbs-modes {
      flex-wrap: nowrap;
    }

    .xoso-dbs-modes label {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 4px;
      text-align: center;
    }
  }
}

.xoso-bang-tong-hop {
  --xoso-agg-border: var(--xoso-color-border);
  --xoso-agg-bg: #fff;
  --xoso-agg-header: color-mix(in srgb, var(--xoso-agg-border) 35%, #fff);
  --xoso-agg-title: #222;
  --xoso-agg-meta: var(--xoso-color-text);
  --xoso-agg-link: var(--xoso-color-primary);
  --xoso-agg-number: var(--xoso-agg-link);
  --xoso-agg-accent: var(--xoso-agg-number);
  --xoso-agg-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-agg-border);
  background: var(--xoso-agg-bg);
  color: var(--xoso-agg-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-agg-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-agg-border);
    background: var(--xoso-agg-header);
  }

  .xoso-agg-title h1,
  .xoso-agg-title h2,
  .xoso-agg-title h3,
  .xoso-agg-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-agg-title);
  }

  .xoso-agg-title a {
    color: var(--xoso-agg-title);
    text-decoration: none;
  }

  .xoso-agg-title a:hover {
    color: var(--xoso-agg-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-agg-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-agg-meta);
  }

  .site-link a {
    color: var(--xoso-agg-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-agg-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-agg-body {
    padding: 8px 12px 12px;
  }

  .xoso-agg-caption {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-agg-title);
  }

  .xoso-agg-split {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .xoso-agg-split .xoso-agg-table-wrap {
    flex: 1 1 280px;
  }

  .xoso-agg-table-wrap {
    overflow-x: auto;
  }

  .xoso-agg-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-agg-bg);
  }

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

  .xoso-agg-table thead th {
    background: var(--xoso-agg-header);
    color: var(--xoso-agg-meta);
    font-size: 13px;
  }

  .xoso-agg-hit .xoso-agg-dates,
  .xoso-agg-table .xoso-agg-dates {
    text-align: left;
  }

  .xoso-agg-dates a {
    color: var(--xoso-agg-link);
    text-decoration: none;
  }

  .xoso-agg-dates a:hover {
    text-decoration: underline;
  }

  .xoso-agg-table tbody tr:nth-child(even) {
    background: var(--xoso-agg-row-alt);
  }

  .xoso-agg-hot {
    color: var(--xoso-agg-accent);
    font-weight: 700;
  }

  @media (max-width: 720px) {
    .xoso-agg-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-tan-suat-loto {
  --xoso-fmx-border: var(--xoso-color-border);
  --xoso-fmx-bg: #fff;
  --xoso-fmx-header: color-mix(in srgb, var(--xoso-fmx-border) 35%, #fff);
  --xoso-fmx-title: #222;
  --xoso-fmx-meta: var(--xoso-color-text);
  --xoso-fmx-link: var(--xoso-color-primary);
  --xoso-fmx-number: var(--xoso-fmx-link);
  --xoso-fmx-accent: var(--xoso-fmx-number);
  --xoso-fmx-row-alt: var(--xoso-color-panel);
  --xoso-fmx-hot: color-mix(in srgb, var(--xoso-color-accent) 12%, white);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-fmx-border);
  background: var(--xoso-fmx-bg);
  color: var(--xoso-fmx-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-fmx-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-fmx-border);
    background: var(--xoso-fmx-header);
  }

  .xoso-fmx-title h1,
  .xoso-fmx-title h2,
  .xoso-fmx-title h3,
  .xoso-fmx-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-fmx-title);
  }

  .xoso-fmx-title a {
    color: var(--xoso-fmx-title);
    text-decoration: none;
  }

  .xoso-fmx-title a:hover {
    color: var(--xoso-fmx-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-fmx-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-fmx-meta);
  }

  .site-link a {
    color: var(--xoso-fmx-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-fmx-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-fmx-body {
    padding: 8px 12px 12px;
  }

  .xoso-fmx-scroll {
    overflow-x: auto;
  }

  .xoso-fmx-matrix {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
    background: var(--xoso-fmx-bg);
    font-size: 13px;
  }

  .xoso-fmx-matrix th,
  .xoso-fmx-matrix td {
    padding: 2px 4px;
    border: 1px solid var(--xoso-fmx-border);
    text-align: center;
    white-space: nowrap;
  }

  .xoso-fmx-corner,
  .xoso-fmx-date,
  .xoso-fmx-num,
  .xoso-fmx-total {
    background: var(--xoso-fmx-header);
    color: var(--xoso-fmx-meta);
  }

  .xoso-fmx-num,
  .xoso-fmx-corner {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  .xoso-fmx-total {
    position: sticky;
    right: 0;
    z-index: 1;
  }

  .xoso-fmx-d,
  .xoso-fmx-sep,
  .xoso-fmx-m {
    display: block;
    line-height: 1.1;
  }

  .xoso-fmx-date a {
    color: var(--xoso-fmx-link);
    text-decoration: none;
  }

  .xoso-fmx-date a:hover {
    text-decoration: underline;
  }

  .xoso-fmx-zero {
    background: var(--xoso-color-panel);
  }

  .xoso-fmx-db {
    background: var(--xoso-fmx-hot);
    color: var(--xoso-color-accent);
    font-weight: 700;
  }

  .xoso-fmx-legend {
    margin: 8px 0 0;
    color: var(--xoso-color-accent);
    font-size: 14px;
  }

  .xoso-fmx-split {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }

  .xoso-fmx-split .xoso-fmx-top {
    flex: 1 1 280px;
  }

  .xoso-fmx-caption {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-fmx-title);
  }

  .xoso-fmx-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-fmx-bg);
  }

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

  .xoso-fmx-table thead th {
    background: var(--xoso-fmx-header);
    color: var(--xoso-fmx-meta);
    font-size: 13px;
  }

  .xoso-fmx-table tbody tr:nth-child(even) {
    background: var(--xoso-fmx-row-alt);
  }

  .xoso-fmx-hot {
    color: var(--xoso-fmx-accent);
    font-weight: 700;
  }

  @media (max-width: 720px) {
    .xoso-fmx-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-tan-suat-loto-doc {
  .xoso-fmx-matrix-doc {
    min-width: 0;
  }

  .xoso-fmx-num,
  .xoso-fmx-total {
    position: static;
  }

  .xoso-fmx-matrix-doc thead th {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .xoso-fmx-corner {
    z-index: 3;
  }
}

.xoso-bang-tan-suat-cap-loto {
  --xoso-pfx-border: var(--xoso-color-border);
  --xoso-pfx-bg: #fff;
  --xoso-pfx-header: color-mix(in srgb, var(--xoso-pfx-border) 35%, #fff);
  --xoso-pfx-title: #222;
  --xoso-pfx-meta: var(--xoso-color-text);
  --xoso-pfx-link: var(--xoso-color-primary);
  --xoso-pfx-number: var(--xoso-pfx-link);
  --xoso-pfx-accent: var(--xoso-pfx-number);
  --xoso-pfx-row-alt: var(--xoso-color-panel);
  --xoso-pfx-hot: color-mix(in srgb, var(--xoso-color-accent) 12%, white);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-pfx-border);
  background: var(--xoso-pfx-bg);
  color: var(--xoso-pfx-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-pfx-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-pfx-border);
    background: var(--xoso-pfx-header);
  }

  .xoso-pfx-title h1,
  .xoso-pfx-title h2,
  .xoso-pfx-title h3,
  .xoso-pfx-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-pfx-title);
  }

  .xoso-pfx-title a {
    color: var(--xoso-pfx-title);
    text-decoration: none;
  }

  .xoso-pfx-title a:hover {
    color: var(--xoso-pfx-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-pfx-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-pfx-meta);
  }

  .site-link a {
    color: var(--xoso-pfx-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-pfx-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-pfx-body {
    padding: 8px 12px 12px;
  }

  .xoso-pfx-scroll {
    overflow-x: auto;
  }

  .xoso-pfx-matrix {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
    background: var(--xoso-pfx-bg);
    font-size: 13px;
  }

  .xoso-pfx-matrix th,
  .xoso-pfx-matrix td {
    padding: 2px 4px;
    border: 1px solid var(--xoso-pfx-border);
    text-align: center;
    white-space: nowrap;
  }

  .xoso-pfx-corner,
  .xoso-pfx-date,
  .xoso-pfx-num,
  .xoso-pfx-total {
    background: var(--xoso-pfx-header);
    color: var(--xoso-pfx-meta);
  }

  .xoso-pfx-num,
  .xoso-pfx-corner {
    position: sticky;
    left: 0;
    z-index: 1;
  }

  .xoso-pfx-num {
    min-width: 58px;
  }

  .xoso-pfx-total {
    position: sticky;
    right: 0;
    z-index: 1;
  }

  .xoso-pfx-d,
  .xoso-pfx-sep,
  .xoso-pfx-m {
    display: block;
    line-height: 1.1;
  }

  .xoso-pfx-date a {
    color: var(--xoso-pfx-link);
    text-decoration: none;
  }

  .xoso-pfx-date a:hover {
    text-decoration: underline;
  }

  .xoso-pfx-zero {
    background: var(--xoso-color-panel);
  }

  .xoso-pfx-db {
    background: var(--xoso-pfx-hot);
    color: var(--xoso-color-accent);
    font-weight: 700;
  }

  .xoso-pfx-legend {
    margin: 8px 0 0;
    color: var(--xoso-color-accent);
    font-size: 14px;
  }

  .xoso-pfx-split {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }

  .xoso-pfx-split .xoso-pfx-top {
    flex: 1 1 280px;
  }

  .xoso-pfx-caption {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-pfx-title);
  }

  .xoso-pfx-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-pfx-bg);
  }

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

  .xoso-pfx-table thead th {
    background: var(--xoso-pfx-header);
    color: var(--xoso-pfx-meta);
    font-size: 13px;
  }

  .xoso-pfx-table tbody tr:nth-child(even) {
    background: var(--xoso-pfx-row-alt);
  }

  .xoso-pfx-hot {
    color: var(--xoso-pfx-accent);
    font-weight: 700;
  }

  @media (max-width: 720px) {
    .xoso-pfx-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-tan-suat-cap-loto-doc {
  .xoso-pfx-matrix-doc {
    min-width: 0;
  }

  .xoso-pfx-num,
  .xoso-pfx-total {
    position: static;
  }

  .xoso-pfx-matrix-doc thead th {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .xoso-pfx-corner {
    z-index: 3;
  }
}

.xoso-bang-giai-dac-biet {
  --xoso-gdb-border: var(--xoso-color-border);
  --xoso-gdb-bg: #fff;
  --xoso-gdb-header: color-mix(in srgb, var(--xoso-gdb-border) 35%, #fff);
  --xoso-gdb-title: #222;
  --xoso-gdb-meta: var(--xoso-color-text);
  --xoso-gdb-link: var(--xoso-color-primary);
  --xoso-gdb-number: var(--xoso-gdb-link);
  --xoso-gdb-accent: var(--xoso-gdb-number);
  --xoso-gdb-row-alt: var(--xoso-color-panel);
  --xoso-gdb-hot: var(--xoso-color-highlight);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-gdb-border);
  background: var(--xoso-gdb-bg);
  color: var(--xoso-gdb-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-gdb-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-gdb-border);
    background: var(--xoso-gdb-header);
  }

  .xoso-gdb-title h1,
  .xoso-gdb-title h2,
  .xoso-gdb-title h3,
  .xoso-gdb-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-gdb-title);
  }

  .xoso-gdb-title a {
    color: var(--xoso-gdb-title);
    text-decoration: none;
  }

  .xoso-gdb-title a:hover {
    color: var(--xoso-gdb-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-gdb-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    /* Cùng màu tiêu đề header (trắng trên cam) thay vì meta xám. */
    color: var(--xoso-gdb-title);
  }

  .xoso-gdb-header .xoso-gdb-draw {
    color: var(--xoso-gdb-title);
  }

  .site-link a {
    color: var(--xoso-gdb-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-gdb-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-gdb-body {
    padding: 8px 12px 12px;
  }

  .xoso-gdb-modes {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 12px;
  }

  .xoso-gdb-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-gdb-border);
    background: var(--xoso-gdb-bg);
    /* Không dùng --xoso-gdb-title: header cam thường set title trắng → nút inactive mất chữ. */
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-gdb-modes label + label {
    margin-left: -1px;
  }

  .xoso-gdb-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-gdb-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-gdb-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-gdb-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-gdb-accent);
    background: var(--xoso-gdb-accent);
    color: #fff;
  }

  .xoso-gdb-month {
    margin: 0 0 14px;
  }

  .xoso-gdb-table-wrap {
    overflow-x: auto;
  }

  .xoso-gdb-calendar,
  .xoso-gdb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-gdb-bg);
  }

  .xoso-gdb-calendar th,
  .xoso-gdb-calendar td,
  .xoso-gdb-table th,
  .xoso-gdb-table td {
    padding: 6px 8px;
    border: 1px solid var(--xoso-gdb-border);
    text-align: center;
    vertical-align: top;
  }

  .xoso-gdb-calendar thead th,
  .xoso-gdb-table thead th {
    background: var(--xoso-gdb-header);
    color: var(--xoso-gdb-title);
    font-size: 13px;
  }

  .xoso-gdb-day {
    display: block;
    margin-bottom: 4px;
    color: var(--xoso-gdb-meta);
    font-size: 12px;
  }

  .xoso-gdb-day a {
    color: var(--xoso-gdb-link);
    font-weight: 700;
    text-decoration: none;
  }

  .xoso-gdb-day a:hover {
    text-decoration: underline;
  }

  .xoso-gdb-weekend {
    background: var(--xoso-gdb-hot);
  }

  .xoso-gdb-table tbody tr:nth-child(even) {
    background: var(--xoso-gdb-row-alt);
  }

  .xoso-gdb-hot {
    color: var(--xoso-gdb-accent);
    font-weight: 700;
  }

  .xoso-gdb-full,
  .xoso-gdb-last2,
  .xoso-gdb-head,
  .xoso-gdb-tail {
    display: inline;
  }

  &.xoso-gdb-mode-full .xoso-gdb-last2,
  &.xoso-gdb-mode-full .xoso-gdb-head,
  &.xoso-gdb-mode-full .xoso-gdb-tail,
  &.xoso-gdb-mode-last2 .xoso-gdb-full,
  &.xoso-gdb-mode-last2 .xoso-gdb-head,
  &.xoso-gdb-mode-last2 .xoso-gdb-tail,
  &.xoso-gdb-mode-head .xoso-gdb-full,
  &.xoso-gdb-mode-head .xoso-gdb-last2,
  &.xoso-gdb-mode-head .xoso-gdb-tail,
  &.xoso-gdb-mode-tail .xoso-gdb-full,
  &.xoso-gdb-mode-tail .xoso-gdb-last2,
  &.xoso-gdb-mode-tail .xoso-gdb-head {
    display: none;
  }

  .xoso-gdb-caption {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-gdb-title);
  }

  .xoso-gdb-split {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }

  .xoso-gdb-split .xoso-gdb-block {
    flex: 1 1 280px;
  }

  .xoso-gdb-block {
    margin-top: 12px;
  }

  .xoso-gdb-table a {
    color: var(--xoso-gdb-link);
    text-decoration: none;
  }

  .xoso-gdb-table a:hover {
    text-decoration: underline;
  }

  @media (max-width: 720px) {
    .xoso-gdb-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-gdb-modes {
      flex-wrap: nowrap;
    }

    .xoso-gdb-modes label {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 4px;
      text-align: center;
    }
  }
}

.xoso-bang-lo-gan {
  --xoso-gan-border: var(--xoso-color-border);
  --xoso-gan-bg: #fff;
  --xoso-gan-header: color-mix(in srgb, var(--xoso-gan-border) 35%, #fff);
  --xoso-gan-title: #222;
  --xoso-gan-meta: var(--xoso-color-text);
  --xoso-gan-link: var(--xoso-color-primary);
  --xoso-gan-number: var(--xoso-gan-link);
  --xoso-gan-accent: var(--xoso-gan-number);
  --xoso-gan-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-gan-border);
  background: var(--xoso-gan-bg);
  color: var(--xoso-gan-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-gan-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-gan-border);
    background: var(--xoso-gan-header);
  }

  .xoso-gan-title h1,
  .xoso-gan-title h2,
  .xoso-gan-title h3,
  .xoso-gan-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-gan-title);
  }

  .xoso-gan-title a {
    color: var(--xoso-gan-title);
    text-decoration: none;
  }

  .xoso-gan-title a:hover {
    color: var(--xoso-gan-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-gan-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-gan-meta);
  }

  .site-link a {
    color: var(--xoso-gan-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-gan-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-gan-body {
    padding: 8px 12px 12px;
  }

  .xoso-gan-caption {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-gan-title);
  }

  .xoso-gan-table-wrap {
    overflow-x: auto;
  }

  .xoso-gan-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-gan-bg);
  }

  .xoso-gan-table th,
  .xoso-gan-table td {
    padding: 8px 10px;
    border: 1px solid var(--xoso-gan-border);
    text-align: center;
    vertical-align: middle;
  }

  .xoso-gan-table thead th {
    background: var(--xoso-gan-header);
    color: var(--xoso-gan-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-gan-table th:first-child,
  .xoso-gan-table td:first-child {
    width: 16%;
  }

  .xoso-gan-table .xoso-gan-seen {
    width: 28%;
    white-space: nowrap;
  }

  .xoso-gan-table .xoso-gan-streak,
  .xoso-gan-table .xoso-gan-max {
    color: var(--xoso-gan-accent);
    font-weight: 700;
  }

  .xoso-gan-table tbody tr:nth-child(even) {
    background: var(--xoso-gan-row-alt);
  }

  .xoso-gan-table tbody tr.is-hidden {
    display: none;
  }

  .xoso-gan-parity {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 8px 0 10px;
    align-items: center;
  }

  .xoso-gan-parity-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 14px;
    cursor: pointer;
  }

  .xoso-gan-num {
    color: var(--xoso-gan-accent);
    font-weight: 700;
  }

  .xoso-gan-table a {
    color: var(--xoso-gan-link);
    text-decoration: none;
  }

  .xoso-gan-table a:hover {
    text-decoration: underline;
  }

  .xoso-gan-split {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
  }

  .xoso-gan-split .xoso-gan-block {
    flex: 1 1 220px;
  }

  .xoso-gan-block {
    margin-top: 12px;
  }

  @media (max-width: 720px) {
    .xoso-gan-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-gan-table th,
    .xoso-gan-table td {
      padding: 6px 4px;
    }

    .xoso-gan-table td {
      white-space: nowrap;
    }

    .xoso-gan-table thead th:last-child {
      white-space: normal;
    }
  }
}

.xoso-bang-lo-xien {
  --xoso-xien-border: var(--xoso-color-border);
  --xoso-xien-bg: #fff;
  --xoso-xien-header: color-mix(in srgb, var(--xoso-xien-border) 35%, #fff);
  --xoso-xien-title: #222;
  --xoso-xien-meta: var(--xoso-color-text);
  --xoso-xien-link: var(--xoso-color-primary);
  --xoso-xien-number: var(--xoso-xien-link);
  --xoso-xien-accent: var(--xoso-xien-number);
  --xoso-xien-row-alt: var(--xoso-color-panel);
  --xoso-xien-hit: #00f;
  --xoso-xien-db: var(--xoso-color-accent);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-xien-border);
  background: var(--xoso-xien-bg);
  color: var(--xoso-xien-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-xien-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-xien-border);
    background: var(--xoso-xien-header);
  }

  .xoso-xien-title h1,
  .xoso-xien-title h2,
  .xoso-xien-title h3,
  .xoso-xien-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-xien-title);
  }

  .xoso-xien-title a {
    color: var(--xoso-xien-title);
    text-decoration: none;
  }

  .xoso-xien-title a:hover {
    color: var(--xoso-xien-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-xien-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-xien-meta);
  }

  .site-link a {
    color: var(--xoso-xien-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-xien-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-xien-body {
    padding: 8px 12px 12px;
  }

  .xoso-xien-block + .xoso-xien-block {
    margin-top: 16px;
  }

  .xoso-xien-table-wrap {
    overflow-x: auto;
  }

  .xoso-xien-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-xien-bg);
  }

  .xoso-xien-table th,
  .xoso-xien-table td {
    padding: 6px 8px;
    border: 1px solid var(--xoso-xien-border);
    text-align: center;
    vertical-align: top;
  }

  .xoso-xien-table thead th {
    background: var(--xoso-xien-header);
    color: var(--xoso-xien-meta);
    font-size: 13px;
  }

  .xoso-xien-table th:first-child,
  .xoso-xien-table td:first-child {
    width: 28%;
  }

  .xoso-xien-table tbody tr:nth-child(even) {
    background: var(--xoso-xien-row-alt);
  }

  .xoso-xien-num {
    color: var(--xoso-xien-accent);
    font-weight: 700;
  }

  .xoso-xien-hit {
    color: var(--xoso-xien-hit);
  }

  .xoso-xien-db {
    color: var(--xoso-xien-db);
  }

  .xoso-xien-dates {
    text-align: left;
  }

  .xoso-xien-table a {
    color: var(--xoso-xien-link);
    text-decoration: none;
  }

  .xoso-xien-table a:hover {
    text-decoration: underline;
  }

  @media (max-width: 720px) {
    .xoso-xien-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-bang-lo-kep {
  --xoso-kep-border: var(--xoso-color-border);
  --xoso-kep-bg: #fff;
  --xoso-kep-header: color-mix(in srgb, var(--xoso-kep-border) 35%, #fff);
  --xoso-kep-title: #222;
  --xoso-kep-meta: var(--xoso-color-text);
  --xoso-kep-link: var(--xoso-color-primary);
  --xoso-kep-number: var(--xoso-kep-link);
  --xoso-kep-accent: var(--xoso-kep-number);
  --xoso-kep-row-alt: var(--xoso-color-panel);
  --xoso-kep-hit: #00f;
  --xoso-kep-db: var(--xoso-color-accent);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-kep-border);
  background: var(--xoso-kep-bg);
  color: var(--xoso-kep-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-kep-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-kep-border);
    background: var(--xoso-kep-header);
  }

  .xoso-kep-title h1,
  .xoso-kep-title h2,
  .xoso-kep-title h3,
  .xoso-kep-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-kep-title);
  }

  .xoso-kep-title a {
    color: var(--xoso-kep-title);
    text-decoration: none;
  }

  .xoso-kep-title a:hover {
    color: var(--xoso-kep-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-kep-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-kep-meta);
  }

  .site-link a {
    color: var(--xoso-kep-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-kep-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-kep-body {
    padding: 8px 12px 12px;
  }

  .xoso-kep-table-wrap {
    overflow-x: auto;
  }

  .xoso-kep-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-kep-bg);
  }

  .xoso-kep-table th,
  .xoso-kep-table td {
    padding: 6px 8px;
    border: 1px solid var(--xoso-kep-border);
    text-align: center;
    vertical-align: top;
  }

  .xoso-kep-table thead th {
    background: var(--xoso-kep-header);
    color: var(--xoso-kep-meta);
    font-size: 13px;
  }

  .xoso-kep-table th:first-child,
  .xoso-kep-table td:first-child {
    width: 28%;
  }

  .xoso-kep-table tbody tr:nth-child(even) {
    background: var(--xoso-kep-row-alt);
  }

  .xoso-kep-num {
    color: var(--xoso-kep-accent);
    font-weight: 700;
  }

  .xoso-kep-hit {
    color: var(--xoso-kep-hit);
  }

  .xoso-kep-db {
    color: var(--xoso-kep-db);
  }

  .xoso-kep-dates {
    text-align: left;
  }

  .xoso-kep-table a {
    color: var(--xoso-kep-link);
    text-decoration: none;
  }

  .xoso-kep-table a:hover {
    text-decoration: underline;
  }

  @media (max-width: 720px) {
    .xoso-kep-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-do-ve-so {
  --xoso-dvs-border: var(--xoso-color-border);
  --xoso-dvs-bg: #fff;
  --xoso-dvs-header: color-mix(in srgb, var(--xoso-dvs-border) 35%, #fff);
  --xoso-dvs-title: #222;
  --xoso-dvs-meta: var(--xoso-color-text);
  --xoso-dvs-link: var(--xoso-color-primary);
  --xoso-dvs-accent: var(--xoso-color-primary);
  --xoso-dvs-number: var(--xoso-color-accent);
  --xoso-dvs-soft: var(--xoso-dvs-header);
  --xoso-dvs-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-dvs-border);
  background: var(--xoso-dvs-bg);
  color: var(--xoso-dvs-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  .xoso-dvs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--xoso-dvs-header);
  }

  .xoso-dvs-title h1,
  .xoso-dvs-title h2,
  .xoso-dvs-title h3,
  .xoso-dvs-title h4 {
    margin: 0;
    color: var(--xoso-dvs-title);
    font-size: 18px;
    line-height: 1.4;
  }

  .xoso-dvs-title a,
  .xoso-dvs-draw,
  .xoso-dvs-lead,
  .xoso-dvs-other,
  .xoso-dvs-empty {
    color: var(--xoso-dvs-meta);
  }

  &.is-loading {
    cursor: progress;

    .xoso-dvs-form {
      pointer-events: none;
      opacity: 0.72;
    }

    .xoso-dvs-result {
      position: relative;
      min-height: 56px;
      cursor: progress;
    }

    .xoso-dvs-result > * {
      opacity: 0.35;
    }

    .xoso-dvs-result::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 2;
      width: 22px;
      height: 22px;
      margin: -20px 0 0 -11px;
      border: 2px solid color-mix(in srgb, var(--xoso-dvs-accent) 28%, transparent);
      border-top-color: var(--xoso-dvs-accent);
      border-radius: 50%;
      animation: xoso-dvs-spin 0.75s linear infinite;
    }

    .xoso-dvs-result::after {
      content: attr(data-loading);
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      z-index: 2;
      margin-top: 10px;
      color: var(--xoso-dvs-meta);
      font-size: 14px;
      font-weight: 600;
      line-height: 1.3;
      text-align: center;
    }

    .xoso-dvs-submit button {
      opacity: 0.85;
    }
  }

  @keyframes xoso-dvs-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .xoso-form-error {
    margin: 0 12px 12px;
    color: var(--xoso-dvs-meta);
    font-weight: 700;
  }

  .xoso-dvs-title a,
  .site-link a,
  .xoso-dvs-table a {
    color: var(--xoso-dvs-link);
    text-decoration: none;
  }

  .site-link a + a::before {
    content: "/\00a0";
    color: var(--xoso-dvs-meta);
  }

  .xoso-dvs-body {
    padding: 12px;
  }

  .xoso-dvs-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 16px;
  }

  .xoso-dvs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .xoso-dvs-field label {
    font-weight: 700;
  }

  .xoso-dvs-field input,
  .xoso-dvs-field select,
  .xoso-dvs-field .xoso-mien-one {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--xoso-dvs-border);
    background: #fff;
    color: var(--xoso-dvs-title);
  }

  .xoso-dvs-field .xoso-mien-one {
    display: flex;
    align-items: center;
    height: 2.507em;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.97em;

    @media (max-width: 849px) {
      font-size: 1rem;
    }
  }

  .xoso-dvs-submit {
    grid-column: 1 / -1;
    align-items: flex-end;
  }

  .xoso-dvs-submit button {
    appearance: none;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--xoso-dvs-accent);
    background: var(--xoso-dvs-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
  }

  .xoso-dvs-table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
    text-align: center;
  }

  .xoso-dvs-table th,
  .xoso-dvs-table td {
    padding: 8px 10px;
    border: 1px solid var(--xoso-dvs-border);
    vertical-align: middle;
  }

  .xoso-dvs-table th {
    background: var(--xoso-dvs-soft);
    color: var(--xoso-dvs-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-dvs-hits th:nth-child(1),
  .xoso-dvs-hits td:nth-child(1) {
    width: 18%;
  }

  .xoso-dvs-hits th:nth-child(2),
  .xoso-dvs-hits td:nth-child(2) {
    width: 28%;
  }

  .xoso-dvs-hits th:nth-child(3),
  .xoso-dvs-hits td.xoso-dvs-date {
    width: 36%;
    text-align: left;
    white-space: nowrap;
  }

  .xoso-dvs-table tbody tr:nth-child(even) {
    background: var(--xoso-dvs-row-alt);
  }

  .xoso-dvs-num {
    color: var(--xoso-dvs-number);
    font-weight: 700;
  }

  .xoso-dvs-sum td {
    font-weight: 700;
  }

  @media (max-width: 720px) {
    .xoso-dvs-form {
      grid-template-columns: 1fr;
    }

    .xoso-dvs-header {
      flex-direction: column;
      align-items: flex-start;
    }
  }
}

.xoso-quay-thu {
  --xoso-qt-border: var(--xoso-color-border);
  --xoso-qt-bg: #fff;
  --xoso-qt-header: color-mix(in srgb, var(--xoso-qt-border) 35%, #fff);
  --xoso-qt-title: #222;
  --xoso-qt-meta: var(--xoso-color-text);
  --xoso-qt-link: var(--xoso-color-primary);
  --xoso-qt-number: var(--xoso-color-accent);
  --xoso-qt-accent: var(--xoso-color-primary);
  --xoso-qt-soft: var(--xoso-qt-header);
  --xoso-qt-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-qt-border);
  background: var(--xoso-qt-bg);
  color: var(--xoso-qt-title);

  .xoso-qt-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--xoso-qt-header);
  }

  .xoso-qt-title h1,
  .xoso-qt-title h2,
  .xoso-qt-title h3,
  .xoso-qt-title h4 {
    margin: 0;
    color: var(--xoso-qt-title);
    font-size: 18px;
    line-height: 1.4;
  }

  .xoso-qt-title a,
  .site-link a {
    color: var(--xoso-qt-link);
    text-decoration: none;
  }

  .site-link a + a::before {
    content: "/\00a0";
    color: var(--xoso-qt-meta);
  }

  .xoso-qt-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .xoso-qt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid var(--xoso-qt-accent);
  }

  .xoso-qt-tabs li {
    margin: 0;
  }

  .xoso-qt-tab {
    appearance: none;
    min-height: 0;
    margin: 0;
    border: 1px solid var(--xoso-qt-border);
    border-bottom: none;
    background: var(--xoso-qt-header);
    color: var(--xoso-qt-title);
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
  }

  .xoso-qt-tab.is-active {
    background: var(--xoso-qt-accent);
    border-color: var(--xoso-qt-accent);
    color: #fff;
  }

  .xoso-qt-tab:disabled,
  .xoso-qt-province:disabled,
  .xoso-qt-start:disabled {
    cursor: default;
  }

  .xoso-qt-banner {
    margin: 0;
    padding: 12px 16px;
    background: var(--xoso-qt-accent);
    color: #fff;
    text-align: center;
    font-weight: 700;
  }

  .xoso-qt-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
  }

  .xoso-qt-province-field {
    display: flex;
    flex: 1 1 200px;
    flex-direction: column;
    gap: 4px;
  }

  .xoso-qt-province-field[hidden] {
    display: none;
  }

  .xoso-qt-province {
    width: 100%;
  }

  .xoso-qt-start {
    min-height: 40px;
    margin: 0;
    border: 0;
    background: var(--xoso-qt-accent);
    color: #fff;
    padding: 8px 16px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
  }

  .xoso-qt-board,
  .xoso-qt-loto {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
  }

  .xoso-qt-board th,
  .xoso-qt-board td,
  .xoso-qt-loto th,
  .xoso-qt-loto td {
    padding: 6px 8px;
    border: 1px solid var(--xoso-qt-border);
  }

  .xoso-qt-label,
  .xoso-qt-loto th {
    background: var(--xoso-qt-soft);
    color: var(--xoso-qt-meta);
    font-weight: 700;
  }

  .xoso-qt-board tbody tr:nth-child(even),
  .xoso-qt-loto tbody tr:nth-child(even) {
    background: var(--xoso-qt-row-alt);
  }

  .xoso-qt-cells {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .xoso-qt-cell {
    min-width: 2.5em;
    color: var(--xoso-qt-number);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .xoso-qt-cell.is-spinning {
    opacity: 0.45;
  }

  .xoso-qt-modes {
    display: flex;
    flex-wrap: wrap;
  }

  .xoso-qt-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-qt-border);
    background: var(--xoso-qt-bg);
    color: var(--xoso-qt-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-qt-modes label + label {
    margin-left: -1px;
  }

  .xoso-qt-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-qt-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-qt-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-qt-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-qt-accent);
    background: var(--xoso-qt-accent);
    color: #fff;
  }

  .xoso-qt-note {
    margin: 0;
    color: var(--xoso-qt-meta);
  }

  @media (max-width: 720px) {
    .xoso-qt-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-qt-tabs li {
      flex: 1 1 0;
      min-width: 0;
    }

    .xoso-qt-tab {
      width: 100%;
      height: 100%;
      padding: 8px 6px;
    }
  }
}

.xoso-quay-thu-vietlott {
  --xoso-qtv-border: var(--xoso-color-border);
  --xoso-qtv-bg: #fff;
  --xoso-qtv-header: #fff3e8;
  --xoso-qtv-title: #222;
  --xoso-qtv-meta: var(--xoso-color-text);
  --xoso-qtv-link: var(--xoso-color-primary);
  --xoso-qtv-accent: var(--xoso-color-primary);
  --xoso-qtv-ball-text: var(--xoso-color-accent);
  --xoso-qtv-ball-face: #f3f4f6;
  --xoso-qtv-soft: #fff3e8;
  width: 100%;
  margin: 0 0 16px;
  color: var(--xoso-qtv-title);

  .xoso-qtv-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .xoso-qtv-game {
    border: 1px solid var(--xoso-qtv-border);
    background: var(--xoso-qtv-bg);
    padding: 0 0 12px;
  }

  .xoso-qtv-game-head {
    padding: 10px 12px;
    background: var(--xoso-qtv-header);
    border-bottom: 1px solid var(--xoso-qtv-border);
  }

  .xoso-qtv-game-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-qtv-title);
  }

  .xoso-qtv-game-link {
    color: var(--xoso-qtv-link);
    text-decoration: underline;
  }

  .xoso-qtv-note {
    margin: 10px 12px 0;
    color: var(--xoso-qtv-meta);
    font-size: 14px;
  }

  .xoso-qtv-actions {
    margin: 12px;
    text-align: center;
  }

  .xoso-qtv-start {
    min-height: 40px;
    margin: 0;
    border: 0;
    padding: 8px 20px;
    background: var(--xoso-qtv-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }

  .xoso-qtv-start:disabled {
    opacity: 0.75;
    cursor: default;
  }

  .xoso-qtv-board {
    margin: 0 12px;
  }

  .xoso-qtv-jackpot {
    margin: 0 0 10px;
    text-align: center;
    font-size: 15px;
  }

  .xoso-qtv-jackpot strong {
    color: var(--xoso-qtv-ball-text);
  }

  .xoso-qtv-balls {
    display: grid;
    grid-template-columns: repeat(var(--xoso-qtv-cols, 6), minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .xoso-qtv-ball {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    background: var(--xoso-qtv-ball-face);
    border: 1px solid var(--xoso-qtv-border);
    color: var(--xoso-qtv-ball-text);
    font-weight: 700;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
  }

  .xoso-qtv-ball-special {
    box-shadow: inset 0 0 0 2px var(--xoso-qtv-accent);
  }

  .xoso-qtv-ball.is-spinning,
  .xoso-qtv-triplet.is-spinning {
    opacity: 0.55;
  }

  .xoso-qtv-prizes {
    width: calc(100% - 24px);
    margin: 12px;
    border-collapse: collapse;
    text-align: center;
  }

  .xoso-qtv-prizes th,
  .xoso-qtv-prizes td {
    padding: 8px;
    border: 1px solid var(--xoso-qtv-border);
  }

  .xoso-qtv-prizes thead th {
    background: var(--xoso-qtv-soft);
    color: #fff;
    background: var(--xoso-qtv-accent);
    font-size: 13px;
  }

  .xoso-qtv-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 2px;
    border-radius: 50%;
    background: #bbb;
  }

  .xoso-qtv-dot-special {
    background: var(--xoso-qtv-accent);
  }

  .xoso-qtv-amount {
    color: var(--xoso-qtv-ball-text);
    font-weight: 700;
  }

  .xoso-qtv-grid {
    margin: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .xoso-qtv-tier-label {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
  }

  .xoso-qtv-triplets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .xoso-qtv-triplet {
    display: inline-flex;
    gap: 2px;
    padding: 4px 6px;
    border: 1px solid var(--xoso-qtv-border);
    background: #fff;
  }

  .xoso-qtv-tier-special .xoso-qtv-triplet {
    border-color: var(--xoso-qtv-accent);
  }

  .xoso-qtv-digit {
    min-width: 1.1em;
    text-align: center;
    color: var(--xoso-qtv-ball-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  @media (max-width: 640px) {
    .xoso-qtv-balls {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

.xoso-truc-tiep:has(.xoso-tt-result) {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.xoso-truc-tiep {
  --xoso-tt-border: var(--xoso-color-border);
  --xoso-tt-bg: #fff;
  --xoso-tt-header: var(--xoso-color-primary);
  --xoso-tt-title: #fff;
  --xoso-tt-meta: var(--xoso-color-muted);
  --xoso-tt-link: #fff;
  --xoso-tt-number: #111;
  --xoso-tt-accent: var(--xoso-color-primary);
  --xoso-tt-text: #1f2328;
  --xoso-tt-soft: #f3f5f8;
  --xoso-tt-row-alt: var(--xoso-color-row-alt);
  --xoso-tt-flash: #ffe58a;
  --xoso-tt-done: var(--xoso-color-success);
  --xoso-tt-wait: var(--xoso-color-secondary);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-tt-border);
  background: var(--xoso-tt-bg);
  color: var(--xoso-tt-text);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08), 0 2px 10px 0 rgba(0, 0, 0, 0.06);
  font-variant-numeric: tabular-nums;

  .xoso-tt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    background: var(--xoso-tt-header);
    color: var(--xoso-tt-title);
    text-align: center;
  }

  .xoso-tt-title h1,
  .xoso-tt-title h2,
  .xoso-tt-title h3,
  .xoso-tt-title h4 {
    margin: 0;
    color: var(--xoso-tt-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
  }

  .xoso-tt-title a {
    color: inherit;
    text-decoration: none;
  }

  .xoso-tt-header .site-link {
    font-size: 14px;
  }

  .xoso-tt-header .site-link a {
    color: var(--xoso-tt-link);
    text-decoration: underline;
  }

  .xoso-tt-header .site-link a + a::before {
    display: inline-block;
    padding: 0 4px;
    content: "/";
    color: color-mix(in srgb, var(--xoso-tt-link) 65%, transparent);
  }

  .xoso-tt-tabs {
    display: flex;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--xoso-tt-border);
    background: var(--xoso-tt-soft);
    list-style: none;
  }

  .xoso-tt-tabs li {
    flex: 1 1 0;
    margin: 0;
  }

  .xoso-tt-tab {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 11px 6px 9px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--xoso-tt-meta);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
  }

  .xoso-tt-tab:hover {
    color: var(--xoso-tt-header);
  }

  .xoso-tt-tab.is-active {
    border-bottom-color: var(--xoso-tt-header);
    background: var(--xoso-tt-bg);
    color: var(--xoso-tt-header);
  }

  .xoso-tt-banner {
    margin: 0;
    padding: 12px 12px 0;
    color: var(--xoso-tt-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
  }

  .xoso-tt-modes {
    display: flex;
    justify-content: center;
    margin: 12px 12px 4px;
  }

  .xoso-tt-modes label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    margin: 0;
    padding: 6px 14px;
    border: 1px solid var(--xoso-tt-border);
    background: var(--xoso-tt-bg);
    color: var(--xoso-tt-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
  }

  .xoso-tt-modes label + label {
    margin-left: -1px;
  }

  .xoso-tt-modes label:first-child {
    border-radius: 4px 0 0 4px;
  }

  .xoso-tt-modes label:last-child {
    border-radius: 0 4px 4px 0;
  }

  .xoso-tt-modes input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-tt-modes label:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-tt-header);
    background: var(--xoso-tt-header);
    color: #fff;
  }

  .xoso-tt-modes label:has(input:focus-visible) {
    outline: 2px solid var(--xoso-tt-header);
    outline-offset: 2px;
  }

  .xoso-tt-panel[hidden] {
    display: none;
  }

  .xoso-tt-panel + .xoso-tt-panel {
    margin-top: 20px;
  }

  .xoso-tt-result .section-content {
    position: relative;
  }

  .xoso-tt-result .section-content:has(> .xoso-tt-count:not([hidden]))::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.72);
    pointer-events: none;
  }

  .xoso-tt-count {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 32%;
    transform: translate(-50%, -20%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(280px, 88%);
    margin: 0;
    padding: 16px 14px 12px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    color: #222;
    font-size: 16px;
    text-align: center;
  }

  .xoso-tt-count[hidden] {
    display: none;
  }

  .xoso-tt-count-label {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
  }

  .xoso-tt-count-clock {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .xoso-tt-count-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .xoso-tt-count-unit small {
    color: #222;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
  }

  .xoso-tt-count-sep {
    padding-top: 8px;
    color: var(--xoso-tt-header);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
  }

  .xoso-tt-count b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 48px;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--xoso-tt-header);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
  }

  .xoso-tt-status {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 8px auto 12px;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--xoso-tt-soft);
    color: var(--xoso-tt-meta);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
  }

  .xoso-tt-status.is-live {
    background: color-mix(in srgb, var(--xoso-tt-accent) 12%, #fff);
    color: var(--xoso-tt-accent);
  }

  .xoso-tt-status.is-waiting {
    background: color-mix(in srgb, var(--xoso-tt-wait) 12%, #fff);
    color: var(--xoso-tt-wait);
  }

  .xoso-tt-status.is-done {
    background: color-mix(in srgb, var(--xoso-tt-done) 12%, #fff);
    color: var(--xoso-tt-done);
  }

  .xoso-tt-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
  }

  .xoso-tt-status.is-live .xoso-tt-dot {
    animation: xoso-tt-pulse 1.4s ease-out infinite;
  }

  .xoso-tt-note-line {
    margin: 8px 0 14px;
    padding: 10px 14px;
    border-left: 4px solid var(--xoso-tt-header);
    background: var(--xoso-tt-soft);
    color: var(--xoso-tt-text);
  }

  .xoso-tt-note {
    margin: 0;
    padding: 0 12px 12px;
    color: var(--xoso-tt-meta);
    font-size: 13px;
  }

  .xoso-tt-board-head {
    background: var(--xoso-tt-header);
    color: var(--xoso-tt-title);
    text-align: center;
    padding: 8px 10px 6px;
    border: 1px solid var(--xoso-tt-border);
    border-bottom: 0;
  }

  .xoso-tt-board-head .xoso-tt-live-title {
    background: transparent;
    border: 0;
    padding: 0;
  }

  .xoso-tt-board-head .site-link {
    float: none;
    width: auto;
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
  }

  .xoso-tt-board-head .site-link a {
    color: var(--xoso-tt-link);
    text-decoration: underline;
  }

  .xoso-tt-board-head .site-link a + a::before {
    display: inline-block;
    padding: 0 4px;
    content: "\00a0»\00a0";
    color: var(--xoso-tt-link);
  }

  .xoso-tt-live-title,
  .xoso-tt-yesterday h3,
  .xoso-tt-latest h3 {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--xoso-tt-border);
    border-bottom: 0;
    background: var(--xoso-tt-header);
    color: var(--xoso-tt-title);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
  }

  .xoso-tt-yesterday,
  .xoso-tt-latest {
    margin-top: 18px;
  }

  .xoso-tt-board-wrap[hidden] {
    display: none !important;
  }

  &.is-wait-hidden,
  .xoso-tt-panel.is-wait-hidden,
  .xoso-tt-tabs.is-wait-hidden,
  .xoso-tt-modes.is-wait-hidden,
  .xoso-tt-banner.is-wait-hidden,
  .xoso-tt-note.is-wait-hidden,
  .site-link.is-wait-hidden {
    display: none !important;
  }

  .xoso-tt-table:not(.table-result),
  .xoso-tt-loto:not(.table-loto) {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--xoso-tt-bg);
  }

  .xoso-tt-table.xoso-tt-multi:not(.table-result) {
    table-layout: fixed;
  }

  .xoso-tt-table:not(.table-result) th,
  .xoso-tt-table:not(.table-result) td,
  .xoso-tt-loto:not(.table-loto) th,
  .xoso-tt-loto:not(.table-loto) td {
    padding: 4px;
    border: 1px solid var(--xoso-tt-border);
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
    vertical-align: middle;
  }

  .xoso-tt-table:not(.table-result) tbody tr:nth-child(2n),
  .xoso-tt-loto:not(.table-loto) tbody tr:nth-child(2n) {
    background: var(--xoso-tt-row-alt);
  }

  .xoso-tt-table:not(.table-result) thead th {
    padding: 8px 4px;
    background: var(--xoso-tt-soft);
    color: var(--xoso-tt-text);
    font-size: 15px;
    font-weight: 700;
  }

  .xoso-tt-table:not(.table-result) thead th:first-child,
  .xoso-tt-table:not(.table-result) tbody th {
    width: 54px;
  }

  .xoso-tt-table:not(.table-result) tbody th {
    color: var(--xoso-tt-meta);
    font-size: 15px;
    font-weight: 400;
  }

  .xoso-tt-nums {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 18px;
    min-height: 40px;
  }

  .xoso-tt-table:not(.table-result) .xoso-tt-num {
    display: inline-block;
    min-width: 2ch;
    padding: 0 4px;
    border-radius: 4px;
    color: var(--xoso-tt-number);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
  }

  .xoso-tt-table.xoso-tt-multi:not(.table-result) .xoso-tt-num {
    font-size: 22px;
  }

  .xoso-tt-table:not(.table-result) .xoso-tt-row-db .xoso-tt-num {
    font-size: 32px;
  }

  .xoso-tt-table.xoso-tt-multi:not(.table-result) .xoso-tt-row-db .xoso-tt-num {
    font-size: 26px;
  }

  .xoso-tt-table:not(.table-result) :where(.xoso-tt-row-db, .xoso-tt-row-g7, .xoso-tt-row-g8) .xoso-tt-num,
  .xoso-tt-loto:not(.table-loto) .red {
    color: var(--xoso-tt-accent);
  }

  .xoso-tt-table:not(.table-result) .xoso-tt-num.xoso-tt-empty {
    color: color-mix(in srgb, var(--xoso-tt-meta) 55%, transparent);
    font-weight: 400;
  }

  .xoso-tt-num.is-rolling,
  .xoso-tt-num.is-settling {
    padding: 0 2px;
    color: #fff;
    font-weight: 800;
  }

  .xoso-tt-result .section-header .xoso-tt-live-title {
    margin: 0;
    border: 0;
  }

  .xoso-tt-balls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 0;
    font-size: 0.86em;
    vertical-align: middle;
  }

  .xoso-tt-ball {
    --xoso-tt-ball-dark: color-mix(in srgb, var(--xoso-tt-accent) 50%, #000);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    background:
      radial-gradient(ellipse 34% 22% at 36% 22%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 100%),
      radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--xoso-tt-accent) 88%, #fff) 0, var(--xoso-tt-accent) 38%, color-mix(in srgb, var(--xoso-tt-accent) 62%, #000) 86%, var(--xoso-tt-ball-dark) 100%);
    box-shadow: inset 0 0 0 1px var(--xoso-tt-ball-dark), inset -2px -3px 5px rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-shadow: -1px -1px 0 var(--xoso-tt-ball-dark), 1px -1px 0 var(--xoso-tt-ball-dark), -1px 1px 0 var(--xoso-tt-ball-dark), 1px 1px 0 var(--xoso-tt-ball-dark);
    animation: xoso-tt-wobble 0.55s ease-in-out infinite alternate;
  }

  .xoso-tt-ball + .xoso-tt-ball {
    margin-left: 1px;
  }

  .xoso-tt-multi .xoso-tt-nums {
    container-type: inline-size;
  }

  .xoso-tt-multi .xoso-tt-balls {
    font-size: min(0.86em, calc((100cqi - 8px) / var(--xoso-tt-n, 6) / 1.5));
  }

  @container (max-width: 150px) {
    .xoso-tt-multi .xoso-tt-balls {
      max-width: calc((1.5em + 1px) * var(--xoso-tt-half, 3));
      font-size: min(0.86em, calc((100cqi - 8px) / var(--xoso-tt-half, 3) / 1.5));
    }
  }

  .xoso-tt-ball.is-locked {
    box-shadow: inset 0 0 0 1px var(--xoso-tt-ball-dark), inset -2px -3px 5px rgba(0, 0, 0, 0.28), 0 0 0 2px var(--xoso-tt-flash), 0 2px 3px rgba(0, 0, 0, 0.28);
    animation: xoso-tt-pop 0.3s ease-out;
  }

  .xoso-tt-num.is-pending {
    position: relative;
    color: transparent;
  }

  .xoso-tt-num.is-pending::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid color-mix(in srgb, var(--xoso-tt-header) 20%, transparent);
    border-top-color: var(--xoso-tt-header);
    border-radius: 50%;
    content: "";
    animation: xoso-tt-spin 0.8s linear infinite;
  }

  .xoso-tt-num.is-new {
    animation: xoso-tt-flash 2.4s ease-out;
  }

  .xoso-tt-codes .xoso-tt-nums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    min-height: 0;
  }

  .xoso-tt-code {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: max-content;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--xoso-tt-soft);
    color: var(--xoso-tt-accent);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }

  .xoso-tt-loto:not(.table-loto) thead th {
    padding: 7px 4px;
    background: var(--xoso-tt-header);
    color: var(--xoso-tt-title);
    font-size: 14px;
    font-weight: 700;
  }

  .xoso-tt-loto:not(.table-loto) tbody th {
    width: 44px;
    color: var(--xoso-tt-accent);
    font-weight: 700;
  }

  .xoso-tt-loto:not(.table-loto) td {
    padding: 6px 10px;
    color: var(--xoso-tt-number);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }

  @media (max-width: 720px) {
    .xoso-tt-title h1,
    .xoso-tt-title h2,
    .xoso-tt-title h3,
    .xoso-tt-title h4 {
      font-size: 18px;
    }

    .xoso-tt-tab {
      padding: 9px 4px 7px;
      font-size: 13px;
    }

    .xoso-tt-banner {
      font-size: 16px;
    }

    .xoso-tt-modes label {
      flex: 1 1 0;
      min-width: 0;
      padding: 6px 8px;
    }

    .xoso-tt-count {
      top: 28%;
      width: min(260px, 92%);
      padding: 12px 10px;
    }

    .xoso-tt-count b {
      min-width: 46px;
      height: 42px;
      font-size: 22px;
    }

    .xoso-tt-table:not(.table-result) thead th:first-child,
    .xoso-tt-table:not(.table-result) tbody th {
      width: 34px;
    }

    .xoso-tt-table:not(.table-result) .xoso-tt-nums {
      gap: 2px 10px;
      min-height: 34px;
    }

    .xoso-tt-table:not(.table-result) .xoso-tt-num {
      font-size: 21px;
    }

    .xoso-tt-table:not(.table-result) .xoso-tt-row-db .xoso-tt-num {
      font-size: 26px;
    }

    .xoso-tt-table.xoso-tt-multi:not(.table-result) .xoso-tt-num {
      font-size: 17px;
    }

    .xoso-tt-table.xoso-tt-multi:not(.table-result) .xoso-tt-row-db .xoso-tt-num {
      font-size: 19px;
    }
  }
}

/* Tên đài trong ô tiêu đề bảng trực tiếp: span thay h3 để không tạo heading trong bảng. */
.xoso-truc-tiep .table-result thead th .prize-city {
  display: block;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
  background: transparent;
  border: 0;
}

@keyframes xoso-tt-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes xoso-tt-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent);
  }

  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

@keyframes xoso-tt-wobble {
  from {
    transform: translateY(1px) rotate(-8deg);
  }

  to {
    transform: translateY(-1px) rotate(8deg);
  }
}

@keyframes xoso-tt-pop {
  0% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes xoso-tt-flash {
  0% {
    background: var(--xoso-tt-flash);
    box-shadow: 0 0 0 3px var(--xoso-tt-flash);
  }

  100% {
    background: transparent;
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xoso-truc-tiep .xoso-tt-num.is-pending::after,
  .xoso-truc-tiep .xoso-tt-ball,
  .xoso-truc-tiep .xoso-tt-ball.is-locked,
  .xoso-truc-tiep .xoso-tt-status.is-live .xoso-tt-dot {
    animation: none;
  }
}

.xoso-so-dau-duoi {
  --xoso-sdd-border: var(--xoso-color-border);
  --xoso-sdd-bg: #fff;
  --xoso-sdd-header: color-mix(in srgb, var(--xoso-sdd-border) 35%, #fff);
  --xoso-sdd-title: #222;
  --xoso-sdd-meta: var(--xoso-color-text);
  --xoso-sdd-link: var(--xoso-color-primary);
  --xoso-sdd-number: var(--xoso-color-accent);
  --xoso-sdd-accent: var(--xoso-color-primary);
  --xoso-sdd-soft: var(--xoso-sdd-header);
  --xoso-sdd-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-sdd-border);
  background: var(--xoso-sdd-bg);
  color: var(--xoso-sdd-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  &[data-region="mn"] .xoso-sdd-days,
  &[data-region="mt"] .xoso-sdd-days {
    display: none;
  }

  .xoso-sdd-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--xoso-sdd-border);
    background: var(--xoso-sdd-header);
  }

  .xoso-sdd-title h1,
  .xoso-sdd-title h2,
  .xoso-sdd-title h3,
  .xoso-sdd-title h4 {
    margin: 0;
    color: var(--xoso-sdd-title);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  .xoso-sdd-title a,
  .xoso-sdd-date a,
  .xoso-sdd-name a,
  .site-link a {
    color: var(--xoso-sdd-link);
    text-decoration: none;
  }

  .xoso-sdd-date a:hover,
  .xoso-sdd-name a:hover,
  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    content: "/\00a0";
    color: var(--xoso-sdd-meta);
  }

  .xoso-sdd-tabs,
  .xoso-sdd-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    list-style: none;
  }

  .xoso-sdd-tabs {
    border-bottom: 2px solid var(--xoso-sdd-accent);
  }

  .xoso-sdd-days {
    gap: 6px;
    padding: 8px 12px;
    background: var(--xoso-sdd-soft);
    border-bottom: 1px solid var(--xoso-sdd-border);
  }

  .xoso-sdd-tabs li,
  .xoso-sdd-days li {
    margin: 0;
  }

  .xoso-sdd-tab,
  .xoso-sdd-day {
    appearance: none;
    min-height: 0;
    margin: 0;
    border: 1px solid var(--xoso-sdd-border);
    background: var(--xoso-sdd-header);
    color: var(--xoso-sdd-title);
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
  }

  .xoso-sdd-tab {
    border-bottom: none;
  }

  .xoso-sdd-day {
    background: var(--xoso-sdd-bg);
  }

  .xoso-sdd-tab.is-active,
  .xoso-sdd-day.is-active {
    border-color: var(--xoso-sdd-accent);
    background: var(--xoso-sdd-accent);
    color: #fff;
  }

  .xoso-sdd-board {
    padding: 12px;
    transition: opacity 0.15s;
  }

  &.is-loading .xoso-sdd-board {
    opacity: 0.55;
    cursor: progress;
  }

  .xoso-sdd-panel[hidden] {
    display: none;
  }

  .xoso-sdd-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
  }

  .xoso-sdd-table th,
  .xoso-sdd-table td {
    border: 1px solid var(--xoso-sdd-border);
    padding: 8px 10px;
    vertical-align: middle;
    text-align: center;
  }

  .xoso-sdd-table th {
    background: var(--xoso-sdd-soft);
    color: var(--xoso-sdd-meta);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .xoso-sdd-mb th:nth-child(1),
  .xoso-sdd-mb td:nth-child(1) {
    width: 32%;
    text-align: left;
    white-space: nowrap;
  }

  .xoso-sdd-mb th:nth-child(2),
  .xoso-sdd-mb td:nth-child(2) {
    width: 40%;
  }

  .xoso-sdd-mb th:nth-child(3),
  .xoso-sdd-mb td:nth-child(3) {
    width: 28%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  .xoso-sdd-table tbody tr:nth-child(even),
  .xoso-sdd-mb tbody tr:nth-child(even) {
    background: var(--xoso-sdd-row-alt);
  }

  .xoso-sdd-g7 {
    letter-spacing: 0.04em;
  }

  .xoso-sdd-db {
    font-weight: 600;
  }

  .xoso-sdd-last {
    color: var(--xoso-sdd-number);
    font-weight: 700;
  }

  .xoso-sdd-empty,
  .xoso-sdd-notice {
    color: var(--xoso-sdd-meta);
  }

  .xoso-sdd-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: center;
  }

  .xoso-sdd-city {
    flex: 1 1 120px;
  }

  .xoso-sdd-name,
  .xoso-sdd-pair,
  .xoso-sdd-thu,
  .xoso-sdd-date {
    margin: 0;
  }

  .xoso-sdd-more {
    appearance: none;
    display: block;
    width: 100%;
    min-height: 0;
    margin: 12px 0 0;
    padding: 10px 14px;
    line-height: 1.3;
    border: 1px solid var(--xoso-sdd-accent);
    background: var(--xoso-sdd-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
  }

  .xoso-sdd-more:disabled {
    opacity: 0.45;
    cursor: default;
  }

  @media (max-width: 720px) {
    .xoso-sdd-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .xoso-sdd-tabs li {
      flex: 1 1 0;
      min-width: 0;
    }

    .xoso-sdd-tab {
      width: 100%;
      height: 100%;
      padding: 8px 6px;
    }

    .xoso-sdd-days {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .xoso-sdd-day {
      width: 100%;
      padding: 8px 4px;
    }

    .xoso-sdd-mb th:nth-child(1),
    .xoso-sdd-mb td:nth-child(1),
    .xoso-sdd-mb th:nth-child(2),
    .xoso-sdd-mb td:nth-child(2),
    .xoso-sdd-mb th:nth-child(3),
    .xoso-sdd-mb td:nth-child(3) {
      width: auto;
    }

    .xoso-sdd-mb th:nth-child(1),
    .xoso-sdd-mb td:nth-child(1) {
      white-space: normal;
    }
  }
}

.xoso-so-ket-qua {
  --xoso-skq-border: var(--xoso-color-border);
  --xoso-skq-bg: #fff;
  --xoso-skq-header: color-mix(in srgb, var(--xoso-skq-border) 35%, #fff);
  --xoso-skq-title: #222;
  --xoso-skq-meta: var(--xoso-color-text);
  --xoso-skq-link: var(--xoso-color-primary);
  --xoso-skq-number: var(--xoso-color-accent);
  --xoso-skq-accent: var(--xoso-color-primary);
  --xoso-skq-soft: var(--xoso-skq-header);
  --xoso-skq-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-skq-border);
  background: var(--xoso-skq-bg);
  color: var(--xoso-skq-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  &[data-region="mb"] .xoso-skq-province option[data-region="mn"],
  &[data-region="mb"] .xoso-skq-province option[data-region="mt"],
  &[data-region="mn"] .xoso-skq-province option[data-region="mb"],
  &[data-region="mn"] .xoso-skq-province option[data-region="mt"],
  &[data-region="mt"] .xoso-skq-province option[data-region="mb"],
  &[data-region="mt"] .xoso-skq-province option[data-region="mn"] {
    display: none;
  }

  &[data-view="kq"] .xoso-skq-loto,
  &[data-view="loto"] .xoso-skq-kq {
    display: none;
  }

  .xoso-skq-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--xoso-skq-header);
  }

  .xoso-skq-title h1,
  .xoso-skq-title h2,
  .xoso-skq-title h3,
  .xoso-skq-title h4 {
    margin: 0;
    color: var(--xoso-skq-title);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  .xoso-skq-title a,
  .xoso-skq-day-date,
  .site-link a {
    color: var(--xoso-skq-link);
    text-decoration: none;
  }

  .site-link a + a::before {
    padding: 0 3px;
    content: "/\00a0";
    color: var(--xoso-skq-meta);
  }

  .xoso-skq-tabs,
  .xoso-skq-ranges {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    list-style: none;
  }

  .xoso-skq-tabs {
    border-bottom: 2px solid var(--xoso-skq-accent);
  }

  .xoso-skq-ranges {
    gap: 6px;
    padding: 8px 12px;
    background: var(--xoso-skq-soft);
    border-bottom: 1px solid var(--xoso-skq-border);
  }

  .xoso-skq-tabs li,
  .xoso-skq-ranges li {
    margin: 0;
  }

  .xoso-skq-tab,
  .xoso-skq-range {
    appearance: none;
    min-height: 0;
    margin: 0;
    border: 1px solid var(--xoso-skq-border);
    background: var(--xoso-skq-header);
    color: var(--xoso-skq-title);
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
  }

  .xoso-skq-tab {
    border-bottom: none;
  }

  .xoso-skq-range {
    background: var(--xoso-skq-bg);
  }

  a.xoso-skq-tab,
  a.xoso-skq-range {
    display: inline-block;
    text-decoration: none;
    box-sizing: border-box;
  }

  .xoso-skq-tab.is-active,
  .xoso-skq-range.is-active {
    background: var(--xoso-skq-accent);
    border-color: var(--xoso-skq-accent);
    color: #fff;
  }

  .xoso-skq-form,
  .xoso-skq-view {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    padding: 12px;
  }

  .xoso-skq-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--xoso-skq-meta);
    font-size: 13px;
  }

  .xoso-skq-province,
  .xoso-skq-weekday,
  .xoso-skq-from {
    min-width: 180px;
    height: auto;
    margin: 0;
    border: 1px solid var(--xoso-skq-border);
    background: var(--xoso-skq-bg);
    color: var(--xoso-skq-title);
    padding: 8px 10px;
    font: inherit;
    line-height: 1.3;
    box-shadow: none;
  }

  .xoso-skq-view {
    align-items: center;
  }

  .xoso-skq-view-label {
    flex: 1 0 100%;
    color: var(--xoso-skq-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-skq-view-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-skq-border);
    background: var(--xoso-skq-bg);
    color: var(--xoso-skq-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-skq-view-item + .xoso-skq-view-item {
    margin-left: -1px;
  }

  .xoso-skq-view-item:first-of-type {
    border-radius: 4px 0 0 4px;
  }

  .xoso-skq-view-item:last-of-type {
    border-radius: 0 4px 4px 0;
  }

  .xoso-skq-view-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-skq-view-item:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-skq-accent);
    background: var(--xoso-skq-accent);
    color: #fff;
  }

  .xoso-skq-board {
    padding: 12px;
    transition: opacity 0.15s;
  }

  &.is-loading .xoso-skq-board {
    opacity: 0.55;
    cursor: progress;
  }

  .xoso-skq-day + .xoso-skq-day {
    margin-top: 16px;
  }

  .xoso-skq-day.is-whole .xoso-skq-split {
    flex-direction: column;
  }

  .xoso-skq-day.is-whole .xoso-skq-kq,
  .xoso-skq-day.is-whole .xoso-skq-loto {
    flex: 1 1 auto;
    overflow-x: auto;
  }

  .xoso-skq-day.is-whole .xoso-skq-prizes th,
  .xoso-skq-day.is-whole .xoso-skq-heads th {
    width: auto;
  }

  .xoso-skq-day.is-whole .xoso-skq-prizes tbody th,
  .xoso-skq-day.is-whole .xoso-skq-heads tbody th {
    width: 52px;
  }

  .xoso-skq-heads .red {
    color: var(--xoso-skq-number);
    font-weight: 700;
  }

  .xoso-skq-day-head {
    margin: 0 0 8px;
    font-size: 1.05rem;
  }

  .xoso-skq-split {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .xoso-skq-kq {
    flex: 1 1 280px;
    min-width: 0;
  }

  .xoso-skq-loto {
    flex: 0 0 220px;
  }

  .xoso-skq-prizes,
  .xoso-skq-heads {
    width: 100%;
    border-collapse: collapse;
  }

  .xoso-skq-prizes th,
  .xoso-skq-prizes td,
  .xoso-skq-heads th,
  .xoso-skq-heads td {
    border: 1px solid var(--xoso-skq-border);
    padding: 4px 8px;
    text-align: center;
  }

  .xoso-skq-prizes th,
  .xoso-skq-heads th {
    width: 52px;
    background: var(--xoso-skq-soft);
  }

  .xoso-skq-prizes tbody tr:nth-child(even),
  .xoso-skq-heads tbody tr:nth-child(even) {
    background: var(--xoso-skq-row-alt);
  }

  .xoso-skq-heads td {
    text-align: left;
  }

  .xoso-skq-num {
    display: inline-block;
    margin: 0 6px 0 0;
  }

  .xoso-skq-hit,
  .xoso-skq-prize-db .xoso-skq-num,
  .xoso-skq-prize-g8 .xoso-skq-num {
    color: var(--xoso-skq-number);
    font-weight: 700;
  }

  .xoso-skq-notice,
  .xoso-skq-empty {
    color: var(--xoso-skq-meta);
  }

  @media (max-width: 720px) {
    .xoso-skq-header,
    .xoso-skq-split {
      flex-direction: column;
      align-items: stretch;
    }

    .xoso-skq-loto {
      flex-basis: auto;
    }

    .xoso-skq-tabs li {
      flex: 1 1 0;
      min-width: 0;
    }

    .xoso-skq-tab {
      width: 100%;
      height: 100%;
      padding: 8px 6px;
    }

    .xoso-skq-ranges {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .xoso-skq-range {
      width: 100%;
      padding: 8px 4px;
    }

    .xoso-skq-field {
      flex: 1 1 100%;
    }

    .xoso-skq-province,
    .xoso-skq-weekday,
    .xoso-skq-from {
      width: 100%;
      min-width: 0;
      font-size: 16px;
    }
  }
}

.xoso-mo-thuong,
.xoso-lich-xo-so {
  --xoso-g2-header: var(--xoso-color-primary);
  --xoso-g2-title: #222;
  --xoso-g2-border: var(--xoso-color-border);
  --xoso-g2-meta: var(--xoso-color-text);
  --xoso-g2-link: var(--xoso-color-primary);
  --xoso-g2-bg: #fff;
  --xoso-g2-number: var(--xoso-color-accent);
  --xoso-g2-accent: var(--xoso-color-primary);
  --xoso-g2-soft: color-mix(in srgb, var(--xoso-g2-border) 35%, #fff);
  --xoso-g2-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-g2-border);
  background: var(--xoso-g2-bg);
  color: var(--xoso-g2-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  .xoso-g2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--xoso-g2-border);
    background: var(--xoso-g2-soft);
  }

  .xoso-g2-title,
  .xoso-g2-title a,
  .xoso-g2-schedule-title {
    color: var(--xoso-g2-title);
  }

  .xoso-g2-title h1,
  .xoso-g2-title h2,
  .xoso-g2-title h3,
  .xoso-g2-title h4,
  .xoso-g2-schedule-title {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  .xoso-g2-schedule-title {
    padding: 12px 12px 0;
    font-size: 16px;
  }

  .site-link a {
    color: var(--xoso-g2-link);
    text-decoration: none;
  }

  .site-link a + a::before {
    content: "/\00a0";
    margin: 0 3px;
    color: var(--xoso-g2-meta);
  }

  .xoso-g2-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    list-style: none;
    border-bottom: 2px solid var(--xoso-g2-accent);
  }

  .xoso-g2-tabs li {
    margin: 0;
  }

  .xoso-g2-tab {
    appearance: none;
    border: 1px solid var(--xoso-g2-border);
    border-bottom: none;
    background: var(--xoso-g2-soft);
    color: var(--xoso-g2-title);
    padding: 8px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
  }

  .xoso-g2-tab.is-active {
    background: var(--xoso-g2-accent);
    border-color: var(--xoso-g2-accent);
    color: #fff;
  }

  .xoso-g2-intro,
  .xoso-g2-empty,
  .xoso-g2-note {
    margin: 12px;
    color: var(--xoso-g2-meta);
  }

  .xoso-g2-empty {
    white-space: pre-wrap;
    background: var(--xoso-g2-soft);
  }

  .xoso-g2-scroll {
    overflow-x: auto;
    margin: 12px;
  }

  .xoso-g2-schedule-title + .xoso-g2-scroll {
    margin-top: 8px;
  }

  .xoso-g2-intro + .xoso-g2-scroll {
    margin-top: 0;
  }

  .xoso-g2-today,
  .xoso-g2-week {
    width: 100%;
    border-collapse: collapse;
  }

  .xoso-g2-today th,
  .xoso-g2-today td,
  .xoso-g2-week th,
  .xoso-g2-week td {
    border: 1px solid var(--xoso-g2-border);
    padding: 8px 10px;
    text-align: center;
    vertical-align: top;
    text-transform: none;
  }

  .xoso-g2-today thead th,
  .xoso-g2-week thead th,
  .xoso-g2-week tbody th {
    background: var(--xoso-g2-header);
    color: #fff;
  }

  .xoso-g2-week tbody th {
    width: 16%;
    text-align: left;
    white-space: nowrap;
  }

  .xoso-g2-today tbody tr:nth-child(even) td,
  .xoso-g2-week tbody tr:nth-child(even) td {
    background: var(--xoso-g2-row-alt);
  }

  .xoso-g2-today a,
  .xoso-g2-week a {
    color: var(--xoso-g2-link);
  }

  .xoso-g2-hours {
    color: var(--xoso-g2-number);
    font-weight: 700;
  }

  .xoso-g2-city {
    display: block;
    line-height: 1.3;
  }

  .xoso-g2-city + .xoso-g2-city {
    margin-top: 6px;
  }

  @media (max-width: 720px) {
    .xoso-g2-week th,
    .xoso-g2-week td {
      padding: 6px 4px;
      font-size: 14px;
    }
  }

  .xoso-g2-boards {
    margin: 8px 12px 12px;
  }

  .xoso-g2-boards > section {
    margin-top: 16px;
  }
}

.xoso-form-thong-ke {
  --xoso-ftk-header: color-mix(in srgb, var(--xoso-ftk-border) 35%, #fff);
  --xoso-ftk-title: #222;
  --xoso-ftk-border: var(--xoso-color-border);
  --xoso-ftk-meta: var(--xoso-color-text);
  --xoso-ftk-link: var(--xoso-color-primary);
  --xoso-ftk-bg: #fff;
  --xoso-ftk-accent: var(--xoso-color-primary);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-ftk-border);
  background: var(--xoso-ftk-bg);
  color: var(--xoso-ftk-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  .xoso-ftk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--xoso-ftk-border);
    background: var(--xoso-ftk-header);
    color: var(--xoso-ftk-title);
  }

  .xoso-ftk-title h1,
  .xoso-ftk-title h2,
  .xoso-ftk-title h3,
  .xoso-ftk-title h4 {
    margin: 0;
    color: var(--xoso-ftk-title);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  .xoso-ftk-header a {
    color: var(--xoso-ftk-link);
    text-decoration: none;
  }

  .xoso-form-error {
    margin: 0 12px 12px;
    color: var(--xoso-ftk-meta);
    font-weight: 700;
  }

  .site-link a + a::before {
    content: "/\00a0";
    color: var(--xoso-ftk-meta);
  }

  .xoso-ftk-body {
    padding: 12px;
  }

  &.is-loading .xoso-ftk-table {
    opacity: 0.55;
    cursor: progress;
  }

  .xoso-ftk-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 10px 12px;
    align-items: end;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--xoso-ftk-border);
    background: var(--xoso-ftk-bg);
  }

  .xoso-ftk-field,
  .xoso-ftk-choice,
  .xoso-ftk-submit {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .xoso-ftk-choice {
    grid-column: 1 / -1;
  }

  .xoso-ftk-choice {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  .xoso-ftk-field label,
  .xoso-ftk-choice span,
  .xoso-ftk-radio {
    color: var(--xoso-ftk-meta);
    text-transform: none;
  }

  .xoso-ftk-field label,
  .xoso-ftk-choice span {
    flex: 1 0 100%;
    font-weight: 700;
  }

  .xoso-ftk-field input,
  .xoso-ftk-field select,
  .xoso-ftk-field .xoso-mien-one {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    /* Không dùng --xoso-ftk-title (header cam thường trắng) — chữ select phải đọc được. */
    color: #222 !important;
    font: inherit;
    font-size: 14px;
    line-height: normal;
    text-transform: none;
    appearance: none;
  }

  .xoso-ftk-field input[type="number"] {
    -moz-appearance: textfield;
  }

  .xoso-ftk-field input[type="number"]::-webkit-outer-spin-button,
  .xoso-ftk-field input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
  }

  .xoso-ftk-field select {
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.2.0 2.3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
  }

  .xoso-ftk-field .xoso-mien-one {
    display: flex;
    align-items: center;
    line-height: 1.3;
    font-size: 0.97em;

    @media (max-width: 849px) {
      font-size: 1rem;
    }
  }

  .xoso-ftk-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 12px;
    border: 1px solid var(--xoso-ftk-border);
    background: var(--xoso-ftk-bg);
    /* Không dùng --xoso-ftk-title: header cam thường trắng → radio inactive mất chữ. */
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    user-select: none;
  }

  .xoso-ftk-radio + .xoso-ftk-radio {
    margin-left: -1px;
  }

  .xoso-ftk-radio:first-of-type {
    border-radius: 4px 0 0 4px;
  }

  .xoso-ftk-radio:last-of-type {
    border-radius: 0 4px 4px 0;
  }

  .xoso-ftk-radio input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .xoso-ftk-radio:has(input:checked) {
    z-index: 1;
    border-color: var(--xoso-ftk-accent);
    background: var(--xoso-ftk-accent);
    color: #fff;
  }

  .xoso-ftk-submit {
    justify-content: flex-end;
  }

  .xoso-ftk-submit button {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 140px;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--xoso-ftk-accent);
    border-radius: 3px;
    background: var(--xoso-ftk-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-transform: none;
    cursor: pointer;
  }

  .xoso-ftk-province-pills {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--xoso-ftk-border);
    background: #fff8ef;
  }

  .xoso-ftk-pill {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
  }

  a.xoso-ftk-pill:hover,
  button.xoso-ftk-pill:hover {
    border-color: var(--xoso-ftk-accent);
    color: var(--xoso-ftk-accent);
  }

  .xoso-ftk-pill.is-active {
    border-color: var(--xoso-ftk-accent);
    background: var(--xoso-ftk-accent);
    color: #fff;
  }

  .xoso-ftk-field-rolls {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .xoso-ftk-rolls-label {
    flex: 0 0 auto;
    font-weight: 600;
    color: #333;
    min-width: 64px;
  }

  .xoso-ftk-roll-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex: 1 1 auto;
  }

  .xoso-ftk-roll-pills .xoso-ftk-pill {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    gap: 0;
  }

  .xoso-ftk-roll-pills .xoso-ftk-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
  }

  .xoso-ftk-day-stepper {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 40px;
  }

  .xoso-ftk-day-stepper input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    text-align: center;
    height: 40px;
    line-height: normal;
    color: #222 !important;
  }

  .xoso-ftk-day-btn {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #bbb;
    background: #fff;
    color: var(--xoso-ftk-accent);
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .xoso-ftk-day-btn:first-child {
    border-right: 0;
    border-radius: 3px 0 0 3px;
  }

  .xoso-ftk-day-btn:last-child {
    border-left: 0;
    border-radius: 0 3px 3px 0;
  }

  .xoso-ftk-number-picker {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .xoso-ftk-number-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .xoso-ftk-quick-btn {
    appearance: none;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid var(--xoso-ftk-border);
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
  }

  .xoso-ftk-quick-btn:hover {
    border-color: var(--xoso-ftk-accent);
    color: var(--xoso-ftk-accent);
  }

  .xoso-ftk-number-grid {
    display: grid;
    grid-template-columns: 72px repeat(10, minmax(0, 1fr));
    border: 1px solid var(--xoso-ftk-border);
    border-bottom: 0;
    border-right: 0;
    background: #fff;
  }

  .xoso-ftk-digit-cell,
  .xoso-ftk-number-cell {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    border-right: 1px solid var(--xoso-ftk-border);
    border-bottom: 1px solid var(--xoso-ftk-border);
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
  }

  .xoso-ftk-digit-cell {
    appearance: none;
    padding: 4px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .xoso-ftk-head-cell {
    border-right-color: var(--xoso-ftk-border);
  }

  .xoso-ftk-corner-cell {
    pointer-events: none;
    background: #f7f7f7;
  }

  .xoso-ftk-number-cell {
    position: relative;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
  }

  .xoso-ftk-number-cell input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .xoso-ftk-number-check {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #d77b48;
    border-radius: 2px;
    background: #fff;
  }

  .xoso-ftk-number-cell:has(input:checked) .xoso-ftk-number-check {
    border-color: var(--xoso-ftk-accent);
    background: var(--xoso-ftk-accent);
    box-shadow: inset 0 0 0 2px #fff;
  }

  .xoso-ftk-number-cell:has(input:checked) {
    background: #fff7f0;
  }

  .xoso-ftk-field input:disabled,
  .xoso-ftk-field select:disabled,
  .xoso-ftk-radio input:disabled {
    opacity: 0.7;
  }

  @media (max-width: 849px) {
    .xoso-ftk-form {
      grid-template-columns: 1fr;
    }

    .xoso-ftk-number-picker {
      overflow-x: auto;
    }

    .xoso-ftk-number-grid {
      min-width: 520px;
      grid-template-columns: 64px repeat(10, minmax(0, 1fr));
    }

    .xoso-ftk-submit {
      grid-column: 1 / -1;
    }

    .xoso-ftk-submit button {
      width: 100%;
    }
  }
}

.xoso-form-dac-biet {
  --xoso-fdb-header: color-mix(in srgb, var(--xoso-fdb-border) 35%, #fff);
  --xoso-fdb-title: #222;
  --xoso-fdb-border: var(--xoso-color-border);
  --xoso-fdb-meta: var(--xoso-color-text);
  --xoso-fdb-link: var(--xoso-color-primary);
  --xoso-fdb-bg: #fff;
  --xoso-fdb-accent: var(--xoso-color-primary);
  --xoso-fdb-field: #222;
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-fdb-border);
  background: var(--xoso-fdb-bg);
  /* Body/form dùng meta — title_color trắng chỉ cho header, không inherit xuống select. */
  color: var(--xoso-fdb-meta);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  .xoso-fdb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--xoso-fdb-border);
    background: var(--xoso-fdb-header);
    color: var(--xoso-fdb-title);
  }

  .xoso-fdb-title h1,
  .xoso-fdb-title h2,
  .xoso-fdb-title h3,
  .xoso-fdb-title h4 {
    margin: 0;
    color: var(--xoso-fdb-title);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
  }

  .xoso-fdb-header a {
    color: var(--xoso-fdb-link);
    text-decoration: none;
  }

  .xoso-form-error {
    margin: 0 12px 12px;
    color: var(--xoso-fdb-meta);
    font-weight: 700;
  }

  .site-link a + a::before {
    content: "/\00a0";
    color: var(--xoso-fdb-meta);
  }

  .xoso-fdb-body {
    padding: 12px;
  }

  &.is-loading .xoso-fdb-table {
    opacity: 0.55;
    cursor: progress;
  }

  .xoso-fdb-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--xoso-fdb-border);
    background: var(--xoso-fdb-bg);
  }

  .xoso-fdb-field,
  .xoso-fdb-submit {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .xoso-fdb-submit {
    justify-content: flex-end;
  }

  .xoso-fdb-field label {
    color: var(--xoso-fdb-meta);
    font-weight: 700;
    text-transform: none;
  }

  .xoso-fdb-field input,
  .xoso-fdb-field select,
  .xoso-fdb-field .xoso-mien-one {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--xoso-fdb-border);
    background: #fff;
    /* Cố định chữ tối — không kế thừa title_color trắng của header. */
    color: #222 !important;
    -webkit-text-fill-color: #222;
    text-transform: none;
  }

  .xoso-fdb-field .xoso-mien-one {
    display: flex;
    align-items: center;
    height: 2.507em;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.97em;

    @media (max-width: 849px) {
      font-size: 1rem;
    }
  }

  .xoso-fdb-field input:disabled,
  .xoso-fdb-field select:disabled {
    opacity: 1;
    color: #555;
    -webkit-text-fill-color: #555;
    background: #f5f5f5;
  }

  .xoso-fdb-submit button {
    appearance: none;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--xoso-fdb-accent);
    background: var(--xoso-fdb-accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: none;
    cursor: pointer;
  }

  @media (max-width: 849px) {
    .xoso-fdb-form {
      grid-template-columns: 1fr;
    }

    .xoso-fdb-submit {
      grid-column: 1 / -1;
    }

    .xoso-fdb-submit button {
      width: 100%;
    }
  }
}

.xoso-co-cau-giai-thuong {
  --xoso-cc-border: var(--xoso-color-border);
  --xoso-cc-bg: #fff;
  --xoso-cc-header: color-mix(in srgb, var(--xoso-cc-border) 35%, #fff);
  --xoso-cc-title: #222;
  --xoso-cc-meta: var(--xoso-color-text);
  --xoso-cc-link: var(--xoso-color-primary);
  --xoso-cc-number: var(--xoso-cc-link);
  --xoso-cc-accent: var(--xoso-cc-number);
  --xoso-cc-soft: var(--xoso-color-panel);
  --xoso-cc-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-cc-border);
  background: var(--xoso-cc-bg);
  color: var(--xoso-cc-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-cc-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-cc-border);
    background: var(--xoso-cc-header);
  }

  .xoso-cc-title h1,
  .xoso-cc-title h2,
  .xoso-cc-title h3,
  .xoso-cc-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-cc-title);
  }

  .xoso-cc-title a {
    color: var(--xoso-cc-title);
    text-decoration: none;
  }

  .xoso-cc-title a:hover {
    color: var(--xoso-cc-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-cc-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-cc-meta);
  }

  .xoso-cc-draw {
    color: var(--xoso-cc-meta);
  }

  .site-link a {
    color: var(--xoso-cc-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-cc-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-cc-body {
    padding: 8px 12px 12px;
  }

  .xoso-cc-block + .xoso-cc-block {
    margin-top: 16px;
  }

  .xoso-cc-caption {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--xoso-cc-title);
  }

  .xoso-cc-structure-meta {
    margin: 0 0 8px;
    padding: 6px 10px;
    background: var(--xoso-cc-soft);
    color: var(--xoso-cc-meta);
    font-size: 14px;
  }

  .xoso-cc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .xoso-cc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-cc-bg);
  }

  .xoso-cc-table th,
  .xoso-cc-table td {
    padding: 8px 10px;
    border: 1px solid var(--xoso-cc-border);
    text-align: center;
    vertical-align: middle;
  }

  .xoso-cc-table thead th {
    background: var(--xoso-cc-header);
    color: var(--xoso-cc-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-cc-table th:first-child,
  .xoso-cc-table td:first-child {
    text-align: left;
  }

  .xoso-cc-table tbody tr:nth-child(even) {
    background: var(--xoso-cc-row-alt);
  }

  .xoso-cc-name {
    font-weight: 600;
  }

  .xoso-cc-num,
  .xoso-cc-money {
    color: var(--xoso-cc-accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
}

.xoso-ky-hieu-dac-biet {
  --xoso-kh-border: var(--xoso-color-border);
  --xoso-kh-bg: #fff;
  --xoso-kh-header: color-mix(in srgb, var(--xoso-kh-border) 35%, #fff);
  --xoso-kh-title: #222;
  --xoso-kh-meta: var(--xoso-color-text);
  --xoso-kh-link: var(--xoso-color-primary);
  --xoso-kh-code: var(--xoso-kh-link);
  --xoso-kh-accent: var(--xoso-kh-code);
  --xoso-kh-soft: #f1f5f9;
  --xoso-kh-row-alt: var(--xoso-color-panel);
  width: 100%;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-kh-border);
  background: var(--xoso-kh-bg);
  color: var(--xoso-kh-title);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-note {
    margin: 0;
    padding: 16px;
    text-align: center;
    color: #333;
  }

  .xoso-kh-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--xoso-kh-border);
    background: var(--xoso-kh-header);
  }

  .xoso-kh-title h1,
  .xoso-kh-title h2,
  .xoso-kh-title h3,
  .xoso-kh-title h4 {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-kh-title);
  }

  .xoso-kh-title a {
    color: var(--xoso-kh-title);
    text-decoration: none;
  }

  .xoso-kh-title a:hover {
    color: var(--xoso-kh-link);
    text-decoration: underline;
  }

  .xoso-title-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
  }

  .xoso-kh-meta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-left: auto;
    font-size: 14px;
    color: var(--xoso-kh-meta);
  }

  .xoso-kh-draw {
    color: var(--xoso-kh-meta);
  }

  .site-link a {
    color: var(--xoso-kh-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-link a:hover {
    text-decoration: underline;
  }

  .site-link .xoso-link-mirror,
  .site-link content {
    display: inline;
  }

  .site-link a + a::before {
    padding: 0 3px;
    color: var(--xoso-kh-meta);
    content: "/\00a0";
    display: inline-block;
    font-weight: 400;
  }

  .xoso-kh-body {
    padding: 8px 12px 12px;
  }

  .xoso-kh-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .xoso-kh-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--xoso-kh-bg);
  }

  .xoso-kh-table th,
  .xoso-kh-table td {
    padding: 8px 10px;
    border: 1px solid var(--xoso-kh-border);
    text-align: left;
    vertical-align: middle;
  }

  .xoso-kh-table thead th {
    background: var(--xoso-kh-header);
    color: var(--xoso-kh-meta);
    font-size: 13px;
    font-weight: 700;
  }

  .xoso-kh-table tbody tr:nth-child(even) {
    background: var(--xoso-kh-row-alt);
  }

  .xoso-kh-date {
    white-space: nowrap;
    font-weight: 600;
    width: 28%;
  }

  .xoso-kh-date a {
    color: var(--xoso-kh-link);
    text-decoration: none;
  }

  .xoso-kh-date a:hover {
    text-decoration: underline;
  }

  .xoso-kh-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .xoso-kh-code {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 3.2em;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--xoso-kh-border) 70%, #fff);
    background: var(--xoso-kh-soft);
    line-height: 1.2;
  }

  .xoso-kh-code-text {
    color: var(--xoso-kh-accent);
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .xoso-kh-code-meta {
    display: flex;
    gap: 4px;
    color: var(--xoso-kh-meta);
    font-size: 11px;
  }

  .xoso-kh-table-rows .xoso-kh-code-text,
  .xoso-kh-table-rows .xoso-kh-prefix,
  .xoso-kh-table-rows .xoso-kh-suffix {
    text-align: center;
    font-weight: 700;
    color: var(--xoso-kh-accent);
  }

  .xoso-kh-table-rows .xoso-kh-date {
    text-align: left;
    color: var(--xoso-kh-title);
    font-weight: 600;
  }
}

.xoso-live-banner {
  --xoso-lb-bg: #ffe4c4;
  --xoso-lb-text: #222;
  --xoso-lb-btn-bg: var(--xoso-color-primary);
  --xoso-lb-btn-text: #fff;
  --xoso-lb-accent: var(--xoso-color-accent);
  --xoso-lb-border: transparent;
  width: 100%;
  margin: 0 0 16px;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-live-banner-panel {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--xoso-lb-border);
    background: var(--xoso-lb-bg);
    color: var(--xoso-lb-text);
    text-align: center;
  }

  .xoso-live-banner-panel[hidden] {
    display: none;
  }

  .xoso-lb-title {
    font-weight: 700;
    color: var(--xoso-lb-text);
  }

  .xoso-lb-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--xoso-lb-btn-bg);
    color: var(--xoso-lb-btn-text);
    font-weight: 700;
    text-decoration: none;
    animation: xoso-lb-btn 0.7s infinite;
  }

  .xoso-lb-btn:hover {
    color: var(--xoso-lb-btn-text);
    text-decoration: none;
  }

  @media (max-width: 849px) {
    .xoso-live-banner-panel {
      padding: 6px 8px;
      background: color-mix(in srgb, var(--xoso-lb-bg) 70%, #fff);
    }
  }
}

@keyframes xoso-lb-btn {
  0%,
  100% {
    background: var(--xoso-lb-btn-bg);
    color: var(--xoso-lb-btn-text);
  }

  50% {
    background: var(--xoso-lb-accent);
    color: #fff;
  }
}

.xoso-region-nav {
  --xoso-rn-bg: var(--xoso-color-row-alt);
  --xoso-rn-border: var(--xoso-color-border);
  --xoso-rn-text: #333;
  --xoso-rn-link: var(--xoso-color-primary);
  --xoso-rn-active-bg: var(--xoso-color-primary);
  --xoso-rn-active-text: #fff;
  --xoso-rn-hover: var(--xoso-color-primary);
  width: 100%;
  margin: 0 0 16px;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-rn-list {
    display: table;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--xoso-rn-border);
    background: var(--xoso-rn-bg);
    table-layout: fixed;
  }

  .xoso-rn-list li {
    display: table-cell;
    border-left: 1px solid var(--xoso-rn-border);
    text-align: center;
    vertical-align: middle;
  }

  .xoso-rn-list li.is-first,
  .xoso-rn-list li:first-child {
    border-left: 0;
  }

  .xoso-rn-list a {
    display: block;
    padding: 8px 6px;
    color: var(--xoso-rn-link);
    font-weight: 700;
    text-decoration: none;
  }

  .xoso-rn-list a:hover {
    color: var(--xoso-rn-hover);
    text-decoration: none;
  }

  .xoso-rn-list a.active {
    color: var(--xoso-rn-active-text);
    background: var(--xoso-rn-active-bg);
  }

  &.xoso-rn-panel .xoso-rn-list {
    background: #fff;
  }

  &.xoso-rn-panel .xoso-rn-list a:not(.active) {
    color: var(--xoso-rn-text);
  }

  @media (max-width: 849px) {
    .xoso-rn-list {
      display: flex;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      table-layout: auto;
    }

    .xoso-rn-list li {
      display: block;
      flex: 1 0 auto;
      min-width: 5.5em;
    }
  }
}

.xoso-links-loto {
  --xoso-ll-bg: transparent;
  --xoso-ll-border: var(--xoso-color-border);
  --xoso-ll-text: #333;
  --xoso-ll-link: var(--xoso-color-primary);
  --xoso-ll-hover: var(--xoso-color-primary);
  --xoso-ll-active-bg: var(--xoso-color-primary);
  --xoso-ll-active-text: #fff;
  --xoso-ll-hot-bg: var(--xoso-color-accent);
  --xoso-ll-hot-text: #fff;
  --xoso-ll-title: #222;
  width: 100%;
  margin: 0 0 16px;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--xoso-ll-text);

  .xoso-ll-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--xoso-ll-title);
  }

  .xoso-ll-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    background: var(--xoso-ll-bg);
    box-sizing: border-box;
  }

  .xoso-ll-grid .xoso-ll-item {
    position: relative;
    box-sizing: border-box;
    width: 50%;
    padding: 6px 0 6px 28px;
    color: var(--xoso-ll-link);
    font-weight: 600;
    text-decoration: none;
  }

  &.xoso-ll-cols-1 .xoso-ll-grid .xoso-ll-item {
    width: 100%;
  }

  &.xoso-ll-cols-3 .xoso-ll-grid .xoso-ll-item {
    width: 33.333%;
  }

  &.xoso-ll-cols-4 .xoso-ll-grid .xoso-ll-item {
    width: 25%;
  }

  .xoso-ll-grid .xoso-ll-item:hover {
    color: var(--xoso-ll-hover);
    text-decoration: none;
  }

  .xoso-ll-grid .xoso-ll-item--hot::before {
    content: attr(data-hot);
    position: absolute;
    left: 0;
    top: 8px;
    background: var(--xoso-ll-hot-bg);
    color: var(--xoso-ll-hot-text);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    padding: 0 3px;
    border-radius: 2px;
  }

  .xoso-ll-menu {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin: 0;
    padding: 0;
    border: 1px solid var(--xoso-ll-border);
    background: var(--xoso-color-row-alt);
    box-sizing: border-box;
  }

  .xoso-ll-menu .xoso-ll-item {
    display: table-cell;
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
    color: var(--xoso-ll-link);
    font-weight: 700;
    text-decoration: none;
    border-left: 1px solid var(--xoso-ll-border);
    background: var(--xoso-ll-bg, var(--xoso-color-row-alt));
  }

  .xoso-ll-menu .xoso-ll-item:first-child {
    border-left: 0;
  }

  .xoso-ll-menu .xoso-ll-item:hover {
    color: var(--xoso-ll-hover);
    text-decoration: none;
  }

  .xoso-ll-menu .xoso-ll-item.active {
    color: var(--xoso-ll-active-text);
    background: var(--xoso-ll-active-bg);
  }

  @media (max-width: 849px) {
    &.xoso-ll-cols-3 .xoso-ll-grid .xoso-ll-item,
    &.xoso-ll-cols-4 .xoso-ll-grid .xoso-ll-item {
      width: 50%;
    }

    .xoso-ll-menu {
      display: flex;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      table-layout: auto;
    }

    .xoso-ll-menu .xoso-ll-item {
      display: block;
      flex: 1 0 auto;
      min-width: 5.5em;
    }
  }
}

.xoso-links-statistic {
  --xoso-ls-heading: var(--xoso-color-text);
  --xoso-ls-heading-bg: var(--xoso-color-primary);
  --xoso-ls-link: var(--xoso-color-primary);
  --xoso-ls-hover: var(--xoso-color-primary);
  --xoso-ls-bullet: var(--xoso-color-muted);
  --xoso-ls-hot-bg: var(--xoso-color-accent);
  --xoso-ls-hot-text: #fff;
  --xoso-ls-bg: transparent;
  width: 100%;
  margin: 0 0 16px;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-ls-group {
    width: 100%;
    clear: both;
  }

  .xoso-ls-group + .xoso-ls-group {
    margin-top: 6px;
  }

  .xoso-ls-heading {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--xoso-ls-heading);
  }

  .xoso-ls-title-sta {
    margin: 0;
    padding: 8px 12px;
    background: var(--xoso-ls-heading-bg);
    color: #fff;
    font-weight: 700;
  }

  .xoso-ls-list {
    width: 100%;
    margin: 0;
    padding: 8px 16px 12px;
    list-style: none;
    background: var(--xoso-ls-bg);
    box-sizing: border-box;
  }

  .xoso-ls-list li {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 5px 0 5px 16px;
    box-sizing: border-box;
  }

  .xoso-ls-list--cols-2 li {
    float: left;
    width: 50%;
  }

  .xoso-ls-list--cols-2::after {
    content: "";
    display: block;
    clear: both;
  }

  /* UX Builder: cha c� class cols-2, list con kh�ng lu�n mang --cols-2 */
  &.xoso-ls-cols-2 .xoso-ls-list > li {
    float: left;
    width: 50%;
  }

  &.xoso-ls-cols-2 .xoso-ls-list::after {
    content: "";
    display: block;
    clear: both;
  }

  .xoso-ls-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    border-top: 4px dashed var(--xoso-ls-bullet);
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transform: rotate(-90deg);
  }

  .xoso-ls-list a {
    color: var(--xoso-ls-link);
    font-weight: 600;
    text-decoration: none;
  }

  .xoso-ls-list a:hover {
    color: var(--xoso-ls-hover);
    text-decoration: none;
  }

  .xoso-ls-hot {
    display: inline-block;
    margin-left: 6px;
    padding: 0 3px;
    border-radius: 2px;
    background: var(--xoso-ls-hot-bg);
    color: var(--xoso-ls-hot-text);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    vertical-align: middle;
  }

  @media (max-width: 549px) {
    .xoso-ls-list--cols-2 li {
      width: 100%;
    }
  }
}

.xoso-posts-statistic {
  --xoso-ps-header-bg: var(--xoso-color-row-alt);
  --xoso-ps-header: var(--xoso-color-primary);
  --xoso-ps-link: #222;
  --xoso-ps-hover: var(--xoso-color-primary);
  --xoso-ps-border: var(--xoso-color-border);
  --xoso-ps-more: var(--xoso-color-muted);
  --xoso-ps-meta: var(--xoso-color-muted);
  --xoso-ps-card-bg: #fff;
  width: 100%;
  margin: 0 0 16px;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;

  .xoso-ps-header {
    margin: 0;
    padding: 8px 10px;
    background: var(--xoso-ps-header-bg);
    border: 1px solid var(--xoso-ps-border);
  }

  .xoso-ps-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--xoso-ps-header);
  }

  .xoso-ps-header a {
    color: var(--xoso-ps-header);
    text-decoration: none;
  }

  .xoso-ps-header a:hover {
    color: var(--xoso-ps-hover);
  }

  .xoso-ps-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .xoso-ps-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 10px 16px;
    border-bottom: 1px solid var(--xoso-ps-border);
  }

  .xoso-ps-thumb {
    flex: 0 0 120px;
    width: 120px;
  }

  .xoso-ps-thumb img {
    display: block;
    width: 120px;
    height: 90px;
    object-fit: cover;
  }

  .xoso-ps-title {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
  }

  .xoso-ps-title a {
    color: var(--xoso-ps-link);
    text-decoration: none;
  }

  .xoso-ps-title a:hover {
    color: var(--xoso-ps-hover);
  }

  .xoso-ps-date,
  .xoso-ps-excerpt {
    margin: 4px 0 0;
    color: var(--xoso-ps-meta);
    font-size: 13px;
  }

  .xoso-ps-more {
    padding: 12px 16px;
    text-align: center;
  }

  .xoso-ps-more a {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid var(--xoso-ps-border);
    border-radius: 25px;
    color: var(--xoso-ps-more);
    text-decoration: none;
  }

  .xoso-ps-more a:hover {
    color: var(--xoso-ps-hover);
  }

  .xoso-ps-placeholder {
    display: block;
    min-height: 90px;
    background: color-mix(in srgb, var(--xoso-ps-header) 12%, #fff);
    border: 1px solid var(--xoso-ps-border);
  }

  &.xoso-ps-compact .xoso-ps-list li {
    align-items: baseline;
    padding: 6px 12px;
  }

  &.xoso-ps-compact .xoso-ps-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    align-items: baseline;
  }

  &.xoso-ps-compact .xoso-ps-date,
  &.xoso-ps-compact .xoso-ps-excerpt {
    margin: 0;
  }

  &.xoso-ps-cards .xoso-ps-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 12px;
  }

  &.xoso-ps-cards.xoso-ps-cols-3 .xoso-ps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  &.xoso-ps-cards .xoso-ps-list li {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 0 12px;
    border: 1px solid var(--xoso-ps-border);
    background: var(--xoso-ps-card-bg);
  }

  &.xoso-ps-cards .xoso-ps-thumb {
    flex: none;
    width: 100%;
  }

  &.xoso-ps-cards .xoso-ps-thumb img,
  &.xoso-ps-cards .xoso-ps-placeholder {
    width: 100%;
    height: 140px;
  }

  &.xoso-ps-cards .xoso-ps-body {
    padding: 10px 12px 0;
  }

  @media (max-width: 849px) {
    &.xoso-ps-cards.xoso-ps-cols-3 .xoso-ps-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 549px) {
    &.xoso-ps-cards .xoso-ps-list,
    &.xoso-ps-cards.xoso-ps-cols-3 .xoso-ps-list {
      grid-template-columns: 1fr;
    }
  }
}

.xoso-lottery-info {
  --xoso-li-text: #333;
  --xoso-li-heading: var(--xoso-color-primary);
  --xoso-li-link: var(--xoso-color-primary);
  --xoso-li-hover: var(--xoso-color-primary);
  --xoso-li-bg: #fff;
  --xoso-li-border: var(--xoso-color-border);
  width: 100%;
  margin: 0 0 16px;
  padding: 12px;
  box-sizing: border-box;
  color: var(--xoso-li-text);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;

  .xoso-li-heading {
    margin: 0 0 8px;
    color: var(--xoso-li-heading);
    font-size: 20px;
    font-weight: 700;
  }

  .xoso-li-body p {
    margin: 6px 0;
  }

  .xoso-li-body a {
    color: var(--xoso-li-link);
    text-decoration: underline;
  }

  .xoso-li-body a:hover {
    color: var(--xoso-li-hover);
  }

  .xoso-li-body ul,
  .xoso-li-body ol {
    margin: 8px 0;
    padding-left: 1.4em;
  }

  .xoso-li-body li {
    margin: 4px 0;
  }

  &.xoso-li-lead {
    text-align: center;
  }

  &.xoso-li-box {
    background: var(--xoso-li-bg);
    border: 1px solid var(--xoso-li-border);
  }
}

.xoso-sms-blocks {
  --xoso-sms-text: var(--xoso-color-muted);
  --xoso-sms-red: var(--xoso-color-accent);
  --xoso-sms-link: var(--xoso-color-primary);
  --xoso-sms-hover: var(--xoso-color-primary);
  --xoso-sms-border: var(--xoso-color-border);
  width: 100%;
  margin: 0 0 16px;
  box-sizing: border-box;
  color: var(--xoso-sms-text);
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;

  .xoso-sms-loto {
    width: 100%;
    box-sizing: border-box;
    border-top: 1px dashed var(--xoso-sms-border);
    padding: 12px 16px;
  }

  .xoso-sms-loto strong,
  .xoso-sms-loto b,
  .xoso-sms-loto em {
    color: var(--xoso-sms-red);
    font-style: normal;
    font-weight: 700;
  }

  .xoso-sms-page {
    padding: 8px 0;
  }

  p {
    margin: 6px 0;
  }

  a {
    color: var(--xoso-sms-link);
    text-decoration: underline;
  }

  a:hover {
    color: var(--xoso-sms-hover);
  }
}

/* Khoi ben � m�u theo :root / Customizer Colors */
.xoso-khoi {
  --xoso-khoi-primary: var(--xoso-color-primary);
  --xoso-khoi-secondary: var(--xoso-color-secondary);
  --xoso-khoi-alert: var(--xoso-color-accent);
  --xoso-khoi-success: var(--xoso-color-success);
  --xoso-khoi-text: var(--xoso-color-text);
  --xoso-khoi-muted: var(--xoso-color-muted);
  --xoso-khoi-border: var(--xoso-color-border);
  --xoso-khoi-panel: var(--xoso-color-panel);
  --xoso-khoi-soft: var(--xoso-color-highlight);
  --xoso-khoi-on-primary: var(--xoso-color-on-primary);
}
.xoso-khoi .widget-title h3 {
  margin: 0;
  font-size: 1rem;
}
.xoso-khoi .widget-title.widget_bg {
  background: var(--xoso-khoi-primary);
  color: var(--xoso-khoi-on-primary);
}
.xoso-khoi .widget-title.widget_bg a,
.xoso-khoi .widget-title.widget_bg h3 {
  color: inherit;
}
.xoso-khoi .widget-container {
  padding: 8px 0;
}

.xoso-khoi-lich-ngay .form-select {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 8px 6px;
  box-sizing: border-box;
  border-bottom: solid 1px var(--xoso-khoi-border);
}
.xoso-khoi-lich-ngay .btn-list1,
.xoso-khoi-lich-ngay .btn-list2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  cursor: pointer;
}
.xoso-khoi-lich-ngay .img-c {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--xoso-khoi-muted);
}
.xoso-khoi-lich-ngay .select-item {
  flex: 1 1 52px;
  min-width: 48px;
  max-width: 96px;
  height: 32px;
  margin: 0;
  font-size: 13px;
}
.xoso-khoi-lich-ngay .btn-select {
  flex: 1 1 64px;
  min-width: 56px;
  max-width: 110px;
  padding: 0 6px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  font-size: 12px;
  border: solid 1px var(--xoso-khoi-border);
  background: var(--xoso-khoi-panel);
  border-radius: 4px;
  white-space: nowrap;
  color: var(--xoso-khoi-text);
}
.xoso-khoi-lich-ngay .fc-calendar-container,
.xoso-khoi-lich-ngay .fc-calendar {
  width: 100%;
  box-sizing: border-box;
}
.xoso-khoi-lich-ngay .caleandar-weks,
.xoso-khoi-lich-ngay .caleandar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.xoso-khoi-lich-ngay ul.caleandar-weks > li,
.xoso-khoi-lich-ngay ul.caleandar-days > li {
  margin: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  border-right: 1px solid var(--xoso-khoi-border);
  border-bottom: 1px solid var(--xoso-khoi-border);
}
.xoso-khoi-lich-ngay .caleandar-weks {
  background: var(--xoso-khoi-panel);
  border: 1px solid var(--xoso-khoi-border);
  border-bottom: 0;
}
.xoso-khoi-lich-ngay ul.caleandar-weks > li {
  font-weight: 600;
  font-size: 12px;
  padding: 7px 2px;
  color: var(--xoso-khoi-text);
  border-bottom: 0;
}
.xoso-khoi-lich-ngay ul.caleandar-weks > li:last-child,
.xoso-khoi-lich-ngay ul.caleandar-days > li:nth-child(7n) {
  border-right: 0;
}
.xoso-khoi-lich-ngay .caleandar-weks li.red {
  color: var(--xoso-khoi-alert);
}
.xoso-khoi-lich-ngay .caleandar-days {
  border: 1px solid var(--xoso-khoi-border);
  border-top: 0;
  background: #fff;
}
.xoso-khoi-lich-ngay ul.caleandar-days > li {
  position: relative;
  min-height: 36px;
}
.xoso-khoi-lich-ngay.xoso-khoi-lich-lunar ul.caleandar-days > li {
  min-height: 54px;
}
.xoso-khoi-lich-ngay .ca-day-link {
  display: block;
  position: relative;
  height: 100%;
  min-height: inherit;
  padding: 4px 2px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.xoso-khoi-lich-ngay.xoso-khoi-lich-lunar .ca-day-link {
  padding: 4px 4px 18px;
}
.xoso-khoi-lich-ngay .ca-pm {
  display: block;
  position: relative;
  padding-right: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}
.xoso-khoi-lich-ngay .fc-date {
  font-size: 14px;
}
.xoso-khoi-lich-ngay .ca-am {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 10px;
  color: var(--xoso-khoi-muted);
  line-height: 1.1;
  max-width: calc(100% - 8px);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.xoso-khoi-lich-ngay .icon-hoangdao,
.xoso-khoi-lich-ngay .icon-hacdao {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -9px;
}
.xoso-khoi-lich-ngay .icon-hoangdao {
  background: var(--xoso-khoi-primary);
}
.xoso-khoi-lich-ngay .icon-hacdao {
  background: var(--xoso-khoi-muted);
}
.xoso-khoi-lich-ngay ul.caleandar-days > li:nth-child(7n) .fc-date {
  color: var(--xoso-khoi-alert);
}
.xoso-khoi-lich-ngay ul.caleandar-days > li.fc-today,
.xoso-khoi-lich-ngay ul.caleandar-days > li.fc-today .ca-day-link {
  background: var(--xoso-khoi-soft);
  font-weight: 700;
}
.xoso-khoi-lich-ngay ul.caleandar-days > li.active {
  background: var(--xoso-khoi-primary);
  box-shadow: inset 0 0 0 2px var(--xoso-khoi-secondary);
  color: var(--xoso-khoi-on-primary);
}
.xoso-khoi-lich-ngay ul.caleandar-days > li.active .fc-date,
.xoso-khoi-lich-ngay ul.caleandar-days > li.active .ca-pm,
.xoso-khoi-lich-ngay ul.caleandar-days > li.active .ca-am,
.xoso-khoi-lich-ngay ul.caleandar-days > li.active .ca-day-link {
  color: var(--xoso-khoi-on-primary);
  background: transparent;
}
.xoso-khoi-lich-ngay ul.caleandar-days > li.active .icon-hoangdao,
.xoso-khoi-lich-ngay ul.caleandar-days > li.active .icon-hacdao {
  background: var(--xoso-khoi-on-primary);
}
.xoso-khoi-lich-ngay ul.caleandar-days > li.disabled-ca {
  background: var(--xoso-khoi-panel);
  pointer-events: none;
}
.xoso-khoi-lich-ngay ul.caleandar-days > li:not(.disabled-ca):not(.active):hover {
  background: var(--xoso-khoi-soft);
}

.xoso-khoi-link-tinh .link-item,
.xoso-khoi-menu-link .link-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.xoso-khoi-link-tinh .link-item.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.xoso-khoi-link-tinh .link-item.one-column {
  display: grid;
  grid-template-columns: 1fr;
}
.xoso-khoi-link-tinh .link-item.two-column > li,
.xoso-khoi-link-tinh .link-item.one-column > li,
.xoso-khoi-menu-link .link-item > li {
  margin: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  float: none;
  width: auto;
}
.xoso-khoi-link-tinh .link-item.two-column > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.xoso-khoi-link-tinh .link-item a,
.xoso-khoi-menu-link .link-item a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 12px 6px 24px;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--xoso-khoi-text);
}
.xoso-khoi-link-tinh .link-item a:hover,
.xoso-khoi-menu-link .link-item a:hover {
  color: var(--xoso-khoi-primary);
}
.xoso-khoi-link-tinh .link-item a::before,
.xoso-khoi-menu-link .link-item a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  border-top: 4px dashed var(--xoso-khoi-muted);
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transform: rotate(-90deg);
}
.xoso-khoi-link-tinh .live-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--xoso-khoi-alert);
}
.xoso-khoi-link-tinh .live-dot.pulse {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--xoso-khoi-alert) 70%, transparent);
  animation: xoso-khoi-pulse 1.2s infinite;
}
@keyframes xoso-khoi-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--xoso-khoi-alert) 70%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.xoso-khoi-do-ket-qua .form-wg {
  display: block;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
}
.xoso-khoi-do-ket-qua .form-group {
  overflow: hidden;
  margin-bottom: 10px;
}
.xoso-khoi-do-ket-qua .label_gril {
  float: left;
  width: 70px;
  margin: 0;
  font-size: 13px;
  line-height: 32px;
  color: var(--xoso-khoi-text);
}
.xoso-khoi-do-ket-qua .input_gril {
  display: grid;
  margin-left: 70px;
}
.xoso-khoi-do-ket-qua .input_gril input,
.xoso-khoi-do-ket-qua .input_gril select {
  width: 100%;
  max-width: 100%;
  height: 32px;
  box-sizing: border-box;
}
.xoso-khoi-do-ket-qua .btn-right {
  text-align: right;
}
.xoso-khoi-do-ket-qua .btn[data-xoso-dkq-submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 110px;
}
.xoso-khoi-do-ket-qua .xsloader-css,
.xoso-khoi-do-ket-qua .xoso-khoi-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--xoso-khoi-alert) 30%, transparent);
  border-top-color: var(--xoso-khoi-alert);
  border-radius: 50%;
  animation: xoso-khoi-spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}
@keyframes xoso-khoi-spin {
  to { transform: rotate(360deg); }
}
.xoso-khoi-do-ket-qua .tutorial-loto {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--xoso-khoi-muted);
  line-height: 1.45;
  font-style: italic;
}

.xoso-khoi-bai-noi-bat .post-news {
  list-style: none;
  margin: 0;
  padding: 0;
}
.xoso-khoi-bai-noi-bat .post-news li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: solid 0.5px var(--xoso-khoi-border);
}
.xoso-khoi-bai-noi-bat .post-thumbnail {
  flex: 0 0 80px;
}
.xoso-khoi-bai-noi-bat .post-thumbnail img,
.xoso-khoi-bai-noi-bat .post-thumbnail__placeholder {
  display: block;
  width: 80px;
  height: 60px;
  object-fit: cover;
  background: var(--xoso-khoi-panel);
}
.xoso-khoi-bai-noi-bat .xoso-khoi-bai-body {
  flex: 1;
  min-width: 0;
}
.xoso-khoi-bai-noi-bat .description {
  display: grid;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
.xoso-khoi-bai-noi-bat .description a {
  color: var(--xoso-khoi-text);
  text-decoration: none;
}
.xoso-khoi-bai-noi-bat .description a:hover {
  color: var(--xoso-khoi-primary);
}
.xoso-khoi-bai-noi-bat .xoso-khoi-excerpt {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--xoso-khoi-muted);
  line-height: 1.35;
}
.xoso-khoi-bai-noi-bat .xoso-khoi-empty {
  margin: 8px 0;
  font-size: 13px;
  color: var(--xoso-khoi-muted);
}
.xoso-khoi-bai-noi-bat .see-more {
  text-align: center;
  padding: 12px 0;
}
.xoso-khoi-bai-noi-bat .see-more a {
  display: inline-block;
  padding: 4px 16px;
  border: solid 0.5px var(--xoso-khoi-border);
  border-radius: 25px;
  color: var(--xoso-khoi-muted);
  text-decoration: none;
}
.xoso-khoi-bai-noi-bat .see-more a:hover {
  color: var(--xoso-khoi-primary);
  border-color: var(--xoso-khoi-primary);
}

.xoso-khoi-menu-link .link-item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.xoso-khoi-menu-link .link-item li {
  margin: 4px 0;
}
/* ��� Author page ��� */
.xoso-author-page .col-inner > .section {
  padding-top: 20px;
  padding-bottom: 28px;
}
.xoso-author-info {
  --xoso-author-primary: var(--fs-color-primary, #446084);
  --xoso-author-border: rgba(0, 0, 0, 0.08);
  --xoso-author-muted: #6b7280;
  --xoso-author-bg: #f7f8fa;
  margin: 0 0 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--xoso-author-border);
  border-radius: 8px;
}
.xoso-author-info--card {
  text-align: center;
}
.xoso-author-info--card .xoso-author-info__avatar {
  margin: 0 auto 14px;
  width: 120px;
}
.xoso-author-info--card .xoso-author-info__avatar img {
  margin: 0 auto;
}
.xoso-author-info--horizontal {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}
.xoso-author-info--horizontal .xoso-author-info__avatar {
  flex: 0 0 auto;
}
.xoso-author-info--horizontal .xoso-author-info__body {
  flex: 1 1 auto;
  min-width: 0;
}
.xoso-author-info--minimal {
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.xoso-author-info--minimal .xoso-author-info__avatar {
  display: none;
}
.xoso-author-info__avatar img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--xoso-author-border);
}
.xoso-author-info--horizontal .xoso-author-info__avatar img {
  width: 96px;
  height: 96px;
}
.xoso-author-info__name {
  margin: 0 0 6px;
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--xoso-author-primary);
}
.xoso-author-info__title {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--xoso-author-muted);
}
.xoso-author-info__count {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--xoso-author-muted);
}
.xoso-author-info__bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}
.xoso-author-info__bio p {
  margin: 0 0 8px;
}
.xoso-author-info__bio p:last-child {
  margin-bottom: 0;
}
.xoso-author-info__web {
  margin: 10px 0 0;
  font-size: 13px;
}
.xoso-author-info__web a {
  color: var(--xoso-author-primary);
  text-decoration: none;
}
.xoso-author-info__web a:hover {
  text-decoration: underline;
}

.xoso-author-social {
  --xoso-author-primary: var(--fs-color-primary, #446084);
  --xoso-author-border: rgba(0, 0, 0, 0.08);
  margin: 0 0 24px;
}
.xoso-author-social__heading {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--xoso-author-primary);
}
.xoso-author-social__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.xoso-author-social--list .xoso-author-social__list {
  flex-direction: column;
  gap: 8px;
}
.xoso-author-social__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  padding: 6px 8px;
  border: 1px solid var(--xoso-author-border);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.xoso-author-social__link:hover {
  border-color: var(--xoso-author-primary);
  color: var(--xoso-author-primary);
}
.xoso-author-social__icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
.xoso-author-social__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--xoso-author-primary);
}
.xoso-author-social__label {
  font-size: 14px;
}

.xoso-author-posts {
  --xoso-author-primary: var(--fs-color-primary, #446084);
  --xoso-author-border: rgba(0, 0, 0, 0.08);
  --xoso-author-muted: #6b7280;
  margin: 0 0 16px;
}
.xoso-author-posts__heading {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--xoso-author-primary);
}
.xoso-author-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.xoso-author-posts--list .xoso-author-posts__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--xoso-author-border);
}
.xoso-author-posts--list .xoso-author-posts__item:first-child {
  padding-top: 0;
}
.xoso-author-posts--cards .xoso-author-posts__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.xoso-author-posts--cards .xoso-author-posts__item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--xoso-author-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.xoso-author-posts--cards .xoso-author-posts__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}
.xoso-author-posts--cards .xoso-author-posts__thumb img,
.xoso-author-posts--cards .xoso-author-posts__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.xoso-author-posts--cards .xoso-author-posts__body {
  padding: 12px;
}
.xoso-author-posts--compact .xoso-author-posts__item {
  padding: 8px 0;
  border-bottom: 1px dashed var(--xoso-author-border);
}
.xoso-author-posts__thumb {
  flex: 0 0 120px;
  width: 120px;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f4f6;
}
.xoso-author-posts--list .xoso-author-posts__thumb img,
.xoso-author-posts--list .xoso-author-posts__placeholder {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
}
.xoso-author-posts__placeholder {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}
.xoso-author-posts__body {
  flex: 1 1 auto;
  min-width: 0;
}
.xoso-author-posts__title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}
.xoso-author-posts__title a {
  color: #222;
  text-decoration: none;
}
.xoso-author-posts__title a:hover {
  color: var(--xoso-author-primary);
}
.xoso-author-posts__date {
  display: block;
  font-size: 12px;
  color: var(--xoso-author-muted);
}
.xoso-author-posts__excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}
.xoso-author-posts__empty {
  margin: 0;
  color: var(--xoso-author-muted);
  font-size: 14px;
}
.xoso-author-posts__pager {
  margin-top: 16px;
}
.xoso-author-posts__pager .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.xoso-author-posts__pager .page-numbers li {
  margin: 0;
}
.xoso-author-posts__pager a,
.xoso-author-posts__pager span {
  display: inline-block;
  min-width: 32px;
  padding: 4px 8px;
  text-align: center;
  border: 1px solid var(--xoso-author-border);
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
}
.xoso-author-posts__pager .current {
  background: var(--xoso-author-primary);
  border-color: var(--xoso-author-primary);
  color: #fff;
}
@media (max-width: 549px) {
  .xoso-author-info--horizontal {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .xoso-author-posts--list .xoso-author-posts__item {
    flex-direction: column;
  }
  .xoso-author-posts--list .xoso-author-posts__thumb,
  .xoso-author-posts--list .xoso-author-posts__thumb img,
  .xoso-author-posts--list .xoso-author-posts__placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Th?ng k� nhanh ? m?u .statistic-summary */
.xoso-thong-ke-nhanh {
  --xoso-tkn-primary: var(--xoso-color-primary, #c94d00);
  --xoso-tkn-cream: #f7e9be;
  --xoso-tkn-border: #ddd;
  width: 100%;
  margin: 10px 0 16px;
  box-sizing: border-box;
  border: 1px solid var(--xoso-tkn-border);
  background: #fff;
  font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.xoso-thong-ke-nhanh .xoso-tkn-title {
  margin: 0;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: var(--xoso-tkn-primary);
}

.xoso-thong-ke-nhanh .xoso-tkn-body {
  padding: 0;
}

.xoso-thong-ke-nhanh .xoso-tkn-box {
  margin: 0;
  padding: 6px 6px 8px;
}

.xoso-thong-ke-nhanh .xoso-tkn-box + .xoso-tkn-box {
  padding-top: 0;
}

.xoso-thong-ke-nhanh .xoso-tkn-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--xoso-tkn-border);
}

.xoso-thong-ke-nhanh .xoso-tkn-table th {
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: var(--xoso-tkn-cream);
  border: 1px solid var(--xoso-tkn-border);
  color: #333;
}

.xoso-thong-ke-nhanh .xoso-tkn-table td {
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--xoso-tkn-border);
  white-space: nowrap;
}

.xoso-thong-ke-nhanh .xoso-tkn-num {
  color: var(--xoso-tkn-primary);
  font-weight: 700;
  font-size: 15px;
}

.xoso-thong-ke-nhanh .xoso-tkn-count {
  color: #333;
  font-weight: 400;
  font-size: 13px;
}

@media (max-width: 549px) {
  .xoso-thong-ke-nhanh .xoso-tkn-table td {
    white-space: normal;
    font-size: 12px;
  }

  .xoso-thong-ke-nhanh .xoso-tkn-count {
    display: block;
    font-size: 12px;
  }
}

/* Bang KQ ? n�t Xem th�m (link / AJAX) */
.xoso-kq-more-wrap {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  clear: both;
}

.xoso-kq-more-wrap > .xoso-bang-nhieu-tinh,
.xoso-kq-more-wrap > .xoso-bang-mien-bac {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  clear: both;
}

.xoso-kq-more-bar {
  display: flex;
  justify-content: center;
  clear: both;
  width: 100%;
  margin: 4px 0 8px;
}

.xoso-kq-more {
  --xoso-kq-more-bg: var(--xoso-color-primary, #c94d00);
  --xoso-kq-more-text: #fff;
  appearance: none;
  display: inline-block;
  box-sizing: border-box;
  min-width: 145px;
  margin: 0;
  padding: 7px 16px;
  border: 1px solid var(--xoso-kq-more-bg);
  border-radius: 3px;
  background: var(--xoso-kq-more-bg);
  color: var(--xoso-kq-more-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.xoso-kq-more:hover {
  background: color-mix(in srgb, var(--xoso-kq-more-bg) 88%, #000);
  border-color: color-mix(in srgb, var(--xoso-kq-more-bg) 88%, #000);
  color: var(--xoso-kq-more-text);
  text-decoration: none;
}

.xoso-kq-more--ajax:disabled {
  opacity: 0.45;
  cursor: default;
}

.xoso-kq-more-wrap.is-loading .xoso-kq-more--ajax {
  opacity: 0.65;
}

/* FAQ � Flatsome accordion custom (d�ng m?i trang: class xoso-faq) */
.xoso-faq-block {
  margin: 0 0 20px;
  padding: 10px 12px 4px;
  box-sizing: border-box;
  background: #f5f5f5;
}

.xoso-faq-heading {
  margin: 0 0 8px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #222;
}

.accordion.xoso-faq {
  margin: 0;
  border: 0;
  background: transparent;
}

.accordion.xoso-faq > .accordion-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: transparent;
  box-shadow: none;
}

.accordion.xoso-faq > .accordion-item:last-child {
  border-bottom: 1px solid #ddd;
}

.accordion.xoso-faq .accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border: 0 !important;
  background: transparent !important;
  color: #333 !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: none !important;
}

.accordion.xoso-faq .accordion-title:hover,
.accordion.xoso-faq .accordion-title.active {
  color: var(--xoso-color-primary, #c94d00) !important;
  background: transparent !important;
}

.accordion.xoso-faq .accordion-title > span {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

.accordion.xoso-faq .accordion-title .toggle {
  order: 2;
  flex: 0 0 auto;
  float: none;
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
}

.accordion.xoso-faq .accordion-title .toggle i {
  font-size: 16px;
  line-height: 1;
}

.accordion.xoso-faq .accordion-inner {
  padding: 0 0 12px;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}

.accordion.xoso-faq .accordion-inner p {
  margin: 0 0 8px;
}

.accordion.xoso-faq .accordion-inner ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.accordion.xoso-faq .accordion-inner a {
  color: var(--xoso-color-primary, #c94d00);
  font-weight: 700;
  text-decoration: underline;
}

/* GĐB khoảng ngày — hub #monthly-result (khớp mẫu: note ẩn mặc định) */
.xoso-bang-gdb-khoang {
  --xoso-gdk-primary: var(--xoso-color-primary, #c94d00);
  --xoso-gdk-border: #ddd;
  --xoso-gdk-weekend: #efefef;
  margin: 0 0 16px;
  border: 1px solid var(--xoso-gdk-border);
  background: #fff;
}

.xoso-bang-gdb-khoang .xoso-gdk-header {
  margin: 0;
}

.xoso-bang-gdb-khoang .xoso-gdk-title {
  padding: 8px 10px;
  background: var(--xoso-gdk-primary);
  color: #fff;
  text-align: center;
}

.xoso-bang-gdb-khoang .xoso-gdk-title h2,
.xoso-bang-gdb-khoang .xoso-gdk-title h3,
.xoso-bang-gdb-khoang .xoso-gdk-title div {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: inherit;
}

.xoso-bang-gdb-khoang .xoso-gdk-title-link {
  color: inherit;
  text-decoration: none;
}

.xoso-bang-gdb-khoang .xoso-gdk-title-link:hover {
  text-decoration: underline;
}

.xoso-bang-gdb-khoang .xoso-gdk-body {
  padding: 8px;
}

.xoso-bang-gdb-khoang .xoso-gdk-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: center;
  align-items: center;
  margin: 0 0 10px;
}

.xoso-bang-gdb-khoang .xoso-gdk-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.xoso-bang-gdb-khoang .xoso-gdk-mode-input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--xoso-gdk-primary);
  cursor: pointer;
}

.xoso-bang-gdb-khoang .xoso-gdk-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.xoso-bang-gdb-khoang .xoso-gdk-calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.xoso-bang-gdb-khoang .xoso-gdk-calendar th {
  padding: 6px 4px;
  border: 1px solid var(--xoso-gdk-border);
  background: #f7e9be;
  text-align: center;
  font-weight: 700;
}

.xoso-bang-gdb-khoang .xoso-gdk-cell {
  padding: 6px 4px;
  border: 1px solid var(--xoso-gdk-border);
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
}

.xoso-bang-gdb-khoang .xoso-gdk-weekend {
  background: var(--xoso-gdk-weekend);
}

.xoso-bang-gdb-khoang .xoso-gdk-pad,
.xoso-bang-gdb-khoang .xoso-gdk-empty {
  background: #fafafa;
}

.xoso-bang-gdb-khoang .xoso-gdk-prefix {
  color: #666;
  font-weight: 700;
}

.xoso-bang-gdb-khoang .xoso-gdk-last2 {
  color: var(--xoso-gdk-primary);
  font-weight: 700;
}

/* Mặc định ẩn note — chỉ hiện khi bật checkbox (giống mẫu) */
.xoso-bang-gdb-khoang .xoso-gdk-note {
  display: none;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #888;
}

.xoso-bang-gdb-khoang .xoso-gdk-note b {
  color: #888;
  font-weight: 700;
}

.xoso-bang-gdb-khoang.is-dau .xoso-gdk-note-dau,
.xoso-bang-gdb-khoang.is-duoi .xoso-gdk-note-duoi,
.xoso-bang-gdb-khoang.is-tong .xoso-gdk-note-tong {
  display: block;
}

/* Loto: ẩn prefix, chỉ còn 2 số cuối */
.xoso-bang-gdb-khoang.is-loto .xoso-gdk-prefix {
  display: none;
}

@media (max-width: 549px) {
  .xoso-bang-gdb-khoang .xoso-gdk-title h2,
  .xoso-bang-gdb-khoang .xoso-gdk-title h3 {
    font-size: 14px;
  }

  .xoso-bang-gdb-khoang .xoso-gdk-calendar {
    font-size: 12px;
  }

  .xoso-bang-gdb-khoang .xoso-gdk-note {
    font-size: 10px;
  }

  .xoso-bang-gdb-khoang .xoso-gdk-modes {
    justify-content: space-between;
  }
}


.xoso-bang-pascal {
  --xoso-pascal-border: var(--xoso-color-border, #ccc);
  --xoso-pascal-header: #c94d00;
  --xoso-pascal-title: #fff;
  --xoso-pascal-accent: #c94d00;
  width: 100%;
  margin: 0 0 14px;
  border: 2px solid var(--xoso-pascal-border);
  background: #fff;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.xoso-bang-pascal .xoso-note {
  margin: 0;
  padding: 14px;
  text-align: center;
}

.xoso-bang-pascal .xoso-pascal-header {
  padding: 8px 12px;
  background: var(--xoso-pascal-header);
  border-bottom: 1px solid #b84400;
}

.xoso-bang-pascal .xoso-pascal-title h2,
.xoso-bang-pascal .xoso-pascal-title h3,
.xoso-bang-pascal .xoso-pascal-title h4 {
  margin: 0;
  color: var(--xoso-pascal-title);
  font-size: 16px;
  font-weight: 700;
}

.xoso-bang-pascal .xoso-pascal-body {
  padding: 10px 12px 12px;
}

.xoso-bang-pascal .xoso-pascal-intro {
  margin: 0 0 10px;
  color: #333;
}

.xoso-bang-pascal .xoso-pascal-tri {
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 12px 6px 10px;
  border: 1px solid #e4e4e4;
  background: #fffef8;
}

.xoso-bang-pascal .xoso-pascal-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 6px;
}

.xoso-bang-pascal .xoso-pascal-cell {
  display: inline-flex;
  box-sizing: border-box;
  width: 1.75em;
  height: 1.75em;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--xoso-pascal-accent, #c94d00);
  border-radius: 50%;
  background: #fff4e8;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #333;
}

.xoso-bang-pascal .xoso-pascal-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.xoso-bang-pascal .xoso-pascal-pair {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--xoso-pascal-accent);
  font-weight: 700;
}

.xoso-bang-pascal .xoso-pascal-badge {
  display: inline-flex;
  box-sizing: border-box;
  min-width: 2.5em;
  height: 2.5em;
  padding: 0 0.35em;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--xoso-pascal-accent, #c94d00);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Phase E — de-kep / lo-cam / lo-roi / dau-duoi-gdb / vietlott-freq */
.xoso-pe {
  margin: 0 0 1.25rem;
  max-width: 100%;
  min-width: 0;
}
.xoso-pe-header {
  margin: 0 0 0.75rem;
}
.xoso-pe-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.xoso-pe-caption {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.xoso-pe-block + .xoso-pe-block {
  margin-top: 1.25rem;
}
.xoso-pe-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.xoso-pe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.xoso-pe-table th,
.xoso-pe-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
}
.xoso-pe-table thead th {
  background: #c94d00;
  color: #fff;
  font-weight: 700;
}
.xoso-pe-table tbody tr:nth-child(even) {
  background: #faf6f2;
}
.xoso-pe-loto-cell,
.xoso-pe-fall-cell,
.xoso-pe-digit-cell {
  text-align: left;
  white-space: normal;
  word-break: break-word;
}
.xoso-pe-loto,
.xoso-pe-digit {
  display: inline-block;
  margin: 0 2px;
}
.xoso-pe-matrix {
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
.xoso-pe-matrix th,
.xoso-pe-matrix td {
  padding: 4px 6px;
  white-space: nowrap;
}
.xoso-pe-matrix th:first-child,
.xoso-pe-matrix td:first-child {
  font-weight: 700;
  background: #fff7f0;
  position: sticky;
  left: 0;
  z-index: 1;
}
.xoso-pe-freq-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  columns: 2;
  font-size: 14px;
}
.xoso-pe-vlfreq-table td.xoso-pe-num {
  font-weight: 700;
}
@media (max-width: 767px) {
  .xoso-pe-table {
    font-size: 12px;
  }
  .xoso-pe-table th,
  .xoso-pe-table td {
    padding: 4px 5px;
  }
  .xoso-pe-matrix {
    font-size: 11px;
  }
  .xoso-pe-freq-list {
    columns: 1;
  }
}

/* Phase G — đề về NN */
.xoso-deve-nav {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 1rem;
}
.xoso-deve-nav a {
  display: block;
  text-align: center;
  padding: 4px 2px;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #222;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  background: #fff;
}
.xoso-deve-nav a:hover,
.xoso-deve-nav a.is-active {
  background: #c94d00;
  border-color: #c94d00;
  color: #fff;
}
.xoso-deve-digit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 0.75rem;
  font-size: 14px;
}
.xoso-deve-digit strong {
  color: #c94d00;
}
.xoso-deve-date {
  margin-top: 2px;
  font-size: 12px;
  color: #666;
}
.xoso-deve-history-table td {
  vertical-align: top;
}
@media (max-width: 767px) {
  .xoso-deve-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .xoso-deve-digit-row {
    font-size: 12px;
  }
}

/* Con s? may m?n */
.xoso-csmm { margin: 0 0 1.5rem; color: #333; line-height: 1.55; }
.xoso-csmm-h1 { margin: 0 0 0.75rem; color: #5a2d0c; font-size: 1.45rem; }
.xoso-csmm-h2 { margin: 1.5rem 0 0.65rem; color: #c94d00; font-size: 1.2rem; }
.xoso-csmm-h3 { margin: 1.15rem 0 0.45rem; color: #333; font-size: 1.05rem; }
.xoso-csmm-lead { margin: 0 0 0.75rem; }
.xoso-csmm-explore { margin: 0 0 1rem; padding: 0.55rem 0.75rem; background: #fff7f0; border-left: 3px solid #c94d00; }
.xoso-csmm-explore a { color: #c94d00; }
.xoso-csmm-table-wrap { overflow-x: auto; margin: 0.5rem 0 0.85rem; border: 1px solid #e8d5c4; border-radius: 4px; }
.xoso-csmm-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 13px; }
.xoso-csmm-table th { background: #c94d00; color: #fff; padding: 8px 6px; text-align: center; font-weight: 700; white-space: nowrap; }
.xoso-csmm-table td { border: 1px solid #eadfce; padding: 7px 6px; text-align: center; vertical-align: middle; }
.xoso-csmm-table tbody tr:nth-child(4n+1),
.xoso-csmm-table tbody tr:nth-child(4n+2) { background: #fff; }
.xoso-csmm-table tbody tr:nth-child(4n+3),
.xoso-csmm-table tbody tr:nth-child(4n+4) { background: #fffaf5; }
.xoso-csmm-focus { margin: 0 0 0.55rem; }
.xoso-csmm-num { display: inline-block; min-width: 1.6em; margin-right: 4px; padding: 1px 6px; background: #fff3e8; color: #c94d00; font-weight: 700; border-radius: 3px; }
.xoso-csmm-tuvi-title { margin: 0.35rem 0 0.35rem; }
.xoso-csmm-tuvi { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.xoso-csmm-tuvi li { margin: 0.3rem 0; text-align: justify; }
.xoso-csmm-zodiac-table .xoso-csmm-zodiac-nums,
.xoso-csmm-zodiac-nums { color: #c00; font-weight: 700; }
.xoso-csmm-prev { margin-top: 1rem; }
.xoso-csmm a { color: #c94d00; }
.xoso-csmm-block { color: #333; line-height: 1.55; }
.xoso-csmm-block a { color: #c94d00; }
p.xoso-csmm-text, div.xoso-csmm-text { margin: 0 0 0.75rem; }
.xoso-csmm-giap { margin: 0 0 0.5rem; }
.xoso-csmm-intro { margin: 0 0 0.5rem; }
.xoso-csmm-cung { margin: 0 0 1rem; }
.xoso-csmm-el-kim { color: #c9a227; }
.xoso-csmm-el-moc { color: #090; }
.xoso-csmm-el-thuy { color: #1a6fb5; }
.xoso-csmm-el-hoa { color: #d00; }
.xoso-csmm-el-tho { color: #8b4513; }
@media (max-width: 767px) {
  .xoso-csmm-h1 { font-size: 1.25rem; }
  .xoso-csmm-table { font-size: 12px; }
}
