/* ============================================================
   CLOUDARCADE DESIGN SYSTEM v2.0
   ============================================================

   COLOR TOKENS
   --c-bg           #0d0f1a   页面底色（深夜蓝黑）
   --c-surface      #161827   卡片/面板底色
   --c-elevated     #1d2039   悬浮/激活状态底色
   --c-border       rgba(255,255,255,0.07)  通用描边
   --c-primary      #7c3aed   主色（紫）
   --c-primary-h    #6d28d9   主色悬浮态
   --c-accent       #06d6a0   强调色（青绿）
   --c-danger       #ef4444   危险/收藏激活
   --c-warning      #f59e0b   星级评分
   --c-success      #10b981   正面数字
   --c-text         #e2e8f4   主文字
   --c-text-2       #8b95b0   次级文字
   --c-text-3       #5a6480   弱文字/占位
   --c-nav          #0a0c17   顶栏底色

   TYPOGRAPHY
   Headings : Space Grotesk 400/500/600/700
   Body     : Inter 300/400/500/600

   SPACING  (4px base unit)
   4 8 12 16 20 24 32 40 48 64

   RADIUS
   --r-sm 6px  --r-md 10px  --r-lg 16px  --r-pill 100px

   SHADOW
   --shadow-sm  0 1px 4px rgba(0,0,0,.3)
   --shadow-md  0 4px 16px rgba(0,0,0,.4)
   --shadow-lg  0 8px 32px rgba(0,0,0,.5)
   --glow       0 0 24px rgba(124,58,237,.35)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* %%THEME_TOKENS_START%% */
/* ── Design Tokens ── */
:root {
  --c-bg:          #0d0f1a;
  --c-surface:     #161827;
  --c-elevated:    #1d2039;
  --c-border:      rgba(255, 255, 255, 0.07);
  --c-primary:     #7c3aed;
  --c-primary-h:   #6d28d9;
  --c-primary-dim: rgba(124, 58, 237, 0.14);
  --c-accent:      #06d6a0;
  --c-accent-h:    #05c490;
  --c-danger:      #ef4444;
  --c-warning:     #f59e0b;
  --c-success:     #10b981;
  --c-text:        #e2e8f4;
  --c-text-2:      #8b95b0;
  --c-text-3:      #5a6480;
  --c-nav:         #0a0c17;
  --c-cat-bar:     #0f1120;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-pill: 100px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow:      0 0 24px rgba(124, 58, 237, 0.35);

  --t: 220ms ease;
}

/* %%THEME_TOKENS_END%% */

/* ── Reset / Base ── */
*,
::before,
::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

img {
  max-width: 100%;
}

article, aside, figcaption, figure,
footer, header, hgroup, main, nav, section {
  display: block;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: var(--c-accent-h);
  text-decoration: none;
}

/* ── Utilities ── */
.text-uppercase  { text-transform: uppercase !important; }
.text-white      { color: #fff !important; }
.text-center     { text-align: center !important; }
.bg-primary      { background-color: var(--c-primary) !important; }
.text-success    { color: var(--c-success) !important; }
.color-red       { color: var(--c-danger); }
i.disabled       { opacity: 0.4; pointer-events: none; }

/* ══════════════════════════════════
   NAVIGATION – top bar
══════════════════════════════════ */
#mainNav {
  padding: 0;
  background-color: var(--c-nav);
  border-bottom: 1px solid var(--c-border);
  font-weight: 600;
  transition: padding-top 0.3s, padding-bottom 0.3s;
}

.fixed-top {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1030;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar-expand-lg {
  flex-flow: row nowrap;
  justify-content: flex-start;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
}

#mainNav .navbar-brand {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  transition: font-size 0.3s;
}

#mainNav .navbar-nav li.nav-item a.nav-link {
  color: var(--c-text-2);
  font-size: 0.875rem;
  padding: 0.6rem 0.75rem;
  transition: color var(--t);
}

.nav-link:hover,
#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
}

.site-logo {
  padding: 4px;
}

/* ── Category bar ── */
.nav-categories {
  background-color: var(--c-cat-bar);
  border-bottom: 1px solid var(--c-border);
  padding: 4px 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Search bar ── */
.search-bar {
  margin-left: 10px;
  border-radius: var(--r-pill);
  overflow: hidden;
}

.btn-search {
  border-radius: 0;
}

/* ── Greedy nav ── */
nav.greedy {
  position: relative;
  display: flex;
  align-items: center;
}

nav.greedy button {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-2);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color var(--t), background var(--t);
}

nav.greedy button:hover {
  color: var(--c-text);
  background: var(--c-elevated);
}

nav.greedy button.hidden {
  transition: none;
  width: 0;
  padding: 0;
  overflow: hidden;
  display: none;
}

nav.greedy button::after {
  content: attr(count);
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  margin-left: 8px;
  margin-right: -4px;
}

ul.links {
  display: flex;
  flex: 1;
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.links li {
  flex: none;
}

ul.links a {
  display: block;
  padding: 6px 12px;
  color: var(--c-text-2);
  font-size: 0.82rem;
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}

ul.links a:hover {
  color: var(--c-text);
  background: var(--c-elevated);
}

ul.hidden-links {
  position: absolute;
  background: var(--c-surface);
  right: 0;
  top: 100%;
  z-index: 999;
  list-style: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 6px 0;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  padding-left: 0;
}

ul.hidden-links.hidden {
  display: none;
}

ul.hidden-links li {
  padding: 0;
  min-width: unset;
}

ul.hidden-links li a {
  display: block;
  padding: 8px 16px;
  color: var(--c-text-2);
  font-size: 0.85rem;
}

ul.hidden-links li:hover {
  background: var(--c-elevated);
}

ul.hidden-links li a:hover {
  color: var(--c-text);
}

/* ── Dropdown menus ── */
.dropdown-menu {
  position: absolute;
  background: var(--c-surface);
  right: 0;
  top: 100%;
  z-index: 2;
  text-align: left;
  list-style: none;
  background-clip: padding-box;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 6px 0;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
  font-weight: normal;
}

.dropdown-icon {
  margin-left: 8px;
}

.nav-item {
  position: relative;
  margin: 0 2px;
}

.nav-item-child {
  display: block;
  padding: 8px 16px;
  color: var(--c-text-2);
  font-size: 0.85rem;
}

.nav-link-child {
  color: var(--c-text-2);
}

.nav-item-child:hover {
  background: var(--c-elevated);
  color: var(--c-text);
}

.nav-item.dropdown .dropdown-menu {
  position: absolute;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -9px;
  margin-left: -1px;
  right: auto;
}

.dropdown-submenu-left .dropdown-menu {
  right: 100%;
  left: auto;
}

.dropdown-menu[data-bs-popper] {
  left: unset !important;
}

/* ══════════════════════════════════
   GAME CARDS
══════════════════════════════════ */
.item-grid {
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.list-game {
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
  padding: 0;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  cursor: pointer;
}

.list-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  border-color: rgba(124, 58, 237, 0.45);
}

.list-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

img.small-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t);
}

.list-game:hover img.small-thumb {
  transform: scale(1.06);
}

.list-content {
  padding: 7px 8px 6px;
}

.star-rating {
  text-align: center;
  margin-bottom: 3px;
}

.star-rating img {
  height: 11px;
  width: auto;
}

.list-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: var(--c-text);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0;
}

/* ══════════════════════════════════
   SECTION TITLES
══════════════════════════════════ */
h3.item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-border);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

h3.item-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--c-primary);
  border-radius: var(--r-pill);
}

.item-title i {
  color: var(--c-primary);
  font-size: 0.9rem;
  margin-right: 0;
}

/* ── Load more ── */
.load-more-games-wrapper {
  text-align: center;
  margin: 4px 0 32px;
}

.btn-load-more-games,
.btn.btn-primary.btn-load-more-games {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--t), box-shadow var(--t);
}

.btn-load-more-games:hover,
.btn.btn-primary.btn-load-more-games:hover {
  background: var(--c-primary-h);
  box-shadow: var(--glow);
  color: #fff;
  text-decoration: none;
}

/* ── Global buttons ── */
.btn-primary {
  background-color: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
  border-radius: var(--r-pill);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--c-primary-h) !important;
  border-color: var(--c-primary-h) !important;
}

/* ══════════════════════════════════
   LAYOUT HELPERS
══════════════════════════════════ */
.game-container {
  margin: 24px 0;
}

.content-wrapper {
  margin-top: 24px;
}

.bottom-container {
  margin: 24px 0;
}

.banner-ads {
  text-align: center;
  margin: 10px 0;
}

/* ══════════════════════════════════
   GAME DETAIL – IFRAME
══════════════════════════════════ */
.game-iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #000;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.game-iframe {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Info bar (below iframe) ── */
.single-info-container {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
}

@media (min-width: 577px) {
  .single-info-container .header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.header-left {
  flex: 1;
}

.header-right {
  flex-shrink: 0;
}

.single-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 3px;
}

h1.single-title {
  font-size: 1.5rem;
}

.single-info-container > .header + p,
.single-info-container p {
  color: var(--c-text-2);
  font-size: 0.82rem;
  margin: 2px 0 0;
}

/* ── Vote / Stats ── */
.stats-vote {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0;
}

.stats-vote i {
  font-size: 1.3rem;
  color: var(--c-text-3);
  cursor: pointer;
  padding: 4px;
  transition: color var(--t), transform var(--t);
}

.stats-vote i:hover {
  color: var(--c-accent);
  transform: scale(1.18);
}

.stats-vote .fa-heart:hover,
.stats-vote .fa-heart.color-red {
  color: var(--c-danger);
}

.txt-stats {
  font-size: 0.82rem;
  color: var(--c-text-2);
}

.vote-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-accent);
  min-width: 56px;
  text-align: right;
}

/* ── Action buttons ── */
.action-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}

.single-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-elevated);
  border: 1px solid var(--c-border);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  color: var(--c-text-2);
  margin: 0;
  transition: background var(--t), color var(--t), border-color var(--t);
  cursor: pointer;
}

.single-icon:hover {
  background: var(--c-primary-dim);
  border-color: var(--c-primary);
  color: var(--c-text);
}

.single-icon a {
  color: inherit;
}

.single-icon i {
  font-size: 0.8rem;
  margin: 0;
}

.social-share {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  margin-bottom: 0;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  opacity: 0.85;
  transition: opacity var(--t);
}

.social-icon:hover {
  opacity: 1;
}

/* ── Game info tabs ── */
.game-info-tabs {
  margin-top: 0;
  color: var(--c-text-2);
}

.nav-tabs {
  border-bottom: 2px solid var(--c-border);
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tabs .nav-link {
  color: var(--c-text-2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--t);
}

.nav-tabs .nav-link:hover {
  color: var(--c-text);
  background: transparent;
  border-bottom-color: var(--c-border);
}

.nav-tabs .nav-link.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
  background: transparent;
}

.tab-content {
  padding: 20px 0 8px;
  line-height: 1.75;
  font-size: 0.9rem;
}

/* ── Game meta (categories & tags) ── */
.game-meta-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-3);
  font-weight: 600;
  margin-bottom: 8px;
}

.cat-list,
.game-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  padding: 0;
}

.cat-link,
.tag-item {
  display: inline-block;
  padding: 4px 13px;
  background: var(--c-elevated);
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.cat-link:hover,
.tag-item:hover {
  background: var(--c-primary-dim);
  color: var(--c-text);
  border-color: var(--c-primary);
  text-decoration: none;
}

/* Category description (archive pages) */
.category-description {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--c-text-2);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* List categories (inline pill list) */
ul.list-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-categories li {
  float: none;
  display: inline-block;
  padding: 5px 14px;
  background: var(--c-elevated);
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  transition: background var(--t), color var(--t);
}

.list-categories li:hover {
  background: var(--c-primary-dim);
  color: var(--c-text);
  border-color: var(--c-primary);
}

/* ── Info text block ── */
.info-the-game {
  color: var(--c-text-2);
  line-height: 1.75;
  font-size: 0.9rem;
}

.info-the-game b {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-3);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.sidebar {
  display: block;
  padding-left: 6px;
}

.sidebar .row {
  margin-right: 0;
  margin-left: 0;
}

.sidebar .widget {
  margin-bottom: 24px;
}

.sidebar .list-tile {
  padding-left: 2px;
  padding-right: 2px;
}

.sidebar .list-game {
  margin-bottom: 8px;
}

h4.widget-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-2);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* ── Vertical widget list ── */
.wgt-list-game-vertical {
  margin-bottom: 6px;
  width: 100%;
  position: relative;
}

.wgt-list-game-vertical .wgt-list-game {
  display: flex;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 8px;
  transition: border-color var(--t), background var(--t);
}

.wgt-list-game-vertical .wgt-list-game:hover {
  border-color: var(--c-primary);
  background: var(--c-elevated);
}

.wgt-list-game-vertical .wgt-list-thumbnail img {
  max-width: 68px;
  border-radius: var(--r-sm);
}

.wgt-list-game-vertical .wgt-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[dir="ltr"] .wgt-list-game-vertical .wgt-list-content {
  padding-left: 10px;
}

[dir="rtl"] .wgt-list-game-vertical .wgt-list-content {
  padding-right: 10px;
}

.wgt-list-game-vertical .wgt-list-title {
  font-weight: 600;
  color: var(--c-text);
  font-size: 0.8rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16ch;
}

.wgt-list-game-vertical .wgt-list-category {
  color: var(--c-text-3);
  font-size: 0.73rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16ch;
}

.wgt-list-game-grid .wgt-list-game {
  padding: 4px;
  margin: 4px;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  padding-top: 40px;
  padding-bottom: 24px;
  background-color: var(--c-surface);
  color: var(--c-text-2);
  border-top: 1px solid var(--c-border);
}

.footer .list-content .list-title {
  color: var(--c-text-2);
}

.footer a {
  color: var(--c-text-2);
}

.footer a:hover {
  color: var(--c-text);
  text-decoration: none;
}

.copyright {
  background-color: var(--c-nav);
  color: var(--c-text-3);
  padding: 14px 0;
  font-size: 0.8rem;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

/* ══════════════════════════════════
   ARCHIVE / SEARCH / TAG PAGES
══════════════════════════════════ */
.page-title,
h1.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--c-text);
  margin-top: 24px;
  margin-bottom: 4px;
}

.game-container-archive,
.game-container-search,
.game-container-tag {
  margin: 20px 0;
}

/* ── Pagination ── */
.pagination-wrapper {
  margin: 20px 0 32px;
  display: flex;
  justify-content: center;
}

.pagination .page-link {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text-2);
  padding: 8px 14px;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.pagination .page-link:hover {
  background: var(--c-elevated);
  color: var(--c-text);
  border-color: var(--c-primary);
}

.pagination .page-item.active .page-link {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ══════════════════════════════════
   BLOG / POST LIST
══════════════════════════════════ */
.blog-list {
  margin-top: 24px;
}

.post-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px !important;
  transition: border-color var(--t);
}

.post-item:hover {
  border-color: var(--c-primary);
}

.post-media {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.post-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 84px;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
}

.blog-list .post-thumb {
  width: 110px;
  height: 84px;
  margin: 0;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.post-title a {
  color: var(--c-text);
}

.post-title a:hover {
  color: var(--c-accent);
}

.post-meta,
.post-meta .date {
  color: var(--c-text-3);
  font-size: 0.78rem;
}

@media (max-width: 576px) {
  .blog-list .post-thumb {
    display: none;
  }
}

/* ── Single page ── */
.singlepage-title,
h1.singlepage-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-text);
  padding-bottom: 10px;
}

.page-content,
.game-content {
  margin-bottom: 24px;
}

/* ══════════════════════════════════
   COMMENTS
══════════════════════════════════ */
#tpl-comment-section {
  margin-top: 4px;
  margin-bottom: 16px;
}

#comment-form {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 24px;
}

.comment-profile-avatar {
  margin-right: 14px;
  flex-shrink: 0;
}

.comment-profile-avatar img {
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.comment-form-wrapper {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 14px;
  width: 100%;
}

.comment-form-wrapper textarea {
  background: transparent;
  border: 0;
  color: var(--c-text);
  width: 100%;
  resize: none;
  outline: none;
  font-family: inherit;
}

.comment-form-wrapper textarea::placeholder {
  color: var(--c-text-3);
}

.post-comment-btn-wrapper {
  float: right;
  margin-top: 12px;
}

textarea#comment-input {
  height: 80px;
}

.user-comment-wrapper {
  display: flex;
}

.tpl-user-comment {
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.tpl-comment-children .tpl-user-comment:last-child {
  border-bottom: none;
}

img.tpl-user-comment-avatar {
  border-radius: 50%;
  float: left;
  width: 3.6rem;
  height: 3.6rem;
  max-width: 38px;
  max-height: 38px;
  margin-right: 14px;
}

.tpl-comment-children img.tpl-user-comment-avatar {
  max-width: 30px;
  max-height: 30px;
}

.tpl-comment-author {
  font-weight: 600;
  color: var(--c-text);
  font-size: 0.875rem;
}

.tpl-user-comment .comment-content {
  margin-bottom: 16px;
  width: 100%;
}

.tpl-comment-timestamp {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--c-text-3);
}

.tpl-comment-text {
  margin-top: 10px;
  color: var(--c-text-2);
  font-size: 0.875rem;
  line-height: 1.65;
  white-space: unset;
}

.comment-actions {
  margin-top: 12px;
}

.comment-action-right {
  float: right;
}

.comment-action-left {
  float: left;
}

.tpl-comment-children {
  display: block;
  margin-left: 52px;
  padding-top: 16px;
}

.tpl-reply-form {
  display: flex;
}

.comment-reply-wrapper {
  margin-left: 52px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 14px;
  width: calc(100% - 52px);
  margin-bottom: 20px;
}

.comment-reply-wrapper textarea {
  background: transparent;
  border: 0;
  color: var(--c-text);
  width: 100%;
  outline: none;
  font-family: inherit;
}

.reply-action-buttons {
  float: right;
  margin-top: 12px;
}

.tpl-btn-cancel-reply {
  color: var(--c-text-3);
}

#tpl-btn-load-more-comments {
  color: var(--c-text-3);
}

.comment-require-login-wrapper {
  display: flex;
  margin-bottom: 32px;
}

.comment-require-login-wrapper .comment-alert {
  padding: 12px;
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-align: center;
  width: 100%;
  color: var(--c-text-2);
  font-size: 0.875rem;
}

/* Legacy comment selectors (kept for compatibility) */
.comment-user-avatar {
  position: absolute;
  width: 40px;
  height: 40px;
}

.comment-user-avatar img,
.comment-avatar img {
  border-radius: 50%;
}

.comment-avatar {
  float: left;
  width: 40px;
  height: 40px;
}

.comment-input {
  margin-left: 56px;
}

.comment-btn-post {
  text-align: right;
}

.comment-p {
  margin-top: 20px;
}

.comment-p .comment-date {
  float: right;
  color: var(--c-text-3);
  font-size: 0.78rem;
}

.comment-username {
  font-weight: 600;
}

.comment-details {
  margin-left: 56px;
}

.comment-text {
  white-space: pre-line;
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 992px) {
  #navb {
    margin: 12px 0;
  }

  .nav-item {
    margin: 0 4px;
  }

  a.nav-link {
    padding-left: 10px !important;
  }

  .sidebar {
    padding-left: 0;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    max-width: 60%;
    margin-right: 0;
  }

  .nav-item.dropdown .dropdown-menu {
    position: unset;
  }

  .dropdown-submenu .dropdown-menu {
    position: unset;
    margin-top: 12px;
    margin-left: 0;
  }

  .single-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 576px) {
  h3.item-title {
    font-size: 0.9rem;
  }
}

/* ══════════════════════════════════
   RTL SUPPORT
══════════════════════════════════ */
[dir="rtl"] .wgt-list-game-vertical .wgt-list-content {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .navbar,
[dir="rtl"] .container {
  direction: rtl;
}

[dir="rtl"] #toggler {
  float: left;
}

[dir="rtl"] .navbar-brand {
  margin-right: auto;
}

[dir="rtl"] .nav-categories,
[dir="rtl"] .nav-categories .container {
  direction: rtl;
}

[dir="rtl"] #home-game-container,
[dir="rtl"] .bottom-container,
[dir="rtl"] .sidebar .widget-title,
[dir="rtl"] .info-the-game,
[dir="rtl"] .tpl-comment-input,
[dir="rtl"] .user-page,
[dir="rtl"] .footer,
[dir="rtl"] .singlepage-post,
[dir="rtl"] .page-title,
[dir="rtl"] .blog-list,
[dir="rtl"] .game-container-archive,
[dir="rtl"] .game-container-search,
[dir="rtl"] .game-container-tag {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .comment-date {
  text-align: left !important;
}

[dir="rtl"] .single-game,
[dir="rtl"] .single-page {
  direction: rtl;
}

[dir="rtl"] .item-title i,
[dir="rtl"] .single-icon i,
[dir="rtl"] h4 i {
  margin-left: 9px;
  margin-right: 0;
}

[dir="rtl"] .comment-profile-avatar {
  margin-left: 14px;
  margin-right: 0;
}

[dir="rtl"] .nav-categories .hidden-links {
  left: 0;
  right: unset;
}

[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.255em;
}

[dir="rtl"] nav.greedy button::after {
  margin-left: calc(-1rem - 10px);
  margin-right: 1rem;
}

[dir="rtl"] ul.hidden-links {
  text-align: right;
  padding-inline-start: 0;
}

[dir="rtl"] .nav-item .dropdown-menu {
  text-align: right;
}

[dir="rtl"] .dropdown-submenu .dropdown-menu {
  right: 100%;
  left: auto;
}

[dir="rtl"] .single-info-container .header {
  direction: rtl;
}
