/* ATC header 2026. All rules are scoped; no iframe, Auto ads, or product CTA overrides. */
#atc-site-header-2026,
#atc-menu-dialog-2026 {
  --atc-nav-gold: #f8b52a;
  --atc-nav-ink: #17212f;
  box-sizing: border-box;
  font-family: Kanit, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
.atc-chrome26 *, .atc-chrome26 *::before, .atc-chrome26 *::after { box-sizing: border-box; }
#atc-site-header-2026 {
  position: relative;
  z-index: 100;
  display: block;
  float: none;
  clear: both;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 2px solid var(--atc-nav-gold);
  background: #14171e;
  color: #fff;
}
.atc-chrome26 a { text-decoration: none; }
.atc-chrome26 a:focus-visible, .atc-chrome26 button:focus-visible, .atc-chrome26 summary:focus-visible { outline: 3px solid #e5a516; outline-offset: 3px; }
.atc-chrome26 button { position: static; float: none; margin: 0; box-shadow: none; font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
.atc-chrome26 .atc-bar26 {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--atc-shell-width, 1170px), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 0;
}
.atc-chrome26 .atc-logo26 { display: flex; align-items: center; flex: 0 0 190px; width: 190px; margin: 0; padding: 0; }
.atc-chrome26 .atc-logo26 img { display: block; width: 190px; height: 50px; max-width: 100%; margin: 0; object-fit: contain; }
.atc-chrome26 .atc-desktop26 { flex: 1; min-width: 0; }
.atc-chrome26 .atc-nav26, .atc-chrome26 .atc-nav26 :where(ul, li) { float: none; width: auto; margin: 0; padding: 0; list-style: none; }
.atc-chrome26 .atc-nav26 > ul { display: flex; align-items: center; justify-content: center; gap: 4px; }
.atc-chrome26 .atc-nav26-group { position: relative; margin: 0; border: 0; }
.atc-chrome26 .atc-nav26 > ul > li > a,
.atc-chrome26 .atc-nav26-group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; margin: 0; padding: 10px 12px; border: 0; border-radius: 6px;
  background: transparent; color: #f8fafc; font: inherit; font-weight: 400;
  line-height: 24px; white-space: nowrap; cursor: pointer; list-style: none;
}
.atc-chrome26 summary::-webkit-details-marker { display: none; }
.atc-chrome26 summary::marker { content: ''; }
.atc-chrome26 summary::after { content: none; }
.atc-chrome26 .atc-nav26 > ul > li > a:hover,
.atc-chrome26 .atc-nav26-group > summary:hover,
.atc-chrome26 .atc-nav26-group[open] > summary { background: #272c35; color: #ffce67; }
.atc-chrome26 .atc-nav26 > ul > .is-current > a,
.atc-chrome26 .is-current > details > summary { font-weight: 700; text-decoration: underline; text-decoration-color: var(--atc-nav-gold); text-underline-offset: 8px; }
.atc-chrome26 .atc-chevron26 { display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex-shrink: 0; }
.atc-chrome26 details[open] > summary .atc-chevron26 { transform: rotate(225deg); }
.atc-chrome26 .atc-nav26-sub {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 2;
  width: 280px; max-height: min(520px, 70vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px; border: 1px solid #dde1e8; border-radius: 12px;
  background: #fff; color: var(--atc-nav-ink); box-shadow: 0 12px 32px #11182724;
}
.atc-chrome26 .atc-desktop26 .atc-nav26 > ul > li:last-child .atc-nav26-sub { left: auto; right: 0; }
.atc-chrome26 .atc-nav26-sub a { display: block; min-height: 44px; padding: 10px 12px; border-radius: 6px; color: #263446; font-size: 16px; line-height: 24px; white-space: normal; }
.atc-chrome26 .atc-nav26-sub a:hover, .atc-chrome26 .atc-nav26-sub a[aria-current="page"] { background: #fff5dc; color: #755100; }
.atc-chrome26 .atc-actions26 { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.atc-chrome26 .atc-search26 { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 20px; border-radius: 8px; background: linear-gradient(180deg, #f9be43, #f3a10c); color: #111827; font-weight: 700; line-height: 24px; white-space: nowrap; }
.atc-chrome26 .atc-search26:hover { background: #ffcc55; }
.atc-chrome26 .atc-menu-toggle26 { display: none; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 44px; padding: 8px 10px; border: 1px solid #59616d; border-radius: 8px; background: transparent; color: #fff; font-size: 15px; line-height: 24px; }
.atc-chrome26 .atc-menu-toggle26 svg { position: static; display: block; width: 22px; height: 22px; flex-shrink: 0; }
#atc-menu-dialog-2026 {
  position: fixed; inset: 0 0 0 auto;
  width: min(420px, 100%); max-width: 100%; height: 100vh; height: 100dvh; max-height: none;
  margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 16px 0 0 16px;
  overflow-y: auto; overscroll-behavior: contain; background: #fff; color: #17212f;
}
#atc-menu-dialog-2026:not([open]) { display: none; }
#atc-menu-dialog-2026::backdrop { background: #11182799; }
.atc-chrome26 .atc-dialog-head26 { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #14171e; color: white; }
.atc-chrome26 .atc-dialog-brand26 { color: #f8b52a; font-size: 25px; font-weight: 700; line-height: 1; }
.atc-chrome26 .atc-dialog-brand26 span { display: block; margin-top: 6px; color: #dae0e9; font-size: 9px; font-weight: 400; letter-spacing: 2px; }
.atc-chrome26 .atc-close26 { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #59616d; border-radius: 8px; background: transparent; color: #fff; font-size: 23px; line-height: 1; }
.atc-chrome26 .atc-dialog-body26 { padding: 20px 20px max(24px, env(safe-area-inset-bottom)); }
.atc-chrome26 .atc-eyebrow26 { margin: 0 0 4px; color: #856019; font-size: 13px; }
.atc-chrome26 #atc-menu-title-2026 { margin: 0 0 16px; padding: 0; color: #17212f; font-size: 22px; font-weight: 700; line-height: 1.5; }
.atc-chrome26 .atc-quick26 { display: grid; gap: 8px; margin-bottom: 20px; }
.atc-chrome26 .atc-quick26 a { position: relative; display: block; padding: 12px 40px 12px 14px; border: 1px solid #e0e4eb; border-radius: 10px; background: #f6f7fa; color: #17212f; }
.atc-chrome26 .atc-quick26 a:first-child { border-color: #e6b649; background: #fff7e6; }
.atc-chrome26 .atc-quick26 a:hover { border-color: #c08713; }
.atc-chrome26 .atc-quick26 small { display: block; color: #5c6676; font-size: 13px; }
.atc-chrome26 .atc-quick26 strong { display: block; font-size: 18px; line-height: 1.5; }
.atc-chrome26 .atc-quick26 a > span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #9c6900; font-size: 23px; }
.atc-dialog26 .atc-nav26 > ul, .atc-nojs26 .atc-nav26 > ul { display: block; }
.atc-dialog26 .atc-nav26 > ul > li, .atc-nojs26 .atc-nav26 > ul > li { border-top: 1px solid #e9ecf1; }
.atc-dialog26 .atc-nav26 > ul > li > a, .atc-dialog26 .atc-nav26-group > summary,
.atc-nojs26 .atc-nav26 > ul > li > a, .atc-nojs26 .atc-nav26-group > summary { min-height: 52px; padding: 12px 4px; border-radius: 0; background: transparent; color: #17212f; font-size: 17px; }
.atc-dialog26 .atc-nav26-group > summary:hover, .atc-dialog26 .atc-nav26-group[open] > summary,
.atc-nojs26 .atc-nav26-group > summary:hover, .atc-nojs26 .atc-nav26-group[open] > summary { background: #fff7e6; color: #755100; }
.atc-dialog26 .atc-nav26-sub, .atc-nojs26 .atc-nav26-sub { position: static; width: 100%; max-height: none; padding: 0 0 12px; border: 0; border-radius: 0; box-shadow: none; }
.atc-chrome26 .atc-line26 { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin-top: 20px; padding: 12px; border-radius: 10px; background: #2e704f; color: #fff; font-size: 17px; font-weight: 700; }
.atc-chrome26 .atc-nojs26 { display: none; padding: 16px; background: #fff; color: #17212f; }
.atc-chrome26 .atc-nojs26 > summary { padding: 10px 0; cursor: pointer; }
.atc-sponsor26 { position: relative; display: block; float: none; clear: both; width: 100%; margin: 0; padding: 12px 0; background: #f6f7f9; border-bottom: 1px solid #e6e9ee; text-align: center; }
.atc-sponsor26-unit { box-sizing: content-box; margin: 0 auto; }
.atc-sponsor26-desktop { display: block; width: 728px; min-height: 90px; }
.atc-sponsor26-mobile { display: none; width: 336px; min-height: 255px; }
.atc-sponsor26-desktop > div { width: 728px; min-height: 90px; }
.atc-sponsor26-mobile > div { width: 336px; min-height: 280px; }
.atc-sponsor26[hidden], .atc-sponsor26-unit[hidden] { display: none !important; }
.atc-product-ad26 { display: block; position: relative; float: none; clear: both; width: 100%; margin: 24px 0; padding: 16px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; background: #fafafa; }
.atc-product-ad26 > p { margin: 0 0 8px; text-align: center; font: 12px/1.5 Kanit, Tahoma, sans-serif; color: #667085; }
@media (max-width: 1100px) {
  .atc-chrome26 .atc-bar26 { width: calc(100% - 24px); min-height: 62px; padding: 6px 0; gap: 10px; }
  .atc-chrome26 .atc-logo26 { flex: 0 1 160px; width: 160px; min-width: 0; }
  .atc-chrome26 .atc-logo26 img { width: 160px; height: 44px; }
  .atc-chrome26 .atc-desktop26 { display: none; }
  .atc-chrome26 .atc-menu-toggle26 { display: inline-flex; }
  .atc-chrome26 .atc-search26 { padding: 10px 12px; font-size: 15px; }
  .atc-chrome26 .atc-search26 > span { display: none; }
  .atc-chrome26 .atc-nojs26 { display: block; }
  .atc-sponsor26 { padding: 8px 0; }
  .atc-sponsor26-desktop { display: none; }
  .atc-sponsor26-mobile { display: block; }
}
@media (max-width: 359px) {
  .atc-chrome26 .atc-bar26 { gap: 6px; }
  .atc-chrome26 .atc-actions26 { gap: 6px; }
  .atc-chrome26 .atc-menu-toggle26 { padding: 8px; }
  .atc-chrome26 .atc-menu-toggle26 svg { display: none; }
  .atc-chrome26 .atc-search26 { padding: 10px; }
}
/* Preserve the original GPT minimum width; never scale/crop an ad iframe. */
@media (max-width: 335px) { .atc-sponsor26 { display: none; } }
/* ให้ scrollbar ของ desktop ใช้ขนาดเดียวกันทุกหน้า */
@media (min-width: 1101px) {
  html {
    scrollbar-gutter: stable;
    scrollbar-width: auto;
  }

  html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  html::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  html::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }
}
/* Rankings v1: compact rim picker. Separate class keeps global dropdown JS unchanged. */
.atc-chrome26 .atc-nav26-rims { margin:0; border:0; }
.atc-chrome26 .atc-nav26-rims>summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; padding:10px 12px; border-radius:6px; background:transparent; color:#263446; font:inherit; font-size:16px; line-height:24px; cursor:pointer; list-style:none; }
.atc-chrome26 .atc-nav26-rims>summary:hover, .atc-chrome26 .atc-nav26-rims[open]>summary { background:#fff5dc; color:#755100; }
.atc-chrome26 .atc-nav26-rim-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; padding:8px 6px 12px; }
.atc-chrome26 .atc-nav26-rim-grid a { min-height:40px; padding:8px 3px; text-align:center; background:#f1f4f7; border-radius:5px; font-size:12px; }
