
:root {
  --gr-bg: #ffffff;
  --gr-surface: #ffffff;
  --gr-surface-2: #f3f5f8;
  --gr-section-head: #eef1f5;
  --gr-border: #e3e7ed;
  --gr-text: #1f2329;
  --gr-text-2: #5b6470;
  --gr-text-3: #8a93a0;

  --gr-primary: #06a3fd;
  --gr-primary-dark: #0590e0;
  --gr-header: #282f37;
  --gr-primary-soft: #e6f5ff;
  --gr-tag-bg: #e6f5ff;   /* ป้ายแนวเกมในแผงสไลด์และ pop up */
  --gr-tag-text: #0277c0;

  --gr-red: #e8202a;
  --gr-star: #f5b301;
  --gr-gold: #f5b301;
  --gr-silver: #8fa3b8;
  --gr-bronze: #e8772e;

  --gr-radius: 6px;
  --gr-shadow: 0 2px 10px rgba(20, 30, 50, .08);
  --gr-shadow-hover: 0 8px 22px rgba(20, 30, 50, .16);

  --gr-font: 'Poppins-Regular', 'Kanit', sans-serif;
  --gr-font-head: 'Poppins-Regular', 'Kanit', sans-serif;
  --gr-font-medium: 'Poppins-Medium', 'Kanit', sans-serif;
  --gr-site: 1140px;
  --gr-side: 250px;
  --gr-hero-ratio: 800 / 400;
  --gr-hero-info: 340px;
}

html[data-theme="dark"] {
  --gr-bg: #15181d;
  --gr-surface: #1d2127;
  --gr-surface-2: #23282f;
  --gr-section-head: #232830;
  --gr-border: #2e343d;
  --gr-text: #e9edf2;
  --gr-text-2: #b2bac5;
  --gr-text-3: #7f8996;
  --gr-primary-soft: #16334a;
  --gr-tag-bg: rgba(6, 163, 253, .18);
  --gr-tag-text: #6cc8ff;
  --gr-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  --gr-shadow-hover: 0 8px 22px rgba(0, 0, 0, .5);
}

.gr-page { transition: background .2s; }
.gr-scope {
  color: var(--gr-text);
  font-family: var(--gr-font);
  font-size: 15px;
  line-height: 1.45;
}
body.gr-page { background: var(--gr-bg) !important; }
.gr-scope *, .gr-scope *::before, .gr-scope *::after { box-sizing: border-box; }
.gr-scope a, .gr-scope a:hover { color: inherit; text-decoration: none; }
.gr-scope img { display: block; max-width: 100%; }
.gr-scope h1, .gr-scope h2, .gr-scope h3, .gr-scope h4 { margin: 0; font-family: var(--gr-font-head); font-weight: 400; color: var(--gr-text); }
.gr-scope ul { list-style: none; margin: 0; padding: 0; }
.gr-scope button { font-family: inherit; cursor: pointer; }



.gr-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #1b2026;
  border-bottom: 3px solid var(--gr-primary);
}
.gr-hero__peek {
  position: absolute; top: 0; bottom: 0; width: calc((100% - var(--gr-site)) / 2);
  background-size: cover; background-position: center;
  filter: grayscale(.6) brightness(.32);
}
.gr-hero__peek--prev { left: 0; }
.gr-hero__peek--next { right: 0; }
.gr-hero__peek { cursor: pointer; transition: filter .25s; }
.gr-hero__peek:hover { filter: grayscale(.3) brightness(.5); }

.gr-hero__stage { position: relative; display: grid; width: var(--gr-site); max-width: 100%; margin: 0 auto; }
.gr-hero__slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--gr-hero-info); align-items: start;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
}
.gr-hero__slide.is-active { opacity: 1; visibility: visible; }
.gr-hero__media { position: relative; display: block; aspect-ratio: var(--gr-hero-ratio); overflow: hidden; background: #000; }
.gr-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.gr-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.gr-hero__video.is-on { opacity: 1; }
iframe.gr-hero__video {
  inset: auto; left: 0; top: 50%; height: auto; aspect-ratio: 16 / 9; border: 0;
  transform: translateY(-50%); /* กรอบเป็น 16:9 แล้ว (ดู --gr-hero-ratio จอใหญ่) วิดีโอพอดีกรอบ ไม่ต้องขยายตัดขอบ */
}
/* วิดีโอเล่นเฉพาะจอใหญ่ที่ใช้เมาส์ (home.js useVideo) ให้กรอบเป็น 16:9 เท่าวิดีโอ YouTube / มือถือยังเป็น 2:1 เหมือนเดิม (รูปหลักตัดซ้ายขวาเล็กน้อยด้วย object-fit: cover) */
@media (min-width: 801px) { :root { --gr-hero-ratio: 16 / 9; } }
.gr-hero__media.is-peeking .gr-hero__video { opacity: 0; }
.gr-hero__mute {
  position: absolute; left: 12px; bottom: 18px; z-index: 5; /* เหนือแถบเลื่อนเวลา .gr-scrub */
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px;
}
.gr-hero__mute:hover { background: var(--gr-primary); }
.gr-hero__media.is-playing .gr-hero__mute { display: flex; }
/* คลิกหยุดวิดีโอ (home.js): ปุ่มเล่นกลางกรอบ คลิกอีกครั้งเล่นต่อ */
.gr-hero__media.is-playing.is-paused::after {
  content: "\f04b"; font-family: FontAwesome; position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding-left: 5px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; pointer-events: none;
}
.gr-hero__media.is-playing { cursor: pointer; }
/* สไลด์ที่มีคลิป (คอมเท่านั้น วิดีโอเล่นเมื่อชี้): ป้ายมุมซ้ายล่าง ข้อความจาก data-hint (index2.php) หายไปตอนวิดีโอโหลด/เล่น */
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .gr-hero__media[data-hint]::before {
    content: "\f04b\00a0\00a0" attr(data-hint); font-family: FontAwesome, var(--gr-font);
    position: absolute; left: 14px; bottom: 16px; z-index: 3; padding: 6px 12px 6px 10px; border-radius: 999px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; line-height: 1; pointer-events: none; transition: opacity .25s;
  }
  .gr-hero__media.is-playing::before, .gr-hero__media.is-loading::before { opacity: 0; }
}

.gr-hero__info {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px;
  background: var(--gr-surface); color: var(--gr-text);
  border-top: 3px solid var(--gr-primary);
  overflow: hidden;
  align-self: stretch; container-type: size;
}
.gr-hero__info > * { flex-shrink: 0; }
.gr-hero__info h3 {
  color: var(--gr-text); font-family: var(--gr-font-medium); font-size: 21px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gr-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 22px; overflow: hidden; }
.gr-hero__tags span {
  padding: 2px 9px; border-radius: 3px; font-size: 12px; line-height: 18px; white-space: nowrap;
  background: var(--gr-tag-bg); color: var(--gr-tag-text);
}
.gr-hero__tags span.gr-hero__tags-more { background: var(--gr-surface-2); color: var(--gr-text-2); }
.gr-hero__info > .gr-hero__desc { flex: 1 1 0; min-height: 0; } /* ใช้พื้นที่ที่เหลือทั้งหมด home.js (fitHeroDescs) ตัดข้อความให้พอดีจำนวนบรรทัดที่ว่าง */
.gr-hero__desc.is-fit { display: block; -webkit-line-clamp: none; }
.gr-hero__info .gr-hero__desc:not(.is-fit) { visibility: hidden; } /* ยังไม่ได้ตัด: ซ่อนไว้ก่อน ไม่ให้เห็นข้อความกระโดดจาก 3 บรรทัดเป็นจำนวนจริง */ /* ตัดด้วย JS แล้ว: ไม่ใช้ line-clamp (บรรทัดถัดไปไม่มีให้สระโผล่) */
.gr-hero__desc {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--gr-text-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gr-hero__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gr-hero__shots img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; cursor: pointer;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s;
}
.gr-hero__shots img:hover { outline-color: var(--gr-primary); }
@container (max-height: 360px) { .gr-hero__shots img:nth-child(n+3) { display: none; } }
@container (max-height: 290px) { .gr-hero__shots { display: none; } }
.gr-hero__buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; margin-top: auto; border-radius: 4px;
  background: var(--gr-primary); color: #fff !important;
  font-family: var(--gr-font-medium); font-size: 17px; transition: background .2s;
}
.gr-hero__buy:hover { background: var(--gr-primary-dark); }

.gr-hero__arrow {
  position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0 0 3px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 30px; line-height: 1;
  transition: background .2s;
}
.gr-hero__arrow:hover { background: var(--gr-primary); }
.gr-hero__arrow--prev { left: max(10px, calc((100% - var(--gr-site)) / 4 - 22px)); }
.gr-hero__arrow--next { right: max(10px, calc((100% - var(--gr-site)) / 4 - 22px)); }
/* จอที่ขอบข้างสไลด์แคบ (ลูกศรวางในขอบข้างไม่พอ): ลูกศรขวาย้ายมาชิดขอบขวาของรูป ไม่ทับแผงข้อความด้านขวา */
@media (min-width: 801px) and (max-width: 1315px) {
  .gr-hero__arrow--next { right: calc(max(0px, (100% - var(--gr-site)) / 2) + var(--gr-hero-info) + 10px); }
}

.gr-hero__dots { position: absolute; bottom: 10px; left: calc(50% - var(--gr-hero-info) / 2); transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.gr-hero__dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background .2s; }
.gr-hero__dots button.is-active { background: var(--gr-primary); }
.gr-layout {
  isolation: isolate;
  display: grid; column-gap: 20px; row-gap: 16px;
  grid-template-columns: minmax(0, 1fr) var(--gr-site) minmax(0, 1fr);
  padding: 16px 16px 40px;
}
.gr-layout > main { grid-column: 2; min-width: 0; }

.gr-left { grid-column: 1; justify-self: end; width: 100%; max-width: var(--gr-side); align-self: start; }
/* แพลตฟอร์ม (.gr-pf) + แนวเกม (.gr-genres): CSS หลักย้ายไป menubarpc.php (ใช้ร่วมกับเมนูมือถือทุกหน้า) ที่นี่เหลือแค่ส่วนเฉพาะหน้าแรก */

/* หัวข้อที่เปลี่ยนจาก div เป็น h2 (ความคิดเห็น / ติดตามเรา): ให้หน้าตาเท่าเดิม */
h2.gr-h-plain { font-weight: 400; margin-bottom: 0; }

/* การ์ดความน่าเชื่อถือ (แถบซ้าย) */
.gr-trust { margin-top: 14px; border-radius: 10px; background: var(--gr-surface); border: 1px solid var(--gr-border); box-shadow: var(--gr-shadow); overflow: hidden; }
.gr-trust__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #0590e0, #06a3fd 60%, #3fbcff); color: #fff; }
.gr-trust__head > i { font-size: 26px; }
.gr-trust__head b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
.gr-trust__head small { display: block; font-size: 12px; opacity: .92; }
.gr-trust__list { list-style: none; margin: 0; padding: 8px 0 4px; }
.gr-trust__list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 16px; font-size: 13.5px; line-height: 1.45; color: var(--gr-text); }
.gr-trust__list li > i { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: var(--gr-primary); }
.gr-trust__list li small { display: block; color: var(--gr-text-3); font-size: 12px; }
.gr-trust__list li a { color: var(--gr-text); }
.gr-trust__list li a:hover { color: var(--gr-primary); }
.gr-trust__about { display: block; margin: 4px 12px 12px; padding: 8px; border-radius: 8px; text-align: center; font-size: 13px; background: var(--gr-surface-2); color: var(--gr-primary) !important; transition: background .15s; }
.gr-trust__about:hover { background: var(--gr-primary-soft); text-decoration: none; }

.gr-section { margin-bottom: 26px; }
.gr-section__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin-bottom: 4px; border-radius: 3px; background: var(--gr-section-head);
}
.gr-section__head h2 { font-size: 25px; line-height: 1.3; }
.gr-section__head--plain { background: none; padding-left: 12px; }
.gr-section__icon { display: none; }
.gr-section__head--rec { background: none; padding-left: 12px; }
.gr-scope .gr-section__more {
  margin-left: auto; flex-shrink: 0; text-align: center; white-space: nowrap;
  color: #0277c0 !important; background: var(--gr-surface) !important;
  border: 1px solid #9fcbe8 !important; border-radius: 4px;
  transition: background .2s, color .2s, border-color .2s;
}
.gr-scope .gr-section__more:hover {
  color: #fff !important; background: #0277c0 !important; border-color: #0277c0 !important;
}
.gr-section__head { justify-content: flex-start; gap: 12px; }
.gr-scope .gr-section__head .gr-section__more { margin-left: 4px; width: auto; min-width: 0; height: auto; line-height: 21px; }
html[data-theme="dark"] .gr-scope .gr-section__more { color: #6cc8ff !important; border-color: rgba(108, 200, 255, .45) !important; background: transparent !important; }
html[data-theme="dark"] .gr-scope .gr-section__more:hover { color: #fff !important; background: #0277c0 !important; border-color: #0277c0 !important; }
.gr-section__body { padding: 10px; border-radius: 3px; background: var(--gr-surface-2); }
.gr-tabs__list { display: flex; align-items: baseline; gap: 4px 22px; flex-wrap: wrap; }
.gr-scope .gr-tab {
  position: relative; display: inline-block; padding: 0 0 4px; border: 0; background: none; text-decoration: none; cursor: pointer;
  font-family: var(--gr-font-head); font-size: 25px; line-height: 1.3; color: var(--gr-text-3);
  transition: color .2s;
}
.gr-scope .gr-tab:hover { color: var(--gr-text); text-decoration: none; }
.gr-scope .gr-tab.is-active { color: var(--gr-text); }
.gr-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: var(--gr-accent, var(--gr-primary)); transform: scaleX(0); transition: transform .25s;
}
.gr-tab.is-active::after { transform: scaleX(1); }
.gr-tab:focus-visible { outline: 2px solid var(--gr-primary); outline-offset: 2px; }
html.gr-home .gr-scope .gr-tab { font-size: 24px; line-height: 1.2; }
@media (max-width: 767px) { .gr-scope .gr-tab, html.gr-home .gr-scope .gr-tab { font-size: 19px; } }

.gr-platform {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #101820; color: #fff; font-size: 13px; flex-shrink: 0;
}
.gr-platform--float { position: absolute; top: 6px; right: 6px; z-index: 2; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.gr-thumb { position: relative; display: block; overflow: hidden; background: #0d1014; }
.gr-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gr-title-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.3; min-height: 2.6em;
}

.gr-deal {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--gr-radius); background: var(--gr-surface);
  box-shadow: var(--gr-shadow); transition: transform .2s, box-shadow .2s;
}
.gr-deal:hover { transform: translateY(-3px); box-shadow: var(--gr-shadow-hover); }
.gr-deal .gr-thumb { aspect-ratio: 200 / 172; }
.gr-off {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 12px; background: var(--gr-red);
  color: #fff; font-size: 15px; font-family: var(--gr-font-medium);
}
.gr-deal__body { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; flex: 1; }
.gr-deal__title { font-size: 15px; font-family: var(--gr-font-medium); }
.gr-deal__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gr-deal__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.gr-deal__price strong { color: var(--gr-red); font-size: 19px; font-family: var(--gr-font-medium); font-weight: 400; white-space: nowrap; }
.gr-deal__price del { color: var(--gr-text-3); font-size: 13px; white-space: nowrap; }
.gr-deal__until { font-size: 14px; color: var(--gr-text-2); }
.gr-countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gr-countdown.is-urgent { color: var(--gr-red); font-family: var(--gr-font-medium); }
.gr-countdown.is-ended { color: var(--gr-text-3); }

.gr-upcoming { display: grid; grid-template-columns: 1fr 1fr 1.18fr; gap: 16px 30px; align-items: start; }
.gr-poster .gr-thumb { aspect-ratio: 285 / 378; }
.gr-poster__meta { padding: 6px 6px 0; font-size: 16px; }
.gr-poster__price { color: var(--gr-primary); font-size: 18px; font-family: var(--gr-font-medium); white-space: nowrap; }
.gr-price { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 2px; margin-top: 4px; }
.gr-price__off { padding: 0 6px; border-radius: 3px; background: var(--gr-red); color: #fff; font-size: 13px; font-family: var(--gr-font-medium); line-height: 20px; }
.gr-price strong { color: var(--gr-primary); font-size: 17px; font-family: var(--gr-font-medium); font-weight: 400; white-space: nowrap; }
.gr-price del { color: var(--gr-text-3); font-size: 13px; white-space: nowrap; }
.gr-mini .gr-price strong { font-size: 15px; }

/* แถบราคา [% แดง][ราคา เขียว] (index2.php gr_price_bar): ข้อเสนอจำกัดเวลา / ซอฟต์แวร์ / กำลังจะมาถึง
   เขียว #078610 / แดง #e02424 / ฟ้า #0277c0: ตัวอักษรขาวอ่านได้ตามเกณฑ์ 4.5:1 (เขียวเดิม #01B909 ได้แค่ ~2.6)
   การ์ดแคบกว่า 205px: ราคาเต็มขีดฆ่ายกขึ้นไปบรรทัดบน แถบยังเต็มความกว้าง */
html.gr-home { --gr-fill-green: #078610; }
.gr-pbar { container-type: inline-size; margin-top: 4px; }
.gr-pbar__was { display: none; margin-bottom: 2px; font-size: 12px; color: var(--gr-text-3); white-space: nowrap; }
.gr-pbar__strip { display: flex; align-items: stretch; font-family: var(--gr-font-medium); line-height: 1.2; }
.gr-pbar__off { display: flex; align-items: center; padding: 5px 8px; border-radius: 4px 0 0 4px; background: var(--gr-fill-red, #e02424); color: #fff; font-size: 15px; white-space: nowrap; }
.gr-pbar__now { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 5px 8px; border-radius: 0 4px 4px 0; background: var(--gr-fill-green, #078610); color: #fff; white-space: nowrap; }
.gr-pbar__now:first-child { border-radius: 4px; }
.gr-scope .gr-pbar__now strong { color: #fff; font-size: 17px; font-weight: 400; }
.gr-pbar__now del { color: #fff; font-size: 12px; opacity: .9; }
@container (max-width: 205px) {
  .gr-pbar__now del { display: none; }
  .gr-pbar__was { display: block; }
}
@container (min-width: 260px) { /* การ์ดใหญ่ (โปสเตอร์กำลังจะมาถึง): แถบหนาขึ้น ไม่ดูแบนเทียบกับรูป */
  .gr-pbar__off, .gr-pbar__now { padding-top: 8px; padding-bottom: 8px; }
  .gr-pbar__off { font-size: 16px; }
  .gr-scope .gr-pbar__now strong { font-size: 19px; }
}
@container (min-width: 300px) { /* โปสเตอร์จอ 1080p (~317px) */
  .gr-pbar__off, .gr-pbar__now { padding-top: 11px; padding-bottom: 11px; }
  .gr-pbar__off { padding-left: 12px; padding-right: 12px; font-size: 19px; }
  .gr-scope .gr-pbar__now strong { font-size: 23px; }
  .gr-pbar__now del { font-size: 14px; }
}
.gr-poster__meta > span.gr-title-2 { display: -webkit-box; } /* ชื่อโปสเตอร์ 2 บรรทัดเสมอ (ชนะ .gr-poster__meta > span { display: block }) */
.gr-sw__item .gr-pbar { margin-top: 0; }
/* การ์ดออกใหม่/ขายดี/เทรนด์ (gr_card_best ใช้คลาสเดิมของเว็บ): แถบราคามุมมน 4px + ปุ่มซื้อเลยสีเรียบ (เดิมไล่สีฟ้าอ่อน ตัวอักษรขาวอ่านยาก)
   เฉพาะหน้าแรก (.gr-scope) หน้าอื่นที่ใช้ .buybuttonmini ยังเหมือนเดิม */
.gr-scope .gr-best__item .col-4 .span-price { border-radius: 4px 0 0 4px; }
.gr-scope .gr-best__item .col-8 .span-price { border-radius: 0 4px 4px 0; }
.gr-scope .gr-best__item a > .span-price:not(.buybuttonmini) { border-radius: 4px; }
.gr-scope .buybuttonmini { background: var(--gr-fill-blue, #0277c0) !important; background-image: none !important; box-shadow: none !important; border: 0 !important; border-radius: 4px; color: #fff !important; transition: background .15s; }
.gr-scope .buybuttonmini:hover, .gr-scope a:hover > .buybuttonmini { background: var(--gr-fill-blue-dark, #02639f) !important; }
.gr-sw__buy { display: block; margin-top: -1px; padding: 6px; border-radius: 4px; background: var(--gr-fill-blue, #0277c0); color: #fff; text-align: center; font-family: var(--gr-font-medium); font-size: 14px; line-height: 1.3; }
.gr-sw__item:hover .gr-sw__buy { background: var(--gr-fill-blue-dark, #02639f); }
.gr-release { margin-top: 4px; font-size: 14px; color: var(--gr-text-2); }
.gr-poster__meta > span { display: block; }
/* กำลังจะมาถึง: ป้าย "พรีออเดอร์" ติดขอบซ้ายล่างของรูป แบบเดียวกับป้ายวันวางจำหน่ายของออกใหม่ (.gr-best__date) / มุมขวาบน = ไอคอนแพลตฟอร์ม */
.gr-soon {
  position: absolute; left: 0; bottom: 10px; z-index: 2;
  padding: 3px 10px 3px 8px; border-radius: 0 12px 12px 0;
  background: var(--gr-primary); color: #fff;
  font-family: var(--gr-font-medium); font-size: 13.5px; line-height: 1.3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap; pointer-events: none;
}
.gr-soon--sm { bottom: 6px; padding: 2px 8px 2px 6px; font-size: 11.5px; }
@media (max-width: 575px) { .gr-soon { bottom: 6px; padding: 2px 8px 2px 6px; font-size: 11.5px; } }
.gr-upcoming__mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.gr-mini .gr-thumb { aspect-ratio: 166 / 152; }
.gr-mini__title { font-size: 15px; font-family: var(--gr-font-medium); }
.gr-scope .gr-mini__title { margin-top: 6px; }

.gr-feed__list { display: flex; flex-direction: column; gap: 16px; }
.gr-feed__card {
  display: block; padding: 10px 12px 12px; border-radius: var(--gr-radius);
  background: var(--gr-surface-2); transition: box-shadow .25s;
}
.gr-feed__card.is-new { animation: gr-feed-in .45s ease both; }
@keyframes gr-feed-in { from { opacity: 0; transform: translateY(14px); } }
.gr-scope .gr-feed__title {
  margin-bottom: 8px; font-size: 24px; line-height: 1.3; color: #0a8fd6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gr-feed__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gr-feed__main { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #0d1014; }
.gr-feed__shots { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 0; min-height: 100%; }
.gr-scope .gr-feed__shots img, .gr-scope .gr-feed__main img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 3px; }
.gr-feed__main { position: relative; }
.gr-feed__video {
  position: absolute; left: 0; top: 50%; z-index: 1; width: 100%; height: auto; aspect-ratio: 16 / 9;
  transform: translateY(-50%); border: 0; pointer-events: none; opacity: 0; transition: opacity .3s; /* กรอบ 16:9 เท่าวิดีโอ ไม่ต้องขยายตัดขอบ */
}
.gr-feed__main.is-playing .gr-feed__video { opacity: 1; }

/* แถบเลื่อนเวลาวิดีโอ (home.js addScrubber) YouTube แบบ controls=0 ไม่มีให้ คลิก/ลากเพื่อข้ามไปช่วงที่ต้องการ */
.gr-scrub {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 14px;
  display: none; align-items: flex-end; cursor: pointer; touch-action: none;
}
.gr-scrub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); transition: height .15s; }
.gr-scrub__fill { position: relative; width: 0; height: 4px; background: var(--gr-primary, #06a3fd); transition: height .15s; }
.gr-scrub:hover::before, .gr-scrub:hover .gr-scrub__fill, .gr-scrub.is-drag::before, .gr-scrub.is-drag .gr-scrub__fill { height: 7px; }
.gr-hero__media.is-playing .gr-scrub, .gr-feed__main.is-playing .gr-scrub { display: flex; }
.gr-hero__media.is-peeking .gr-scrub, .gr-feed__main.is-peeking .gr-scrub { display: none; }

/* ปุ่มเสียง + แถบปรับระดับเสียง (home.js makeSound) ใช้ทั้งสไลด์ด้านบนและเกมที่คุณอาจชอบ / แถบแสดงเฉพาะตอนเปิดเสียง */
.gr-sound {
  position: absolute; left: 12px; bottom: 18px; z-index: 5;
  display: none; align-items: center; gap: 2px; height: 34px; padding-right: 0;
  border-radius: 17px; background: rgba(0, 0, 0, .55); color: #fff;
}
.gr-hero__media.is-playing .gr-sound, .gr-feed__main.is-playing .gr-sound { display: flex; }
.gr-hero__media.is-peeking .gr-sound, .gr-feed__main.is-peeking .gr-sound { display: none; }
.gr-sound__btn {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer;
}
.gr-sound__btn:hover { background: var(--gr-primary); }
.gr-sound__vol { width: 80px; margin: 0 12px 0 4px; accent-color: var(--gr-primary, #06a3fd); cursor: pointer; }
.gr-sound.is-muted .gr-sound__vol { display: none; }
.gr-scope .gr-feed__main img.gr-feed__peek { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .2s; pointer-events: none; }
.gr-scope .gr-feed__main.is-peeking img.gr-feed__peek { opacity: 1; }
.gr-scope .gr-feed__shots img { outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s; }
.gr-scope .gr-feed__shots img:hover { outline-color: var(--gr-primary); }
.gr-feed__foot { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.gr-feed__desc {
  flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.55; color: var(--gr-text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* ราคา "เกมที่คุณอาจชอบ": แบบเดียวกับ "ลด 70%" (.gr-budget__off / .gr-budget__pp) ป้าย % แดง แยกจากป้ายราคาเขียว */
.gr-feed__price { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-shrink: 0; }
.gr-feed__off { padding: 5px 10px; border-radius: 6px; background: var(--gr-fill-red, #e02424); color: #fff; font-family: var(--gr-font-medium); font-size: 17px; line-height: 1.2; }
.gr-feed__pp { display: flex; flex-direction: column; align-items: flex-end; padding: 3px 12px 4px; border-radius: 6px; background: var(--gr-fill-green, #078610); line-height: 1.15; white-space: nowrap; }
.gr-feed__pp del { color: #fff; opacity: .85; font-size: 12.5px; }
.gr-scope .gr-feed__pp strong { color: #fff; font-size: 21px; font-family: var(--gr-font-medium); font-weight: 400; }
html[data-theme="dark"] .gr-scope .gr-feed__title { color: #6cc8ff; }
.gr-feed__more-wrap { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.gr-feed__more-wrap::before, .gr-feed__more-wrap::after { content: ""; flex: 1; height: 1px; background: var(--gr-border); }
.gr-scope .gr-feed__more-wrap .gr-feed__more {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 240px; height: 44px; margin: 0; padding: 0 26px;
  border: 0; border-radius: 999px; background: var(--gr-primary); color: #fff; font-size: 16px; font-family: var(--gr-font-medium);
  cursor: pointer; box-shadow: 0 4px 14px rgba(6, 163, 253, .35); transition: background .2s, transform .2s, box-shadow .2s;
}
.gr-scope .gr-feed__more-wrap .gr-feed__more:hover { background: var(--gr-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(6, 163, 253, .45); }
.gr-feed__more i { font-size: 18px; transition: transform .2s; }
.gr-feed__more:hover i { transform: translateY(2px); }
@media (max-width: 575px) { .gr-scope .gr-feed__more-wrap .gr-feed__more { min-width: 0; padding: 0 20px; } .gr-feed__more-wrap { gap: 10px; } }
.gr-feed__more.is-loading { opacity: .6; pointer-events: none; }
@media (max-width: 767px) {
  .gr-scope .gr-feed__title { font-size: 18px; }
  .gr-feed__media { grid-template-columns: 1fr; gap: 6px; }
  .gr-feed__shots { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; gap: 6px; height: auto; min-height: 0; }
  .gr-scope .gr-feed__shots img { aspect-ratio: 16 / 9; height: auto; }
  .gr-feed__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  html.gr-home .gr-feed__media {
    grid-template-columns: calc((100% - 6px) * .29701) 1fr;
    grid-template-areas: "cover main" "shots shots";
  }
  html.gr-home .gr-feed__cover { display: block; grid-area: cover; height: 0; min-height: 100%; }
  html.gr-home .gr-feed__main { grid-area: main; }
  html.gr-home .gr-feed__shots { grid-area: shots; }
  html.gr-home .gr-scope .gr-feed__main-art { display: none; }
  html.gr-home .gr-scope .gr-feed__main-shot { display: block; }
}

.gr-feed__cover { display: none; overflow: hidden; border-radius: 3px; background: #0d1014; }
.gr-scope .gr-feed__cover img { width: 100%; height: 100%; object-fit: cover; }
.gr-scope .gr-feed__main-shot { display: none; }
.gr-feed__main[data-youtube]::after {
  content: "\f04b"; font-family: FontAwesome; position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding-left: 3px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; transition: opacity .25s;
}
.gr-feed__main.is-playing::after, .gr-feed__main.is-peeking::after { opacity: 0; }
.gr-feed__main.is-playing.is-paused:not(.is-peeking)::after { opacity: 1; }
@media (min-width: 768px) {
  html.gr-home .gr-feed__cover { display: block; grid-area: cover; height: 0; min-height: 100%; }
  html.gr-home .gr-feed__main { grid-area: main; }
  html.gr-home .gr-scope .gr-feed__main-art { display: none; }
  html.gr-home .gr-scope .gr-feed__main-shot { display: block; }
  html.gr-home .gr-feed__shots { grid-area: shots; }

  html.gr-home .gr-feed__media { grid-template-columns: calc((100% - 9.7778px) * .240624) calc((100% - 9.7778px) * .569532) 1fr; grid-template-areas: "cover main shots"; }
  html.gr-home .gr-feed__card { width: 100%; max-width: 1450px; margin-left: auto; margin-right: auto; }
  html.gr-home .gr-feed__shots { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
  html.gr-home .gr-feed__shots img:nth-child(n+4) { display: none; }

}

.gr-peek {
  position: fixed; left: 0; top: 0; z-index: 1200; width: 384px; padding: 10px;
  border-radius: 8px; border-top: 3px solid var(--gr-primary); background: var(--gr-surface); color: var(--gr-text);
  box-shadow: 0 10px 30px rgba(20, 30, 50, .22), 0 0 0 1px var(--gr-border);
  opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none;
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.gr-peek.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.gr-peek__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #0d1014; }
.gr-peek__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.gr-peek__img.is-on { opacity: 1; }
.gr-peek__title {
  margin: 0 2px 8px; color: var(--gr-text); font-family: var(--gr-font-medium); font-size: 16px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gr-peek__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 2px 0; }
.gr-peek__tags:empty { display: none; }
.gr-peek__tags span {
  padding: 2px 8px; border-radius: 3px; background: var(--gr-tag-bg); color: var(--gr-tag-text);
  font-size: 12px; line-height: 18px; white-space: nowrap;
}
.gr-scope .gr-peek__desc, .gr-peek__desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  margin: 8px 2px 2px; color: var(--gr-text-2); font-size: 13px; line-height: 1.5;
}
.gr-peek__desc:empty { display: none; }

.gr-scope { --gr-glow: 0 0 0 2px rgba(6, 163, 253, .9), 0 0 16px 3px rgba(6, 163, 253, .5); }
.gr-rec .gr-thumb, .gr-poster .gr-thumb, .gr-mini .gr-thumb { transition: box-shadow .25s; }
.gr-deal:hover { transform: translateY(-3px); box-shadow: var(--gr-glow); }
.gr-feed__card:hover { box-shadow: 0 0 0 1.5px rgba(6, 163, 253, .4), 0 0 10px rgba(6, 163, 253, .14); }
.gr-rec:hover .gr-thumb, .gr-poster:hover .gr-thumb, .gr-mini:hover .gr-thumb { box-shadow: var(--gr-glow); }
.gr-rec:hover .gr-rec__title, .gr-poster:hover .gr-poster__meta > span, .gr-scope .gr-mini:hover .gr-mini__title { color: var(--gr-primary); }
.gr-scroller:not(.gr-scroller--best) .gr-scroller__track { padding: 10px 8px 14px; margin: -6px -8px -4px; scroll-padding-inline: 8px; }

.gr-rec .gr-thumb { aspect-ratio: 1 / 1; }
.gr-rec__title { text-align: center; font-size: 16px; color: var(--gr-text-2); }
.gr-scope .gr-rec__title { margin-top: 8px; }

.gr-best__item { display: flex; flex-direction: column; min-width: 0; }
.gr-best__item .gamethumbnail { padding: 0; margin: 0; width: 100%; }
.gr-best__item .gametext { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
.gr-best__item .row { flex-wrap: nowrap; }
.gr-rank {
  display: flex; align-items: center; justify-content: center; height: 26px; margin-bottom: 4px;
  font-family: var(--gr-font-head); font-size: 16px; color: var(--gr-text-2);
}
.gr-rank--crown { position: relative; width: 24px; margin: 0 auto 4px; }
.gr-rank--crown i { font-size: 22px; }
.gr-rank--crown span { position: absolute; top: 5px; left: 0; right: 0; text-align: center; color: #fff; font-size: 10px; font-weight: 700; }
.gr-rank--1 i { color: var(--gr-gold); }
.gr-rank--2 i { color: var(--gr-silver); }
.gr-rank--3 i { color: var(--gr-bronze); }
.gr-scroller { --gr-gap: 12px; position: relative; }
.gr-scroller__track {
  display: grid; grid-auto-flow: column; gap: var(--gr-gap);
  grid-auto-columns: calc((100% - (var(--gr-per) - 1) * var(--gr-gap)) / var(--gr-per));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 10px; scrollbar-width: none;
}
.gr-scroller__track::-webkit-scrollbar { display: none; }
/* เมาส์: ช่องว่างระหว่างการ์ด = มือแบ (ลากเลื่อนได้) ลิงก์/ปุ่มยังเป็นนิ้วชี้ ระหว่างลาก = มือกำทั้งหน้า (home.js ใส่ html.gr-grabbing) */
@media (hover: hover) and (pointer: fine) {
  .gr-scroller__track { cursor: grab; }
  .gr-scroller__track a, .gr-scroller__track button { cursor: pointer; }
}
html.gr-grabbing, html.gr-grabbing * { cursor: grabbing !important; user-select: none; }
.gr-scroller__track > * { scroll-snap-align: start; }
.gr-scroller__btn {
  position: absolute; top: var(--gr-btn-top, 42%); z-index: 4; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--gr-border); border-radius: 50%;
  background: var(--gr-surface); color: var(--gr-text); font-size: 24px; line-height: 1;
  box-shadow: var(--gr-shadow-hover); transition: opacity .2s, background .2s, color .2s;
}
.gr-scroller__btn:hover { background: var(--gr-primary); border-color: var(--gr-primary); color: #fff; }
.gr-scroller__btn--prev { left: -12px; }
.gr-scroller__btn--next { right: -12px; }
.gr-scroller__btn[disabled] { opacity: 0; pointer-events: none; }
.gr-scroller--best { --gr-btn-top: 38%; }
.gr-scroller--best .gr-scroller__track { padding-left: 0; padding-right: 0; }
.gr-scroller__dots { display: none; }
@media (max-width: 767px) {
  .gr-scroller__dots { display: flex; justify-content: center; gap: 5px; margin-top: 2px; height: 6px; }
  .gr-scroller__dots span { position: relative; width: 6px; height: 6px; border-radius: 3px; background: var(--gr-border); transition: width .25s, background .25s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .gr-scroller__dots span::before { content: ''; position: absolute; top: -6px; bottom: -12px; left: -3px; right: -3px; } /* พื้นที่แตะ ~24px (มองไม่เห็น) */
  .gr-scroller__dots span.is-on { width: 16px; background: var(--gr-accent, var(--gr-primary)); }
  .gr-scroller__track.is-nudge > * { animation: gr-nudge 1s ease-in-out; }
}
@keyframes gr-nudge { 0%, 100% { transform: none; } 35%, 55% { transform: translateX(-36px); } }
.gr-platform-img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.gr-thumb img.gr-platform-img--float { position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; object-fit: contain; transform: none; }
.gr-thumb img.gr-platform-img--float.gr-dlc-img { top: 0; left: 0; right: auto; width: 30%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; object-position: top left; } /* ป้าย DLC แปะมุมซ้ายบนพอดีขอบ กว้าง 30% ของการ์ด ไอคอนแพลตฟอร์มอยู่มุมขวา */

.gr-aside {
  grid-column: 3; justify-self: start; align-self: start; width: 100%; max-width: var(--gr-side);
  padding: 16px 16px 20px; border: 1px solid var(--gr-border); border-radius: 10px;
  background: var(--gr-surface); box-shadow: var(--gr-shadow);
}
.gr-aside .mtext-387:first-child { margin-top: 0 !important; }
.gr-aside .circlereview { width: 65px; height: 65px; }
.gr-aside .fb-page { max-width: 100%; }
.gr-aside .row > a.hoverbrightness { flex: 0 0 50%; max-width: 50%; }
.gr-aside .row > a.hoverbrightness > .col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0 6px; }
.gr-aside .row > a.hoverbrightness img { width: 100%; max-width: 117px; height: auto; }

@media (max-width: 1679px) {
  .gr-layout { grid-template-columns: var(--gr-side) minmax(0, var(--gr-site)); grid-template-rows: auto 1fr; justify-content: center; }
  .gr-left { grid-column: 1; grid-row: 1; }
  .gr-aside { grid-column: 1; grid-row: 2; }
  .gr-layout > main { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 1199px) {
  :root { --gr-site: 100%; --gr-hero-info: 320px; }
  .gr-hero__peek { display: none; }
  .gr-hero__desc { -webkit-line-clamp: 2; }
  .gr-hero__shots img:nth-child(n+3) { display: none; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  :root { --gr-side: 210px; }
  .gr-layout { grid-template-columns: var(--gr-side) minmax(0, 1fr); }
  .gr-genres__title { gap: 8px; padding: 2px 12px 8px; font-size: 19px !important; }
  .gr-genres__title i { font-size: 20px; }
  .gr-genres__label { padding: 12px 14px 4px; font-size: 13px; }
  .gr-genres__list a { gap: 10px; padding: 6px 14px; font-size: 14px; }
  .gr-genres__list a i { width: 18px; font-size: 15px; }
  .gr-genres__toggle { gap: 10px; padding: 6px 14px 6px 17px; font-size: 13px; }
  .gr-genres__toggle i { width: 18px; }
}
@media (max-width: 991px) {
  :root { --gr-hero-info: 300px; }
  .gr-scroller { --gr-per: 4 !important; }
  .gr-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .gr-left { display: none; }
  .gr-layout > main, .gr-aside { grid-column: 1; grid-row: auto; }
  .gr-aside { max-width: 560px; }

}
@media (max-width: 991px) {
  .gr-upcoming { gap: 16px 20px; }
}
@media (max-width: 768px) {
  .gr-upcoming { grid-template-columns: repeat(2, minmax(0, 341px)); justify-content: center; }
  .gr-upcoming__mini { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 800px) {
  .gr-hero__slide { grid-template-columns: 1fr; }
  .gr-hero__info { display: none; }
  .gr-hero__dots { left: 50%; }
}
@media (max-width: 767px) {
  .gr-hero__arrow { display: none; }
  .gr-section__head h2 { font-size: 21px; }
  .gr-scroller { --gr-per: 3 !important; --gr-gap: 10px; }
  .gr-scroller__btn { display: none; }
  .gr-upcoming { gap: 14px; }
  .gr-upcoming__mini { grid-template-columns: 1fr 1fr; }

}
@media (max-width: 575px) {
  .gr-scroller { --gr-per: 2 !important; }
}

html.gr-home { --gr-fill-blue: #0277c0; --gr-fill-blue-dark: #02639f; --gr-fill-red: #e02424; }
html.gr-home .gr-hero__buy,
html.gr-home .gr-soon,
html.gr-home .gr-genres__tool:hover,
html.gr-home .gr-scroller__btn:hover { background: var(--gr-fill-blue); border-color: var(--gr-fill-blue); }
html.gr-home .gr-hero__buy:hover { background: var(--gr-fill-blue-dark); }
html.gr-home .gr-off,
html.gr-home .gr-price__off { background: var(--gr-fill-red); }

html.gr-home:not([data-theme="dark"]) .gr-poster__price,
html.gr-home:not([data-theme="dark"]) .gr-price strong,
html.gr-home:not([data-theme="dark"]) .gr-genres__label { color: #0277c0 !important; }
html.gr-home:not([data-theme="dark"]) .gr-genres__toggle { color: #0277c0; }
html.gr-home:not([data-theme="dark"]) .gr-genres__tool { color: #0277c0 !important; border-color: #0277c0; }
html.gr-home:not([data-theme="dark"]) .gr-genres__tool:hover { color: #fff !important; background: #0277c0; }

html.gr-home:not([data-theme="dark"]) { --gr-text-3: #6b7480; }

html.gr-home { --gr-red: #e02424; }
html.gr-home:not([data-theme="dark"]) { --gr-text: #333333; }
html.gr-home .gr-hero__arrow:hover,
html.gr-home .gr-hero__mute:hover,
html.gr-home .gr-scroller__btn:hover { background: #0277c0; border-color: #0277c0; }

@property --gr-sweep { syntax: '<angle>'; inherits: false; initial-value: 90deg; }
.gr-holo-bg { display: none; }
html.gr-home:not([data-theme="dark"]) { background: #fff; }
html.gr-home:not([data-theme="dark"]) body.gr-page { background: transparent !important; }
html.gr-home:not([data-theme="dark"]) .gr-holo-bg {
  display: block; position: fixed; inset: 0; z-index: -1;
  overflow: hidden; background: #fff; pointer-events: none;
}
.gr-holo-bg::before {
  content: ""; position: absolute; inset: -80px; z-index: -2;
  background: conic-gradient(
    from var(--gr-sweep) at 80px 80px,
    #fff 0deg, #fff 18deg,
    #b9f6d6 21deg, #fff6a6 24deg, #ffc4e1 27deg, #c7d7ff 30deg,
    #fff 34deg, #fff 52deg,
    #c9f3ff 55deg, #ffd0f0 58deg, #fff1b0 61deg, #bff5c9 64deg,
    #fff 68deg, #fff 360deg
  );
  filter: blur(40px) saturate(1.1);
  opacity: .7;
  animation: gr-sweep 8s ease-in-out infinite alternate;
}
.gr-holo-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255,255,255,.9), transparent 45%),
    radial-gradient(ellipse at 90% 90%, rgba(230,232,240,.7), transparent 50%);
}
@keyframes gr-sweep { from { --gr-sweep: 80deg; } to { --gr-sweep: 110deg; } }
@media (prefers-reduced-motion: reduce) { html .gr-holo-bg::before { animation: none; } }

html.gr-home .gr-layout { padding-top: 0; padding-bottom: 0; }
html.gr-home .gr-layout > main {
  padding: 18px 16px 24px;
  background: var(--gr-surface);
  border-left: 1px solid var(--gr-border); border-right: 1px solid var(--gr-border);
  box-shadow: 0 0 28px rgba(20, 30, 50, .07);
}
html.gr-home .gr-left, html.gr-home .gr-aside { margin-top: 18px; margin-bottom: 24px; }
html.gr-home .gr-section__head--plain { padding-left: 0; }
html.gr-home footer > .container { margin-top: 0 !important; }
@media (max-width: 991px) {
  html.gr-home .gr-layout { row-gap: 0; }
  html.gr-home .gr-left { margin: 0; padding: 16px 16px 0; background: var(--gr-surface); border-left: 1px solid var(--gr-border); border-right: 1px solid var(--gr-border); }
  html.gr-home .gr-left .gr-steam-badge { margin-bottom: 0; }
  html.gr-home .gr-genres, html.gr-home .gr-aside {
    margin: 0; max-width: none; border-radius: 0; box-shadow: none;
    background: var(--gr-surface); border: 0; border-left: 1px solid var(--gr-border); border-right: 1px solid var(--gr-border);
  }
  html.gr-home .gr-genres { padding: 12px 0 0; border: 0; }
  html.gr-home .gr-aside { padding: 0 16px 24px; }
  html.gr-home .gr-layout > main { padding-bottom: 8px; }
  /* แนวเกมซ่อนแล้ว (คอลัมน์เดียว): ไม่เว้นขอบนอกอีกชั้น กรอบเนื้อหาเต็มความกว้างจอ เหลือระยะในกรอบชั้นเดียว */
  html.gr-home .gr-layout { padding-left: 0; padding-right: 0; }
  html.gr-home .gr-layout > main, html.gr-home .gr-aside { border-left: 0; border-right: 0; box-shadow: none; }
}
html.gr-home .gr-section__head--deal { --gr-accent: #e02424; --gr-accent-soft: #fdecec; }
html.gr-home .gr-section__head--new  { --gr-accent: #0f8a3c; --gr-accent-soft: #e4f5ea; }
html.gr-home .gr-section__head--feed { --gr-accent: #6f42c1; --gr-accent-soft: #f0eafa; }
html.gr-home .gr-section__head--hot  { --gr-accent: #e8590c; --gr-accent-soft: #fdeee4; }
html.gr-home .gr-section__head--soon { --gr-accent: #0277c0; --gr-accent-soft: #e6f3fb; }
html.gr-home .gr-section__head--rec  { --gr-accent: #c2185b; --gr-accent-soft: #fce8f1; }
html.gr-home .gr-section__head--best { --gr-accent: #c77700; --gr-accent-soft: #fdf1dd; }
html.gr-home[data-theme="dark"] .gr-section__head { --gr-accent-soft: rgba(255, 255, 255, .07); }
html.gr-home .gr-section__head {
  position: relative; justify-content: flex-start; gap: 12px;
  padding: 0 0 12px; margin-bottom: 14px; border-radius: 0;
  background: none; border-bottom: 1px solid var(--gr-border);
}
html.gr-home .gr-section__head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px;
  border-radius: 3px; background: var(--gr-accent);
}
html.gr-home .gr-section__icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gr-accent-soft); color: var(--gr-accent); font-size: 20px;
}
html.gr-home .gr-section__titles { min-width: 0; }
html.gr-home .gr-section__head h2 { font-size: 24px; line-height: 1.2; }
@media (max-width: 767px) {
  html.gr-home .gr-section__icon { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
  html.gr-home .gr-section__head h2 { font-size: 20px; }
}
@media (max-width: 575px) {
  .gr-scope .gr-section__head .gr-section__more {
    width: auto; min-width: 0; height: auto; padding: 5px 10px !important;
    font-size: 13px; line-height: 1.3;
  }
  .gr-section__head h2, .gr-scope .gr-tab { white-space: nowrap; }
  .gr-section__titles { min-width: 0; }
  .gr-section__head h2 { overflow: hidden; text-overflow: ellipsis; }
  html.gr-home .gr-section__head h2 { font-size: 18px; }
  /* หัวข้อยาว (ลด 70% ขึ้นไป ราคาไม่เกิน 300): ขึ้นบรรทัดใหม่ระหว่างท่อนแทนตัด … (ราคาหาย) */
  .gr-section__head--budget h2 { white-space: normal; }
  .gr-tabs__list { flex-wrap: nowrap; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .gr-tabs__list::-webkit-scrollbar { display: none; }
  .gr-scope .gr-tab, html.gr-home .gr-scope .gr-tab { font-size: 17px; }
}
@media (max-width: 389px) {
  html.gr-home .gr-section__head { gap: 8px; }
  html.gr-home .gr-section__icon { width: 32px; height: 32px; font-size: 14px; }
  html.gr-home .gr-section__head h2 { font-size: 16px; }
  .gr-tabs__list { gap: 10px; }
  .gr-scope .gr-tab, html.gr-home .gr-scope .gr-tab { font-size: 15px; }
  .gr-scope .gr-section__head .gr-section__more { padding: 4px 8px !important; font-size: 12px; }
}
@media (max-width: 359px) {
  html.gr-home .gr-section__icon { display: none; }
}

html.gr-home .gr-section__head--deal + .gr-section__body {
  padding: 14px 12px; border-radius: 12px;
  background: linear-gradient(120deg, #fff1f1 0%, #fff7ef 55%, #fffbea 100%);
  border: 1px solid #fbdada;
}
html.gr-home[data-theme="dark"] .gr-section__head--deal + .gr-section__body {
  background: linear-gradient(120deg, rgba(224, 36, 36, .12), rgba(255, 170, 60, .06));
  border-color: rgba(224, 36, 36, .25);
}
html.gr-home .gr-section__head--deal + .gr-section__body .gr-deal { box-shadow: 0 2px 8px rgba(160, 40, 40, .10); }

.gr-reco-score { position: absolute; right: 6px; bottom: 6px; z-index: 2; padding: 1px 7px; border-radius: 10px; background: rgba(194, 24, 91, .9); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; }
.gr-reco-score--inline { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; }
.gr-reco-debug { margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--gr-border); border-radius: 6px; background: var(--gr-surface-2); color: var(--gr-text); font-size: 13px; }
.gr-reco-debug summary { cursor: pointer; color: var(--gr-text-2); }
.gr-reco-debug summary b { color: #c2185b; }
html[data-theme="dark"] .gr-reco-debug summary b { color: #f48fb1; }
.gr-reco-debug__bar { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 4px; }
.gr-reco-debug__bar a { color: var(--gr-primary); text-decoration: underline; }
.gr-reco-debug__note { margin: 6px 0; color: var(--gr-text-2); font-size: 12px; line-height: 1.6; }
.gr-reco-debug__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin-top: 8px; }
.gr-reco-debug h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--gr-text); }
.gr-reco-debug__scroll { max-height: 420px; overflow: auto; border: 1px solid var(--gr-border); border-radius: 4px; background: var(--gr-surface); }
.gr-reco-debug table { width: 100%; border-collapse: collapse; font-size: 12px; }
.gr-reco-debug th { position: sticky; top: 0; background: var(--gr-surface-2); text-align: left; font-weight: 600; }
.gr-reco-debug th, .gr-reco-debug td { padding: 5px 8px; border-bottom: 1px solid var(--gr-border); vertical-align: top; }
.gr-reco-debug td small { display: block; color: var(--gr-text-3); font-size: 11px; }
.gr-reco-debug tr.is-off { opacity: .45; }
@media (max-width: 991px) { .gr-reco-debug__grid { grid-template-columns: minmax(0, 1fr); } }
.gr-reco-debug__box { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--gr-border); border-radius: 4px; background: var(--gr-surface); }
.gr-reco-debug__box h4 small { margin-left: 6px; color: var(--gr-text-3); font-weight: 400; font-size: 12px; }
.gr-reco-bar { display: flex; width: 100%; max-width: 360px; height: 10px; margin: 6px 0 4px; border-radius: 5px; overflow: hidden; background: var(--gr-border); }
.gr-reco-bar i, .gr-reco-legend i { display: block; height: 100%; }
.gr-reco-bar .is-co, .gr-reco-legend .is-co { background: #1e88e5; }
.gr-reco-bar .is-genre, .gr-reco-legend .is-genre { background: #43a047; }
.gr-reco-bar .is-pop, .gr-reco-legend .is-pop { background: #fb8c00; }
.gr-reco-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0; font-size: 12px; }
.gr-reco-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gr-reco-legend i { width: 10px; height: 10px; border-radius: 2px; }
.gr-reco-form__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; margin-top: 6px; }
.gr-reco-form label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; }
.gr-reco-form label small { color: var(--gr-text-3); font-weight: 400; font-size: 11px; }
.gr-reco-form input { width: 100%; height: 30px; padding: 0 8px; border: 1px solid var(--gr-border); border-radius: 4px; background: var(--gr-surface-2); color: var(--gr-text); font-size: 13px; }
.gr-reco-form button { height: 32px; padding: 0 14px; border: 0; border-radius: 4px; background: #c2185b; color: #fff; font-size: 13px; cursor: pointer; }

/* เกมที่คุณอาจชอบ: กรอบรอระหว่างโหลดจาก ?part=reco */
.gr-feed__skeleton { display: flex; flex-direction: column; gap: 16px; }
.gr-feed__skeleton div { height: clamp(260px, 36vw, 470px); border-radius: 6px; background: linear-gradient(90deg, var(--gr-surface-2) 25%, var(--gr-border) 50%, var(--gr-surface-2) 75%); background-size: 200% 100%; animation: gr-skel 1.2s linear infinite; }
@keyframes gr-skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .gr-feed__skeleton div { animation: none; } }

/* ===== แผงข้อมูลข้างสไลด์หลัก + pop up ภาพหน้าจอ: โทนของเว็บ (แถบหัวฟ้าไล่เฉด #06a3fd -> #0277c0) =====
   โหมดมืดใช้เทาถ่านแบบกลางๆ (ไม่อมน้ำเงิน) + ป้ายฟ้าทึบตัวขาว แทนน้ำเงินเทา + ฟ้าอ่อนที่คล้าย Steam */
:root {
  --gr-panel-bg: linear-gradient(180deg, #e8f5ff 0%, #ffffff 42%);
  --gr-panel-edge: #cde8fb;
  --gr-panel-text: #1f2329;
  --gr-panel-text-2: #4a5562;
  --gr-panel-band: linear-gradient(120deg, #06a3fd 0%, #0386d6 55%, #0277c0 100%);
  --gr-panel-tag-bg: #06a3fd;
  --gr-panel-tag-text: #ffffff;
  --gr-panel-more-bg: #d9efff;
  --gr-panel-more-text: #0277c0;
  --gr-panel-shadow: 0 12px 32px rgba(2, 70, 120, .22);
}
html[data-theme="dark"] {
  --gr-panel-bg: linear-gradient(180deg, #2a2b2f 0%, #202124 100%);
  --gr-panel-edge: #3a3c41;
  --gr-panel-text: #f3f4f6;
  --gr-panel-text-2: #c5c8cd;
  --gr-panel-tag-bg: #0590e0;
  --gr-panel-tag-text: #ffffff;
  --gr-panel-more-bg: #3a3c41;
  --gr-panel-more-text: #e3e5e8;
  --gr-panel-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}
.gr-hero__info {
  background: var(--gr-panel-bg); color: var(--gr-panel-text);
  border-top: 0; border-left: 1px solid var(--gr-panel-edge);
}
.gr-hero__info h3 {
  margin: -18px -16px 2px; padding: 12px 16px;
  background: var(--gr-panel-band); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 40, 80, .25);
}
.gr-hero__tags span { background: var(--gr-panel-tag-bg); color: var(--gr-panel-tag-text); font-family: var(--gr-font-medium); }
.gr-hero__tags span.gr-hero__tags-more { background: var(--gr-panel-more-bg); color: var(--gr-panel-more-text); }
.gr-hero__desc { color: var(--gr-panel-text-2); }
.gr-hero__shots img { box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }

.gr-peek {
  border-top: 0; background: var(--gr-panel-bg); color: var(--gr-panel-text);
  box-shadow: var(--gr-panel-shadow), 0 0 0 1px var(--gr-panel-edge);
}
.gr-peek__title {
  margin: -10px -10px 10px; padding: 9px 12px; border-radius: 8px 8px 0 0;
  background: var(--gr-panel-band); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 40, 80, .25);
}
.gr-peek__tags span { background: var(--gr-panel-tag-bg); color: var(--gr-panel-tag-text); font-family: var(--gr-font-medium); }
.gr-scope .gr-peek__desc, .gr-peek__desc { color: var(--gr-panel-text-2); }

/* index2 admin: ช่องกรอกอีเมลลูกค้า */
.gr-reco-email { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.gr-reco-email label { flex: 1 1 260px; max-width: 420px; }
.gr-reco-email a { font-size: 13px; }
.gr-reco-email__err { flex-basis: 100%; color: #d32f2f; font-size: 12px; }

/* สไลด์ด้านบน: screenshot วนบนรูปหลัก / วิดีโอเล่นเมื่อชี้ / ปุ่มเลือกสไลด์กดง่ายขึ้น */
.gr-scope .gr-hero__media img.gr-hero__shot {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.gr-scope .gr-hero__media img.gr-hero__shot.is-on { opacity: 1; }
/* จอเล็ก (ไม่มีแผงขวา): ชื่อเกมมุมซ้ายบนตอนวน screenshot */
.gr-hero__name {
  position: absolute; top: 10px; left: 10px; z-index: 3; max-width: calc(100% - 20px);
  padding: 4px 10px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
@media (max-width: 800px) { .gr-hero__media.is-shot .gr-hero__name { opacity: 1; } }
.gr-hero__video { z-index: 2; }
.gr-hero__mute { z-index: 4; }
.gr-hero__mute svg { display: block; }
.gr-hero__dots { gap: 2px; }
.gr-hero__dots button {
  width: 30px; height: 20px; padding: 8px 4px; border: 0; border-radius: 0;
  background: rgba(255, 255, 255, .45); background-clip: content-box; cursor: pointer;
}
.gr-hero__dots button:hover { background-color: rgba(255, 255, 255, .8); background-clip: content-box; }
.gr-hero__dots button.is-active { background-color: var(--gr-primary); background-clip: content-box; }

/* เกมที่คุณอาจชอบ: เหตุผลที่แนะนำ */
.gr-scope .gr-feed__title:has(+ .gr-feed__why) { margin-bottom: 2px; }
.gr-scope .gr-feed__why {
  margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--gr-text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gr-feed__why i { width: 16px; margin-right: 2px; text-align: center; color: #0277c0; }
.gr-feed__why b { font-family: var(--gr-font-medium); font-weight: 400; color: var(--gr-text); }
.gr-feed__why span { color: var(--gr-text-3); }
.gr-feed__why--wish i { color: #e02424; }
.gr-feed__why--pop i { color: #f57c00; }
html[data-theme="dark"] .gr-feed__why i { color: #6cc8ff; }
html[data-theme="dark"] .gr-feed__why--wish i { color: #ff6b6b; }
html[data-theme="dark"] .gr-feed__why--pop i { color: #ffa94d; }

.gr-scope .gr-hero__media img.gr-hero__shot.is-instant { transition: none; }
.gr-hero__media.is-loading::after {
  content: ''; position: absolute; left: 16px; bottom: 16px; z-index: 4;
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: gr-hero-spin .8s linear infinite;
}
@keyframes gr-hero-spin { to { transform: rotate(360deg); } }
/* เกมที่คุณอาจชอบ: กำลังโหลดวิดีโอ (home.js is-loading) ปุ่ม ▶ มุมซ้ายล่างกลายเป็นวงกลมหมุน */
.gr-feed__main.is-loading::after {
  content: ''; left: 14px; bottom: 14px; width: 26px; height: 26px; padding: 0; opacity: 1;
  background: none; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: gr-hero-spin .8s linear infinite;
}

/* เกมที่คุณอาจชอบ: ป้าย DLC มุมซ้ายบนของรูปปก (แบบเดียวกับการ์ดหมวดอื่น) */
.gr-feed__cover { position: relative; }
.gr-scope .gr-feed__cover img.gr-feed__dlc {
  position: absolute; top: 0; left: 0; z-index: 2; width: 30%; height: auto; aspect-ratio: 1 / 1;
  object-fit: contain; object-position: top left; border-radius: 3px 0 0 0; pointer-events: none;
}

/* #container ของเว็บเดิมมีเงารอบกล่อง ทำให้เห็นเส้นเต็มจอก่อน footer */
html.gr-home #container.gr-home-container { box-shadow: none !important; }

/* footer: วางในคอลัมน์เดียวกับ main (ใช้ grid เดียวกัน) */
html.gr-home .gr-foot-row { padding-top: 0; padding-bottom: 0; }
.gr-foot { grid-column: 2; min-width: 0; padding: 0 15px; }
.gr-foot footer > .container { max-width: none; }
@media (max-width: 991px) { .gr-foot { grid-column: 1; } }

/* ซอฟต์แวร์: แผงจุดเด่น (ซ้าย) + สินค้า 4 ชิ้น (ขวา) / ≤991 แผงอยู่บน / ≤575 สินค้า 2x2 */
html.gr-home .gr-section__head--sw { --gr-accent: #3949ab; --gr-accent-soft: #e8eaf6; }
.gr-sw { display: grid; grid-template-columns: minmax(240px, 32%) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.gr-sw__info {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 20px; border-radius: var(--gr-radius); color: #fff;
  background: linear-gradient(135deg, #0b5cad 0%, #0277c0 45%, #06a3fd 100%);
}
.gr-sw__info::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.gr-scope .gr-sw__info h3 { margin: 0; color: #fff; font-size: 20px; font-family: var(--gr-font-medium); font-weight: 400; line-height: 1.35; }
.gr-sw__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.gr-sw__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.gr-sw__list i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 14px; }
.gr-scope .gr-sw__cta {
  position: relative; z-index: 1; margin-top: auto; align-self: flex-start; padding: 7px 16px; border-radius: 999px;
  background: #fff; color: #0277c0; font-size: 14px; font-family: var(--gr-font-medium); text-decoration: none;
}
.gr-scope .gr-sw__cta:hover { background: #e6f5ff; color: #0277c0; }
.gr-sw__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gr-scope .gr-sw__item { display: flex; flex-direction: column; gap: 6px; color: var(--gr-text); text-decoration: none; }
.gr-sw__thumb { position: relative; overflow: hidden; border-radius: var(--gr-radius); box-shadow: var(--gr-shadow); transition: transform .2s, box-shadow .2s; }
.gr-sw__item:hover .gr-sw__thumb { transform: translateY(-3px); box-shadow: var(--gr-shadow-hover); }
.gr-sw__thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gr-sw__off { position: absolute; left: 8px; top: 8px; padding: 1px 8px; border-radius: 12px; background: var(--gr-red); color: #fff; font-size: 13px; font-family: var(--gr-font-medium); }
.gr-sw__name { font-size: 14px; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gr-sw__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.gr-sw__price strong { color: var(--gr-red); font-size: 16px; font-family: var(--gr-font-medium); font-weight: 400; }
.gr-sw__price del { color: var(--gr-text-3); font-size: 12.5px; }
@media (max-width: 991px) {
  .gr-sw { grid-template-columns: minmax(0, 1fr); }
  .gr-sw__info { padding: 16px; }
  .gr-sw__info::after { display: none; }
  .gr-sw__list { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .gr-sw__list li { font-size: 13.5px; }
}
@media (max-width: 575px) {
  .gr-sw__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-sw__list { display: grid; grid-template-columns: 1fr 1fr; }
}

/* หัวข้อ "ลด 70% ขึ้นไป | ราคาไม่เกิน 300": ถ้าไม่พอ ขึ้นบรรทัดใหม่ระหว่าง 2 ท่อนเท่านั้น (ไม่ให้ "300" ตกไปบรรทัดเดียว) */
.gr-section__head--budget h2 span { white-space: nowrap; }

/* ออกใหม่ (gr_card_best $showDate): วันวางจำหน่ายเป็นป้ายเขียวติดขอบซ้ายล่างของรูป + ชี้แล้วรูปยกขึ้น */
.gr-best__item--new .controlimgboxgame { border-radius: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.gr-best__item--new:hover .controlimgboxgame { transform: translateY(-4px); box-shadow: var(--gr-shadow-hover); }
.gr-best__date {
  position: absolute; left: 0; bottom: 10px; z-index: 2; padding: 3px 10px 3px 8px; border-radius: 0 12px 12px 0;
  background: #0f8a3c; color: #fff; font-size: 12.5px; line-height: 1.3; font-family: var(--gr-font-medium);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap; pointer-events: none;
}
@media (max-width: 575px) { .gr-best__date { bottom: 6px; padding: 2px 8px 2px 6px; font-size: 11.5px; } }

/* ความคิดเห็น (แถบข้างขวา): ≤991 แถบข้างเต็มจอ คอลัมน์รูปของ bootstrap (25%) กว้างเกินรูป 65px เว้นช่องยาว
   -> รูปกว้างตายตัว 76px / 576–991 เรียง 2 คอลัมน์ / ≤575 คอลัมน์เดียว */
@media (max-width: 991px) {
  .gr-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .gr-reviews .row { flex-wrap: nowrap; margin-left: 0; margin-right: 0; }
  .gr-reviews .row > div:first-child { flex: 0 0 76px; max-width: 76px; padding-left: 0; }
  .gr-reviews .row > div:last-child { flex: 1 1 auto; max-width: none; min-width: 0; padding-right: 0; }
}
@media (max-width: 575px) { .gr-reviews { grid-template-columns: minmax(0, 1fr); } }

/* ติดตามเรา (แถบข้างขวา): ไอคอน 2 คอลัมน์ / ≤991 แถบข้างไปอยู่ล่างสุดเต็มจอ: จัดกลาง ไอคอน 64px */
.gr-follow__icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.gr-follow__icons img { display: block; width: 100%; border-radius: 18px; }
.gr-follow .fb-page { display: block; }
@media (max-width: 991px) {
  .gr-follow { text-align: center; }
  .gr-follow__icons { display: flex; justify-content: center; gap: 16px; }
  .gr-follow__icons a { width: 64px; }
  .gr-follow__icons img { border-radius: 14px; }
  .gr-aside .gr-follow { display: none; } /* จอ <992 มีปุ่ม hamburger: เมนูนั้นมี "ติดตามเรา" + กล่อง Facebook อยู่แล้ว (และ footer มีลิงก์ติดต่อ) ไม่แสดงซ้ำท้ายหน้า */
}

/* เลือกตามแนวเกม (index2.php $grGenreTiles): 14 ช่อง = แถวบน 4 ช่องใหญ่ + 2 แถวละ 5 (grid 20 คอลัมน์) ทุกแถวเต็มพอดี
   ช่อง = พื้นสีประจำหมวด + ปกอันดับ 1 ใหญ่ทางขวา ปกอันดับ 2-3 เล็กซ้อนอยู่ด้านหลังทางซ้าย / มือถือ 2 คอลัมน์ */
html.gr-home .gr-section__head--genres { --gr-accent: #c2185b; --gr-accent-soft: #fce8f1; }
.gr-gtiles { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 12px; }
.gr-gtiles__tile { grid-column: span 4; }
.gr-gtiles__tile:nth-child(-n+4) { grid-column: span 5; }
.gr-scope .gr-gtiles__tile {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--gr-radius);
  background-color: var(--c); background-image: linear-gradient(135deg, rgba(255, 255, 255, .06) 0%, rgba(0, 0, 0, .42) 100%);
  box-shadow: var(--gr-shadow); text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.gr-scope .gr-gtiles__tile:hover { box-shadow: var(--gr-shadow-hover); transform: translateY(-2px); }
.gr-gtiles__tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .2), transparent 55%); pointer-events: none; }
.gr-gtiles__covers { position: absolute; inset: 0; }
.gr-gtiles__covers img {
  position: absolute; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45); transition: transform .3s ease;
}
.gr-gtiles__covers img:nth-child(1) { width: 36%; right: 8%; top: 13%; z-index: 3; transform: rotate(4deg); }
.gr-gtiles__covers img:nth-child(2) { width: 27%; right: 34%; top: 24%; z-index: 2; transform: rotate(-5deg); filter: brightness(.8); }
.gr-gtiles__covers img:nth-child(3) { width: 23%; right: 54%; top: 32%; z-index: 1; transform: rotate(-10deg); filter: brightness(.65); }
.gr-gtiles__tile:hover .gr-gtiles__covers img:nth-child(1) { transform: rotate(0deg) translateY(-4px) scale(1.04); }
.gr-gtiles__tile:hover .gr-gtiles__covers img:nth-child(2) { transform: rotate(-8deg) translateX(-6px); }
.gr-gtiles__tile:hover .gr-gtiles__covers img:nth-child(3) { transform: rotate(-14deg) translateX(-10px); }
.gr-gtiles__label {
  position: absolute; left: 10px; top: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px);
  padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--c); font-size: 15px; line-height: 1.2;
  font-family: var(--gr-font-medium); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.gr-gtiles__label i { font-size: 12px; opacity: .8; }
.gr-gtiles__tile:nth-child(n+5) .gr-gtiles__label { font-size: 13.5px; padding: 4px 10px; }
/* จอ 768–1199: ช่องแถวล่างแคบ ชื่อยาว (Hack and Slash) โดนตัด -> ตัวเล็กลง ไม่มีลูกศร */
@media (min-width: 768px) and (max-width: 1199px) {
  .gr-gtiles__tile:nth-child(n+5) .gr-gtiles__label { font-size: 12px; padding: 3px 8px; }
  .gr-gtiles__tile:nth-child(n+5) .gr-gtiles__label i { display: none; }
}
@media (max-width: 767px) {
  .gr-gtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gr-gtiles__tile, .gr-gtiles__tile:nth-child(-n+4) { grid-column: span 1; }
  .gr-gtiles__label, .gr-gtiles__tile:nth-child(n+5) .gr-gtiles__label { font-size: 13px; padding: 4px 10px; }
}

/* ลด 50% ขึ้นไป ราคาไม่เกิน 300: รายการแนวตั้ง ชี้แถวไหนแถวนั้นขยาย (home.js initBudget) */
html.gr-home .gr-section__head--budget { --gr-accent: #00897b; --gr-accent-soft: #e0f2f1; }
.gr-budget { display: flex; flex-direction: column; gap: 6px; }
.gr-scope .gr-budget__row {
  display: grid; grid-template-columns: 184px minmax(0, 1fr) auto; gap: 0 16px; padding: 8px; /* รูปปกแนวตั้ง 3:4 ตัดตรงกลางเป็นแนวนอน (ตั้งใจ ให้มุมมองต่างจากหมวดอื่น) */
  border-radius: var(--gr-radius); background: var(--gr-surface-2); color: var(--gr-text); text-decoration: none;
  transition: background .2s;
}
.gr-scope .gr-budget__row:hover, .gr-scope .gr-budget__row.is-open { background: var(--gr-primary-soft); }
html[data-theme="dark"] .gr-scope .gr-budget__row:hover, html[data-theme="dark"] .gr-scope .gr-budget__row.is-open { background: rgba(6, 163, 253, .12); }
.gr-budget__cover img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; object-position: center 30%; /* ตัดค่อนขึ้นบน: เห็นหน้า/โลโก้มากกว่าตัดกลาง */ border-radius: 4px; }
.gr-budget__mid { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.gr-scope .gr-budget__title { margin: 0; font-size: 16px; font-family: var(--gr-font-medium); font-weight: 400; color: var(--gr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-budget__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 12.5px; color: var(--gr-text-3); }
.gr-budget__pf { display: inline-flex; align-items: center; gap: 5px; }
.gr-budget__pfimg { width: 16px; height: 16px; object-fit: contain; }
.gr-budget__tags { display: flex; flex-wrap: wrap; gap: 4px; height: 20px; overflow: hidden; }
.gr-budget__tags span { padding: 0 7px; border-radius: 3px; background: var(--gr-tag-bg); color: var(--gr-tag-text); font-size: 11.5px; line-height: 20px; }
html[data-theme="dark"] .gr-budget__tags span { background: rgba(255, 255, 255, .08); color: var(--gr-text-2); }
.gr-budget__price { display: flex; align-items: center; gap: 10px; align-self: center; }
.gr-budget__off { padding: 4px 8px; border-radius: 6px; background: var(--gr-red); color: #fff; font-family: var(--gr-font-medium); font-size: 15px; line-height: 1.2; }
/* ป้ายราคาสีเขียว (สีเดียวกับแถบราคาการ์ดเดิมของเว็บ #01B909): ราคาเต็มขีดฆ่า + ราคาจริงในกล่องเดียว */
.gr-budget__pp { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; white-space: nowrap; background: var(--gr-fill-green, #078610); border-radius: 6px; padding: 3px 10px 4px; }
.gr-budget__pp del { font-size: 11.5px; color: rgba(255, 255, 255, .75); }
.gr-budget__pp strong { font-size: 17px; font-family: var(--gr-font-medium); font-weight: 400; color: #fff; }
.gr-budget__more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.gr-budget__row.is-open .gr-budget__more { grid-template-rows: 1fr; }
.gr-budget__more > div { min-height: 0; overflow: hidden; }
.gr-budget__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 8px; padding-top: 8px; align-items: start; }
.gr-budget__inner img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--gr-border); }
.gr-scope .gr-budget__desc {
  margin: 0; font-size: 13px; line-height: 1.55; color: var(--gr-text-2);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
/* แบบ grid (index2.php $grBudgetLayout = 'grid'): การ์ด 2 คอลัมน์ ปกแนวตั้ง 3:4 + screenshot 2x2 สูงเท่าปก
   คอลัมน์ .75 : .889 : .889 = ปก 3:4 กับ screenshot 16:9 สองแถวสูงเท่ากันพอดี / มือถือใช้รายการแบบ list ด้านล่าง */
@media (min-width: 768px) {
  .gr-budget--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; position: relative; }
  .gr-scope .gr-budget--grid .gr-budget__row {
    grid-template-columns: .75fr .889fr .889fr; grid-template-rows: auto auto auto; gap: 4px;
    padding: 8px 8px 10px; align-content: start;
  }
  .gr-budget--grid .gr-budget__cover { grid-column: 1; grid-row: 1 / 3; }
  .gr-budget--grid .gr-budget__cover img { height: 100%; aspect-ratio: 3 / 4; object-position: center; }
  .gr-budget--grid .gr-budget__more, .gr-budget--grid .gr-budget__more > div, .gr-budget--grid .gr-budget__inner { display: contents; }
  .gr-budget--grid .gr-budget__inner img { height: 100%; border-radius: 3px; }
  .gr-budget--grid .gr-budget__inner img:nth-of-type(1) { grid-column: 2; grid-row: 1; }
  .gr-budget--grid .gr-budget__inner img:nth-of-type(2) { grid-column: 3; grid-row: 1; }
  .gr-budget--grid .gr-budget__inner img:nth-of-type(3) { grid-column: 2; grid-row: 2; display: block; } /* แบบ list ซ่อนรูปที่ 3 ที่จอ ≤1199 */
  .gr-budget--grid .gr-budget__inner img:nth-of-type(4) { grid-column: 3; grid-row: 2; }
  .gr-budget--grid .gr-budget__inner img.is-cur { outline: 2px solid var(--gr-primary); outline-offset: -2px; }
  .gr-budget--grid .gr-budget__mid { grid-column: 1 / 3; grid-row: 3; padding: 4px 2px 0; }
  .gr-budget--grid .gr-budget__price { grid-column: 3; grid-row: 3; justify-self: center; align-self: center; gap: 8px; padding-top: 4px; } /* กึ่งกลางพื้นที่ใต้ screenshot คอลัมน์ขวา */
  /* รูปขยาย (home.js) ขึ้นทับการ์ดฝั่งตรงข้าม */
  .gr-budget__zoom {
    position: absolute; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .15s;
    border-radius: var(--gr-radius); overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
  .gr-budget__zoom.is-on { opacity: 1; }
  .gr-budget__zoom img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .gr-budget--grid { grid-template-columns: minmax(0, 1fr); } /* แคบเกินสำหรับ 2 คอลัมน์ (ไม่มีฝั่งตรงข้าม = ไม่มีรูปขยาย) */
}
@media (max-width: 1199px) {
  .gr-budget__inner { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); }
  .gr-budget__inner img:nth-of-type(3) { display: none; }
}
@media (max-width: 767px) {
  .gr-scope .gr-budget__row { grid-template-columns: 120px minmax(0, 1fr); gap: 0 10px; padding: 6px; }
  .gr-budget__price { grid-column: 2; justify-self: start; margin-top: 4px; gap: 6px; }
  .gr-budget__off { padding: 1px 6px; font-size: 13px; }
  .gr-budget__pp { flex-direction: row; align-items: baseline; gap: 6px; padding: 1px 8px 2px; }
  .gr-budget__pp strong { font-size: 15px; }
  .gr-scope .gr-budget__title { font-size: 14px; }
  .gr-budget__tags, .gr-budget__more { display: none; }
  html .gr-scope .gr-budget__row.is-open, html[data-theme] .gr-scope .gr-budget__row.is-open { background: var(--gr-surface-2); } /* มือถือไม่มีการขยาย แถวแรกไม่ต้องเน้น */
}
/* 576–767: ขวาโล่ง ย้ายราคาไปคอลัมน์ขวา (% บน ราคาล่าง) และแสดงแนวเกม / ต่ำกว่า 576 ราคาอยู่ใต้ชื่อ ชื่อเกมได้เต็มบรรทัด */
@media (min-width: 576px) and (max-width: 767px) {
  .gr-scope .gr-budget__row { grid-template-columns: 120px minmax(0, 1fr) auto; }
  .gr-budget__price { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; margin-top: 0; flex-direction: column; align-items: flex-end; gap: 4px; }
  .gr-budget__pp { flex-direction: column; align-items: flex-end; gap: 0; padding: 3px 10px 4px; }
  .gr-budget__tags { display: flex; }
}

/* =====================================================================
   ป้ายราคาสีเดียวกับเว็บไซต์หลัก (css.css / gamedetail.php)
   แดง #FF4343 = % ส่วนลด / เขียว #01B909 = ราคาที่ลดแล้ว / น้ำเงิน #0195FF = ราคาปกติ (ไม่มีส่วนลด)
   ===================================================================== */
html.gr-home { --gr-price-red: #FF4343; --gr-price-green: #01B909; --gr-price-blue: #0195FF; }
.gr-pbar__off, .gr-feed__off, .gr-budget__off { background: var(--gr-price-red); }
.gr-pbar__now, .gr-feed__pp, .gr-budget__pp { background: var(--gr-price-green); }
.gr-pbar__now:first-child, .gr-feed__pp.is-full { background: var(--gr-price-blue); } /* ไม่มีป้าย % = ไม่ลดราคา */

/* ข้อเสนอจำกัดเวลา: โลโก้แพลตฟอร์มย้ายไปมุมขวาบนของปก / มีป้าย DLC (มุมซ้ายบน) -> นาฬิกาย้ายไปมุมขวาล่าง */
.gr-deal .gr-thumb img.gr-dlc-img ~ .gr-off { top: auto; bottom: 8px; left: auto; right: 8px; }

/* =====================================================================
   hover แบบเว็บหลัก (div.hoverbtn:hover = สว่างขึ้น 120%)
   ข้อเสนอจำกัดเวลา / ซอฟต์แวร์ / กำลังจะมาถึง / เข้าชมเมื่อเร็วๆ นี้
   ===================================================================== */
.gr-deal, .gr-sw__item, .gr-poster, .gr-mini, .gr-rec { transition: filter .2s, transform .2s, box-shadow .2s; }
.gr-deal:hover, .gr-sw__item:hover, .gr-poster:hover, .gr-mini:hover, .gr-rec:hover { filter: brightness(1.2); }
/* กำลังจะมาถึง: เอากรอบน้ำเงินตอนชี้ออก (เหลือแค่สว่างขึ้น) */
.gr-poster:hover .gr-thumb, .gr-mini:hover .gr-thumb { box-shadow: none; }

/* ปุ่ม "ซื้อเลย": gradient ฟ้าแบบเว็บหลัก (css.css .buybuttonmini)
   ชี้การ์ด = สว่างขึ้นไปพร้อมการ์ดทั้งใบเหมือนป้ายราคา (filter ของการ์ด) ไม่เปลี่ยนสี / ไม่เข้มลง / ไม่มีเงาเรือง */
.gr-scope .buybuttonmini,
.gr-scope .buybuttonmini:hover,
.gr-scope a:hover > .buybuttonmini,
.gr-scope .hoverbtn:hover > a > .buybuttonmini,
.gr-sw__buy,
.gr-sw__item:hover .gr-sw__buy {
  background: linear-gradient(#01c6e6, #0192d8) !important; /* เข้มขึ้นเล็กน้อยจากเว็บหลัก (#02e5f9 -> #01adf5) */
  box-shadow: none !important; filter: none !important; color: #fff !important;
}

/* กำลังจะมาถึง: ป้าย "พรีออเดอร์" บนโปสเตอร์ใหญ่ ใหญ่ขึ้น (การ์ดเล็กใช้ .gr-soon--sm เท่าเดิม) */
.gr-poster .gr-soon { bottom: 14px; padding: 5px 14px 5px 11px; border-radius: 0 16px 16px 0; font-size: 16px; }
.gr-poster .gr-soon i { margin-right: 2px; }
@media (max-width: 575px) { .gr-poster .gr-soon { bottom: 8px; padding: 3px 10px 3px 8px; font-size: 13px; } }

/* =====================================================================
   กำลังจะมาถึง (พ.ย. 2026): 2 เกมที่ใกล้ออกที่สุด = การ์ดกว้าง (screenshot 16:9 + ปกซ้อนมุมซ้ายล่าง)
   ขวา = การ์ดเล็ก 2 เกมเรียงแถวเดียว / ทุกใบมีป้าย "อีก N วัน" (index2.php gr_release_when)
   ===================================================================== */
.gr-upcoming { grid-template-columns: 1fr 1fr 1.05fr; gap: 16px 18px; }
.gr-upc__media { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #111; }
.gr-upc__shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.gr-upc__media > img:not(.gr-upc__shot):not(.gr-platform-img) { /* ปก */
  position: absolute; left: 10px; bottom: 10px; width: 24%; aspect-ratio: 3 / 4; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .85); border-radius: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.gr-upc__media--cover > img:not(.gr-platform-img) { /* ไม่มี screenshot: ปกเต็มกรอบ */
  position: static !important; width: 100% !important; height: 100%; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.gr-upc__media img.gr-platform-img--float { position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; object-fit: contain; }
.gr-upc__media img.gr-platform-img--float.gr-dlc-img { top: 0; left: 0; right: auto; width: 22%; height: auto; aspect-ratio: 1 / 1; object-position: top left; }
.gr-poster.gr-upc .gr-soon { left: auto; right: 0; bottom: 10px; padding: 3px 8px 3px 10px; border-radius: 12px 0 0 12px; font-size: 13.5px; } /* ปกอยู่ซ้ายล่าง: ป้ายพรีออเดอร์ย้ายไปขวาล่าง */
.gr-upc .gr-poster__meta { padding: 6px 0 0; }
.gr-scope .gr-upc .gr-pbar { margin-top: 6px; }
.gr-scope .gr-upc .gr-pbar__off, .gr-scope .gr-upc .gr-pbar__now { padding-top: 6px; padding-bottom: 6px; }
.gr-scope .gr-upc .gr-pbar__off { font-size: 15px; }
.gr-scope .gr-upc .gr-pbar__now strong { font-size: 18px; }
/* วันที่ + ป้าย "อีก N วัน" */
.gr-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gr-when__in { padding: 1px 8px; border-radius: 10px; background: #eef6fc; color: #0277c0; font-family: var(--gr-font-medium); font-size: 12.5px; white-space: nowrap; }
html[data-theme="dark"] .gr-when__in { background: #16334a; color: #8fd0ff; }
.gr-mini .gr-when { gap: 4px 6px; margin-top: 2px; font-size: 13px; }
.gr-upcoming__mini { align-self: start; } /* การ์ดเล็ก: แถบราคาเต็มความกว้างแบบเดิม */
/* จอแคบ: การ์ดกว้าง 2 ใบบน / การ์ดเล็กแถวล่างเป็นแนวนอน (ปกซ้าย ข้อมูลขวา) */
@media (max-width: 991px) {
  .gr-upcoming { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .gr-upcoming__mini { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .gr-upcoming__mini .gr-mini { display: grid; grid-template-columns: 38% minmax(0, 1fr); column-gap: 10px; align-content: start; }
  .gr-upcoming__mini .gr-mini .gr-thumb { grid-row: 1 / 5; }
  .gr-scope .gr-upcoming__mini .gr-mini__title { margin-top: 0; }
}
@media (max-width: 575px) {
  .gr-upcoming { gap: 12px; }
  .gr-upcoming__mini { grid-template-columns: 1fr; }
  .gr-upc__media > img:not(.gr-upc__shot):not(.gr-platform-img) { left: 6px; bottom: 6px; }
  .gr-poster.gr-upc .gr-soon { bottom: 6px; padding: 2px 6px 2px 8px; font-size: 11.5px; }
  .gr-upc__media img.gr-platform-img--float { width: 22px; height: 22px; top: 6px; right: 6px; }
}

/* แถบข้าง (2026-11-23): ความคิดเห็นกลับมาอยู่ซ้ายแบบหน้า home เดิม / แนวเกมไปขวา
   จอ 1680+  ซ้าย = แพลตฟอร์ม > เครื่องมือค้นหา > ความคิดเห็น > ซื้ออย่างมั่นใจ / ขวา = แนวเกม > ติดตามเรา
   992-1679  คอลัมน์ซ้ายเดียว = แพลตฟอร์ม > เครื่องมือค้นหา > ความคิดเห็น > แนวเกม > ซื้ออย่างมั่นใจ > ติดตามเรา
   ≤991      เนื้อหา > ความคิดเห็น (แพลตฟอร์ม/แนวเกมอยู่ในเมนู hamburger) */
html.gr-home .gr-side-genres .gr-genres__tool { display: none !important; } /* ใช้ปุ่มฝั่งซ้าย (.gr-side-tool) แทน ไปหน้า all-products แล้วเครื่องมืออยู่ฝั่งเดิม */
.gr-left .gr-side-tool {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 12px 0 0; padding: 9px 10px; box-sizing: border-box;
  border: 1px solid #0277c0; border-radius: 8px; font-weight: 600; line-height: 1.2; text-decoration: none;
}
.gr-side-rev, .gr-side-trust { grid-column: 1; justify-self: end; align-self: start; width: 100%; max-width: var(--gr-side); min-width: 0; }
.gr-side-rev { margin-top: 18px; }
.gr-side-rev > h2 { margin-top: 0 !important; }
.gr-side-rev .circlereview { width: 65px; height: 65px; }
.gr-side-genres { min-width: 0; }
.gr-right { min-width: 0; }
html.gr-home .gr-left { margin-bottom: 0; }

@media (min-width: 1680px) {
  html.gr-home .gr-layout { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .gr-left { grid-row: 1; }
  .gr-side-rev { grid-row: 2; }
  .gr-side-trust { grid-row: 3; margin-bottom: 24px; }
  .gr-layout > main { grid-row: 1 / -1; }
  .gr-right { grid-column: 3; grid-row: 1 / -1; justify-self: start; align-self: start; width: 100%; max-width: var(--gr-side); margin: 18px 0 24px; }
  html.gr-home .gr-right .gr-aside { margin: 14px 0 0; max-width: none; }
  .gr-right .gr-genres__title { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1679px) {
  html.gr-home .gr-layout { grid-template-rows: auto auto auto auto 1fr; row-gap: 0; }
  .gr-right { display: contents; }
  .gr-left { grid-row: 1; }
  .gr-side-rev { grid-row: 2; }
  .gr-side-genres { grid-column: 1; grid-row: 3; align-self: start; width: 100%; max-width: var(--gr-side); margin-top: 18px; }
  .gr-side-trust { grid-row: 4; }
  html.gr-home .gr-aside { grid-column: 1; grid-row: 5; margin: 14px 0 24px; }
  .gr-layout > main { grid-row: 1 / -1; }
}
@media (max-width: 991px) {
  .gr-right { display: contents; }
  .gr-side-genres, .gr-side-trust, html.gr-home .gr-aside { display: none; } /* ติดตามเราอยู่ในเมนู hamburger อยู่แล้ว */
  .gr-layout > main { order: 1; grid-row: auto; }
  html.gr-home .gr-side-rev { order: 2; grid-column: 1; grid-row: auto; justify-self: stretch; max-width: none; margin: 0; padding: 0 16px 24px; background: var(--gr-surface); }
}

/* แถบข้าง (2026-11-23): ความคิดเห็นอยู่ในกรอบเหมือนกล่องอื่น + ระยะระหว่างคอลัมน์และขอบนอกจอ 12px (จอ ≥992 มือถือไม่เปลี่ยน) */
@media (min-width: 992px) {
  html.gr-home .gr-layout { column-gap: 12px; padding-left: 12px; padding-right: 12px; }
  html.gr-home .gr-side-rev {
    box-sizing: border-box; padding: 14px 14px 12px;
    border: 1px solid var(--gr-border); border-radius: 10px;
    background: var(--gr-surface); box-shadow: var(--gr-shadow);
  }
  html.gr-home .gr-side-rev > h2 { font-size: 19px !important; font-weight: 700; }
  html.gr-home .gr-side-rev .circlereview { width: 52px; height: 52px; }
  html.gr-home .gr-side-rev .row { margin-left: 0; margin-right: 0; }
  html.gr-home .gr-side-rev .gr-reviews .row > [class*="col-"]:first-child { padding-left: 0; padding-right: 0; }
  html.gr-home .gr-side-rev .gr-reviews .row > [class*="col-"]:last-child { padding-left: 10px; padding-right: 0; }
  html.gr-home .gr-side-rev .row > .col-xl-12 { padding-left: 0; padding-right: 0; }
}

/* รูปเกมในความคิดเห็น: 80px เท่าหน้าสินค้า (จอ 992-1199 = 72px ให้ชื่อเกมมีที่พอ) อยู่กึ่งกลางแนวตั้งกับข้อความ */
@media (min-width: 992px) {
  html.gr-home .gr-side-rev { --gr-rev-img: 80px; }
  html.gr-home .gr-side-rev .circlereview { width: var(--gr-rev-img); height: var(--gr-rev-img); }
  html.gr-home .gr-side-rev .gr-reviews .row { flex-wrap: nowrap; align-items: center; margin-top: 14px !important; }
  html.gr-home .gr-side-rev .gr-reviews .row > [class*="col-"]:first-child { flex: 0 0 var(--gr-rev-img); max-width: var(--gr-rev-img); }
  html.gr-home .gr-side-rev .gr-reviews .row > [class*="col-"]:last-child { flex: 1 1 0; max-width: calc(100% - var(--gr-rev-img)); min-width: 0; margin-top: 0 !important; }
  html.gr-home .gr-side-rev .gr-reviews p.mtext-101 { padding-top: 0 !important; max-height: 46px !important; overflow: hidden; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  html.gr-home .gr-side-rev { --gr-rev-img: 72px; }
}
