/* HITCLUB (betcio392.com) — theme WordPress betcio392. Chép từ legacy-next/src/app/globals.css (bản Next, giống galabet450.com):
   nền đen, nhấn vàng kim, header 1 hàng, hero trang chủ, khung tiêu đề viền vàng, mục lục trái bám dính, khung bài viền vàng cam,
   FAQ accordion, hộp "Thông tin thêm", footer sóng vàng 4 cột, thanh nút đáy điện thoại.
   Font tự host: assets/fonts/fonts.css (Inter + Chakra Petch, thay next/font). Phần thêm cho WordPress ở cuối file. */
:root {
  --font-sans: "Inter";
  --font-display: "Chakra Petch";
  color-scheme: dark;
  --bg: #000;
  --panel: #0e0c0a;
  --panel-2: #17130d;
  --line: #2a2418;
  --text: #f4efe4;
  --muted: #b9b0a0;
  --gold: #fdc733;
  --gold-2: #f5a623;
  --gold-dim: #b89a52;
  --accent: var(--gold);
  --accent-ink: var(--gold);
  --radius: 6px;
  --wrap: 1160px;
  --font: var(--font-sans), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font-display), var(--font-sans), system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--gold);
  text-underline-offset: 2px;
}
a:hover {
  color: #ffe08a;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.3;
  font-weight: 700;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--panel);
  padding: 8px 12px;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.btn-dark {
  background: linear-gradient(180deg, #ffd65a, var(--gold-2));
  color: #1a1206;
  border-color: #ffe08a;
}
.btn-dark:hover {
  color: #1a1206;
  filter: brightness(1.08);
}
.btn-line {
  background: transparent;
  color: var(--text);
  border-color: var(--gold-dim);
}
.btn-line:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.play-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Header MỘT hàng, bám dính: [logo | menu | Chơi ngay (phải)] ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    radial-gradient(ellipse 30% 140% at 50% 0%, rgba(253, 199, 51, 0.08), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #14100a, #070604);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(253, 199, 51, 0), var(--gold) 30%, #fff1c4 50%, var(--gold) 70%, rgba(253, 199, 51, 0));
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.main-nav {
  flex: 1;
}
.header-play {
  margin-left: auto;
  flex: none;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  height: 60px;
  width: auto;
}
.brand-footer img {
  height: 88px;
}
.menu,
.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
}
.menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
}
/* Link và nút xổ (button) cùng một khuôn: cao cố định, chữ căn giữa, line-height 1 → thẳng hàng. */
.menu-item > a,
.dd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  background: none;
  line-height: 1;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #d9d2c4;
  text-decoration: none;
  cursor: pointer;
}
.dd-toggle .ico {
  width: 15px;
  height: 15px;
}
.menu-item > a:hover,
.dd-toggle:hover,
.menu-item.is-current > a,
.menu-item.is-current > .dd-toggle {
  color: var(--gold);
}
/* Menu xổ: sát ngay dưới mục menu gốc (top 100%, không khe hở nên rê chuột không bị tắt), nền đặc,
   nằm TRÊN đường kẻ vàng của header (z-index). */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 240px;
  padding: 6px;
  background: #15110b;
  border: 1px solid var(--gold-dim);
  border-top: 2px solid var(--gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
  display: none;
}
.site-header::after {
  z-index: 1;
}
.has-dd.is-open > .sub-menu {
  display: block;
}
@media (hover: hover) and (min-width: 1001px) {
  .has-dd:hover > .sub-menu,
  .has-dd:focus-within > .sub-menu {
    display: block;
  }
}
.sub-menu a {
  display: block;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
}
.sub-menu a:hover,
.sub-menu a[aria-current="page"] {
  color: var(--gold);
  background: rgba(253, 199, 51, 0.06);
}
.nav-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .ico {
  width: 26px;
  height: 26px;
}

/* ---------- Trang chủ: khung hero viền vàng [ảnh banner / dải ưu điểm trái + nút chơi phải] ---------- */
.site-main {
  min-height: 60vh;
}
.hero-box {
  margin-top: 28px;
  max-width: 940px;
  padding: 0;
  border: 2px solid var(--gold-dim);
  background: #0a0805;
  overflow: hidden;
}
.hero-banner {
  margin: 0;
}
.hero-banner img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
/* Dưới banner: hàng 3 ô chỉ số chia đều (số vàng to + nhãn nhỏ, vạch ngăn), rồi hàng 3 nút chia đều, nút chính "Chơi trên web" bên PHẢI. */
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, #1a140a, #0d0a06);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 8px 12px;
  text-align: center;
}
.hero-stats li + li {
  border-left: 1px solid var(--line);
}
.hero-stats strong {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  color: var(--gold);
}
.hero-stats span {
  font-size: 13.5px;
  color: var(--muted);
}
.hero-cta {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #0a0805;
}
.hero-cta .play-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-cta .btn {
  width: 100%;
}
.hero-cta .btn-dark {
  order: 3;
}

/* ---------- Khung tiêu đề viền vàng ---------- */
.title-box {
  margin-top: 36px;
  max-width: 940px;
  padding: 22px 28px 18px;
  border: 2px solid var(--gold-dim);
  text-align: center;
}
.title-box h1 {
  margin: 6px 0 10px;
  color: var(--gold);
  font-size: clamp(25px, 3vw, 34px);
}
.title-box .lead {
  margin: 0 auto 4px;
  max-width: 760px;
  color: #ddd5c6;
  font-size: 17px;
}
.crumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs a {
  color: var(--muted);
}
.byline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.byline span + span::before {
  content: "·";
  margin: 0 8px;
}
.byline span:first-child {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Mục lục trái + khung bài ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding-top: 32px;
  padding-bottom: 48px;
  align-items: start;
}
/* Bám dính đặt ở CỘT mục lục (grid item, align-self: start); đặt ở .toc bên trong thì cột cao đúng bằng .toc nên không dính.
   top = chiều cao header một hàng (76px) + 16px. */
.toc-col {
  position: sticky;
  top: 92px;
  align-self: start;
}
.toc {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: 14px;
  overflow: hidden;
}
.toc summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  background: linear-gradient(90deg, #2a1f08, #120e06);
  border-bottom: 1px solid var(--gold-dim);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc:not([open]) summary {
  border-bottom: 0;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  counter-reset: toc;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 8px;
  padding: 7px 14px;
  color: #d9d2c4;
  text-decoration: none;
  line-height: 1.45;
}
.toc a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 18px;
  color: var(--gold-dim);
}
.toc a:hover,
.toc a.is-active {
  color: var(--gold);
}
.toc a.is-active {
  font-weight: 700;
}
.post-card {
  min-width: 0;
  padding: 26px 30px;
  border: 2px solid var(--gold-2);
  border-radius: var(--radius);
  background: #050403;
}
.post-cover {
  margin: 0 0 22px;
}
.post-cover img {
  width: 100%;
  border-radius: 4px;
}

/* ---------- Văn bài ---------- */
.prose {
  font-size: 16.5px;
  line-height: 1.75;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 1em;
}
.prose h2 {
  font-size: 24px;
  margin: 1.8em 0 0.6em;
  color: #fff;
}
.prose h3 {
  font-size: 19px;
  margin: 1.5em 0 0.5em;
  color: var(--gold);
}
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.prose li {
  margin: 0.35em 0;
}
.prose li::marker {
  color: var(--gold);
}
.prose strong {
  color: #fff;
}
.prose figure.img {
  margin: 1.5em 0;
}
.prose figure.img img {
  width: 100%;
  border-radius: 4px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 15px;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: #1a1408;
  color: var(--gold);
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 10px;
  background: var(--panel);
}
.faq details[open] {
  border-color: var(--gold-dim);
}
.faq summary {
  cursor: pointer;
  padding: 13px 44px 13px 16px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 20px;
  color: var(--gold);
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0;
  padding: 0 16px 14px;
}

/* Thông tin thêm */
.more-links {
  margin: 2em 0 0;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
}
.more-links-title {
  margin: 0 0 6px !important;
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold);
}
.more-links ul {
  margin: 0;
  padding-left: 1.1em;
}

/* ---------- Đọc thêm, dải nút ---------- */
.related {
  padding-bottom: 36px;
}
.related h2 {
  font-size: 21px;
  margin: 0 0 14px;
  color: var(--gold);
}
.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.related a {
  font-weight: 700;
  text-decoration: none;
}
.related span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 22px;
  padding-bottom: 26px;
}
.cta p {
  margin: 0;
  font-weight: 600;
}

/* ---------- Footer viền sóng vàng ---------- */
.site-footer {
  background: #000;
  color: #d9d2c4;
  font-size: 14.5px;
}
.ft-wave {
  display: block;
  width: 100%;
  height: 70px;
}
.ft-wave.is-flip {
  transform: scaleY(-1);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 28px;
}
.footer-about {
  text-align: center;
}
.footer-about .brand {
  justify-content: center;
}
.footer-about p {
  margin: 12px 0 0;
}
.footer-about strong {
  color: var(--gold);
}
.footer-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: 7px;
}
.site-footer a {
  color: #d9d2c4;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
}
.footer-contact li {
  display: flex;
  gap: 10px;
}
.footer-contact span {
  flex: none;
  min-width: 62px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding-top: 2px;
}
.footer-bottom {
  background: #000;
  padding: 6px 0 20px;
  font-size: 13.5px;
  text-align: center;
}
.footer-bottom p {
  margin: 0 0 6px;
}
.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  color: var(--muted);
}
.badge-18 {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid #ff6a4d;
  color: #ff6a4d;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
}
.dmca-badge {
  display: inline-flex;
  line-height: 0;
}
.dmca-badge img {
  height: 24px;
  width: auto;
}

/* Hàng script traffic: một hàng ngang, khoảng cách trên = dưới (giữ như 667betebet.com theo yêu cầu người dùng). */
.traffic-slots {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
  text-align: center;
}
.traffic-slots:has(.traffic-slot :not(script):not(:empty)) {
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line);
}
.traffic-slot {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  flex: 0 1 auto;
  max-width: 100%;
  color: var(--text);
  font-size: 14.5px;
}
.traffic-slot > * {
  margin: 0 !important;
}
.traffic-slot:not(:has(:not(script):not(:empty))) {
  display: none;
}
.traffic-slot > div:empty {
  display: none;
}
.traffic-slot a,
.traffic-slot button {
  max-width: 100%;
}
.traffic-slot img,
.traffic-slot iframe {
  max-width: 100%;
  height: auto;
}

/* ---------- 404 ---------- */
.not-found {
  padding-top: 60px;
  padding-bottom: 60px;
}
.nf-code {
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

/* ---------- Thanh nút đáy (điện thoại) ---------- */
.mobile-bar {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }
  .header-play {
    padding: 0 14px;
    min-height: 36px;
    font-size: 13px;
  }
  .brand img {
    height: 50px;
  }
  .header-row {
    min-height: 64px;
    gap: 12px;
  }
  .main-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 150;
    background: #050403;
    overflow-y: auto;
    padding: 70px 20px 90px;
  }
  .main-nav.is-open {
    display: block;
  }
  body.nav-open .nav-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 160;
  }
  .menu {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .menu-item {
    flex-direction: column;
  }
  .menu-item > a,
  .dd-toggle {
    width: 100%;
    height: auto;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .sub-menu {
    position: static;
    border: 0;
    background: none;
    box-shadow: none;
    padding: 0 0 8px 12px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .toc-col {
    position: static;
  }
  .toc ol {
    max-height: none;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .related ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 14px;
  }
  .title-box {
    padding: 16px 14px 14px;
    margin-top: 24px;
  }
  .hero-box {
    margin: 16px 14px 0;
    width: auto;
  }
  .hero-stats strong {
    font-size: 19px;
  }
  .hero-stats span {
    font-size: 12px;
  }
  .hero-stats li {
    padding: 10px 4px;
  }
  .hero-cta {
    padding: 12px;
  }
  .hero-cta .play-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  /* Điện thoại: nút chính lên đầu. */
  .hero-cta .btn-dark {
    order: -1;
  }
  .post-card {
    padding: 18px 16px;
  }
  .prose h2 {
    font-size: 21px;
  }
  .play-buttons .btn {
    flex: 1 1 100%;
  }
  .title-box {
    margin-left: 14px;
    margin-right: 14px;
    width: auto;
  }
  .footer-cols,
  .related ul {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding-bottom: 64px;
  }
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #0b0906;
    border-top: 1px solid var(--gold-dim);
  }
  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px 10px;
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
  }
  .mobile-bar a.is-main {
    background: linear-gradient(180deg, #ffd65a, var(--gold-2));
    color: #1a1206;
  }
}

/* ---------- Thêm cho WordPress ---------- */
/* Dải báo nội dung mẫu tạm (trang có meta _bc_sample — bài mượn của galabet450 khi chưa có bài betcio392). */
.sample-note {
  margin: 0;
  padding: 6px 14px;
  background: #3a0d0d;
  border-bottom: 1px solid #ff6a4d;
  color: #ffd2c4;
  font-size: 13px;
  text-align: center;
}
.sample-note strong {
  color: #ff8a6d;
}
/* Ảnh WordPress (srcset) trong bài giữ kiểu như bản Next. */
.prose img {
  height: auto;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
/* Thanh quản trị WordPress (chỉ khi đăng nhập): đẩy header bám dính xuống. */
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
