/* ────────────────────────────────────────────
   PUBG MOBILE VN - PIXEL PERFECT HOMEPAGE
   Version: 3.9.0
──────────────────────────────────────────── */

/* ═══════════════════════════════════════════
   1. GLOBAL CONTAINER
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  overflow-x: hidden;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: #165DFF; text-decoration: none; }
a:hover { color: #0d47a1; }

a:focus-visible { outline: 2px solid #165DFF; outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.3; color: #1e293b; font-weight: 700; }

/* Container: max-width 1200px, horizontally centered, 20px side padding */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Dark mode */
[data-theme="dark"] {
  background: #0f172a;
  color: #f1f5f9;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #f1f5f9;
}
[data-theme="dark"] .lookup-card,
[data-theme="dark"] .data-table,
[data-theme="dark"] .map-card,
[data-theme="dark"] .article-card {
  background: #1e293b;
  color: #f1f5f9;
}
[data-theme="dark"] .data-table thead th {
  background: #0f172a;
  color: #94a3b8;
}
[data-theme="dark"] .data-table tbody tr.row-even {
  background: #1e293b;
}
[data-theme="dark"] .data-table tbody tr.row-odd {
  background: #0f172a;
}
[data-theme="dark"] .data-table tbody td {
  color: #f1f5f9;
}
[data-theme="dark"] .map-card-title,
[data-theme="dark"] .article-card-title {
  color: #f1f5f9;
}
[data-theme="dark"] .article-card-date {
  color: #64748b;
}
[data-theme="dark"] .lookup-input {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .lookup-card-title {
  color: #f1f5f9;
}
[data-theme="dark"] .lookup-empty,
[data-theme="dark"] .lookup-error {
  color: #94a3b8;
}

/* ═══════════════════════════════════════════
   2. TICKER / NEWS BAR
═══════════════════════════════════════════ */
.ticker-bar {
  width: 100%;
  height: 36px;
  background: linear-gradient(90deg, #0a0f1e 0%, #1a2744 50%, #0a0f1e 100%);
  border-bottom: 1px solid rgba(37,99,235,.3);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  height: 100%;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(220,38,38,.3);
}

.ticker-live-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
  animation: tickerPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

.ticker-live-text {
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 100%;
  text-decoration: none !important;
  transition: background .2s;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,.08);
}

.ticker-item:hover {
  background: rgba(255,255,255,.06);
}

.ticker-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.ticker-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  line-height: 1;
}

.ticker-date {
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,.08);
  height: 100%;
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════════
   3. NAVIGATION BAR
═══════════════════════════════════════════ */
.navbar {
  width: 100% !important;
  height: 58px !important;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

.navbar-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 58px !important;
  gap: 24px !important;
}

/* ── Brand / Logo ── */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  padding: 4px 0 !important;
}
.navbar-brand-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37,99,235,.4) !important;
  flex-shrink: 0 !important;
}
.navbar-brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1 !important;
}
.navbar-brand-name {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
}
.navbar-brand-sub {
  font-size: 9px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.5) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-top: 2px !important;
}

/* ── Nav Menu ── */
.navbar-menu {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 !important;
  overflow: visible !important;
}

.navbar-menu > li {
  position: relative;
  flex-shrink: 0;
}

.navbar-menu > li > .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 11px !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.82) !important;
  font-weight: 600 !important;
  transition: color 0.15s, background 0.15s !important;
  text-decoration: none !important;
  border-radius: 7px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.navbar-menu > li > .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.08) !important;
}

.navbar-menu > li.current-menu-item > .nav-link,
.navbar-menu > li.current-menu-parent > .nav-link {
  color: #ffffff !important;
  background: rgba(255,255,255,.14) !important;
}

/* Nav icons */
.nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  opacity: 0.8 !important;
  transition: opacity 0.15s;
}
.navbar-menu > li > .nav-link:hover .nav-icon,
.navbar-menu > li.current-menu-item > .nav-link .nav-icon {
  opacity: 1 !important;
}

/* Submenu arrow */
.navbar-menu > li.has-submenu > .nav-link .submenu-arrow {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 2px !important;
  opacity: 0.55 !important;
  transition: opacity 0.15s, transform 0.2s !important;
}
.navbar-menu > li.has-submenu > .nav-link:hover .submenu-arrow {
  opacity: 0.9 !important;
}
.navbar-menu > li.has-submenu:hover > .nav-link .submenu-arrow {
  transform: rotate(180deg) !important;
  opacity: 0.9 !important;
}

/* "Tải game" CTA button */
.nav-link-highlight {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  padding: 7px 14px !important;
  box-shadow: 0 2px 10px rgba(37,99,235,.3) !important;
}
.nav-link-highlight:hover {
  background: linear-gradient(135deg, #1d4ed8, #0e7490) !important;
  border-color: rgba(255,255,255,.35) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,.5) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

/* ── Desktop Dropdown Submenu ── */
.navbar-menu li.has-submenu {
  position: relative;
}

.navbar-menu li.has-submenu::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  bottom: -6px;
  z-index: 998;
}

.navbar-menu li.has-submenu > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  padding: 14px 0 6px;
  list-style: none;
  margin: 0;
  z-index: 1000;
}

@keyframes submenuFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.navbar-menu li.has-submenu > .sub-menu::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255,255,255,.08);
}

.navbar-menu li.has-submenu:hover > .sub-menu {
  display: block;
  animation: submenuFadeIn 0.18s ease;
}

.navbar-menu li.has-submenu > .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-radius: 6px;
  margin: 1px 6px;
}

.navbar-menu li.has-submenu > .sub-menu li a:hover {
  background: rgba(22,93,255,0.2);
  color: #93c5fd;
}

.navbar-menu li.has-submenu > .sub-menu li.has-submenu {
  position: relative;
}
.navbar-menu li.has-submenu > .sub-menu li.has-submenu > .sub-menu {
  top: 0;
  left: calc(100% + 8px);
  transform: none;
}
.navbar-menu li.has-submenu > .sub-menu li.has-submenu:hover > .sub-menu {
  display: block;
}

/* ── Right side controls ── */
.navbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.navbar-icon-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
}

.navbar-icon-btn:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #93c5fd !important;
}

.navbar-hamburger {
  display: none !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 28px !important;
  height: 20px !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.navbar-hamburger span {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  background: #ffffff !important;
  border-radius: 2px !important;
}

.navbar-search {
  background: linear-gradient(90deg, #1d4ed8, #06b6d4) !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  display: none !important;
}

.navbar-search.open {
  display: block !important;
}

.navbar-search-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.navbar-search-form {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  color: rgba(255,255,255,0.7) !important;
}

.navbar-search-form input {
  flex: 1 !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-family: inherit !important;
  height: 36px !important;
}

.navbar-search-form input::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

.navbar-search-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255,255,255,0.1) !important;
  border: none !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.7) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.15s !important;
}

.navbar-search-close:hover {
  background: rgba(255,255,255,0.2) !important;
}

.navbar-mobile-menu {
  display: none !important;
  flex-direction: column !important;
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%) !important;
  padding: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.navbar-mobile-menu.open {
  display: flex !important;
}

.navbar-mobile-menu .mobile-nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.navbar-mobile-menu .mobile-nav-list > li {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.navbar-mobile-menu .mobile-nav-list > li:last-child {
  border-bottom: none !important;
}

.navbar-mobile-menu .mobile-nav-list > li > a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
}

.navbar-mobile-menu .mobile-nav-list > li > a:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #93c5fd !important;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu > a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(-45deg);
  transition: transform 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu.sub-open > a::after {
  transform: rotate(45deg);
  border-color: #93c5fd;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu > .sub-menu {
  display: none;
  background: rgba(0,0,0,0.2);
  padding: 4px 0;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu.sub-open > .sub-menu {
  display: block;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu > .sub-menu li a {
  display: block !important;
  padding: 11px 20px 11px 36px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
  border-left: 3px solid transparent;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu > .sub-menu li a:hover {
  background: rgba(37,99,235,0.2) !important;
  color: #93c5fd !important;
  border-left-color: #3b82f6;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu > .sub-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.navbar-mobile-menu .mobile-nav-list > li.has-submenu > .sub-menu li:last-child {
  border-bottom: none !important;
}

.navbar-mobile-menu .mobile-nav-list > li > a[href*="tai-game"] {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  text-align: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  margin: 8px 12px;
  border-radius: 8px;
  padding: 12px 20px !important;
  box-shadow: 0 2px 10px rgba(37,99,235,0.3);
}

.navbar-mobile-menu .mobile-nav-list > li > a[href*="tai-game"]:hover {
  background: linear-gradient(135deg, #1d4ed8, #0e7490) !important;
  box-shadow: 0 4px 16px rgba(37,99,235,0.5);
}

/* ═══════════════════════════════════════════
   4. HERO SECTION (Carousel 70% + Lookup 30%)
═══════════════════════════════════════════ */
.page-main {
  padding-bottom: 40px;
}

.hero-section {
  margin-top: 12px;
}

.hero-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

/* LEFT: Carousel 70% */
.hero-carousel {
  flex: 0 0 70%;
}

/* RIGHT: Lookup 30% */
.hero-lookup {
  flex: 0 0 30%;
}

/* ─── Carousel ─── */
.carousel {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #0a1628;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.15) 100%);
}

.carousel-slide-content {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  color: #ffffff;
}

.carousel-slide-tag {
  display: inline-block;
  background: rgba(22,93,255,0.7);
  color: #ffffff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.carousel-slide-content h2 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.carousel-slide-content p {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #165DFF;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.carousel-btn:hover {
  background: #0d47a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,93,255,0.3);
  color: #ffffff;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* Carousel arrows */
.carousel-arrows {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
}

/* ─── Lookup Card ─── */
.lookup-card {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
}

.lookup-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lookup-input {
  width: 100%;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.lookup-input:focus {
  border-color: #165DFF;
}

.lookup-input::placeholder {
  color: #94a3b8;
}

.lookup-btn {
  width: 100%;
  height: 44px;
  background: #165DFF;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s;
}

.lookup-btn:hover {
  background: #0d47a1;
}

.lookup-divider {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  position: relative;
}

.lookup-result {
  margin-top: 4px;
}

.lookup-empty,
.lookup-error {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 16px;
}

/* ═══════════════════════════════════════════
   5. UPDATE / CHANGELOG PAGE
═══════════════════════════════════════════ */
.page-title-block {
  margin-bottom: 32px;
}
.page-main-title {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
}
.page-sub-title {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

/* Filter Tabs */
.update-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.uf-tab {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.uf-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22,93,255,.06);
}
.uf-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(22,93,255,.3);
}

/* ─── NEW VERSION BANNER ─── */
.update-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.update-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}
.update-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.ub-left { flex: 1; min-width: 0; }
.ub-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 800;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.2);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.ub-title {
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
}
.ub-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.5;
}
.ub-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ub-version {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255,255,255,.2);
  line-height: 1;
}
.ub-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #ffffff;
  color: #0c2340;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  white-space: nowrap;
}
.ub-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  color: #0c2340;
}
.ub-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-decoration: none !important;
  transition: color .15s;
}
.ub-detail-btn:hover { color: #ffffff; }

/* ─── CONTENT CATEGORY TAGS ─── */
.uc-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 2px 0;
}
.uc-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .2px;
  white-space: nowrap;
}

/* ─── SYSTEM REQUIREMENTS ─── */
.uc-sysreq {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-alt);
  padding: 4px 8px;
  border-radius: 6px;
  margin: 2px 0;
  border: 1px solid var(--border-light);
}

/* ─── LATEST BADGE ─── */
.uc-latest-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 20px;
  background: #ef4444;
  color: #ffffff;
  letter-spacing: .3px;
  text-transform: uppercase;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* Update Grid */
.update-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Update Card */
.update-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}
.update-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── Update Card ─── */
.update-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}
.update-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Card Top: Themed image area */
.uc-top {
  position: relative;
  min-height: 110px;
  padding: 14px 16px 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Decorative diagonal pattern overlay */
.uc-top-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 20px
    );
  pointer-events: none;
}

/* Badges row */
.uc-top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.uc-ver-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,.4);
  color: #ffffff;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}

.uc-type-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .3px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* Feature label */
.uc-feature-label {
  position: relative;
  z-index: 1;
  margin-top: 6px;
}
.uc-feature-label span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.25);
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
}

/* Version number watermark */
.uc-watermark {
  position: absolute;
  right: -8px;
  bottom: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Card Body */
.uc-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Meta row (time + file size) */
.uc-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.uc-meta-sep {
  color: var(--border);
}

/* Title */
.uc-title {
  font-size: .92rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Excerpt */
.uc-excerpt {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* Footer */
.uc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.uc-read-more {
  font-size: .76rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.update-card:hover .uc-read-more {
  gap: 7px;
}
.uc-source-link {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Empty state */
.update-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .update-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .update-grid { grid-template-columns: 1fr; }
  .page-main-title { font-size: 1.3rem !important; }
  .update-filter-tabs { gap: 6px; }
  .uf-tab { padding: 6px 14px; font-size: .78rem; }
}

/* ═══════════════════════════════════════════
   SKIN & EVENT PAGE
═══════════════════════════════════════════ */
.skin-page-header {
  margin-bottom: 24px;
}
.skin-page-title {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
}
.skin-page-sub {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

/* Filter Bar */
.skin-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}
.sf-tab {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap;
}
.sf-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22,93,255,.06);
}
.sf-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(22,93,255,.3);
}

/* Event Grid */
.skin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Event Card */
/* ─── Event Card (Step 3) ─── */
.skin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.skin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.skin-card[data-status="ended"] { opacity: .72; }
.skin-card[data-status="ended"]:hover { opacity: .88; }

/* Card Top — 180px official image */
.sc-top {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
  flex-shrink: 0;
}
.sc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-top-grad {
  width: 100%;
  height: 100%;
}

/* Status badge — top-left, ALL CAPS */
.sc-status {
  position: absolute;
  top: 0;
  left: 0;
  font-size: .6rem;
  font-weight: 900;
  color: #ffffff;
  padding: 4px 10px;
  letter-spacing: .8px;
  text-transform: uppercase;
  z-index: 3;
}

/* Card Body */
.sc-body {
  padding: 14px 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Type badge — blue small tag */
.sc-type-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .2px;
  text-transform: uppercase;
  margin-bottom: 2px;
  align-self: flex-start;
}

/* Title — 14px bold */
.sc-title {
  font-size: .875rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Time range — 12px gray */
.sc-time {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Reward icons row */
.sc-reward-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-top: 2px;
}
.sc-reward-text {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* Footer */
.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.sc-read-more {
  font-size: .76rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.skin-card:hover .sc-read-more { gap: 7px; }

/* Empty state */
.skin-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .skin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .skin-grid { grid-template-columns: 1fr; }
  .skin-page-title { font-size: 1.25rem !important; }
  .skin-filter-bar { gap: 6px; padding: 8px 10px; }
  .sf-tab { padding: 5px 12px; font-size: .75rem; }
  .sc-top { height: 150px; }
}

/* ─── Upcoming event banner ─── */
.skin-upcoming-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.skin-upcoming-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0px, rgba(255,255,255,.03) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}
.sub-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.sub-left { flex: 1; min-width: 0; }
.sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 800;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.2);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.sub-title {
  font-size: .95rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}
.sub-desc {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.4;
}
.sub-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.sub-date {
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.2);
  line-height: 1;
}
.sub-remind-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: #ffffff;
  color: #1d4ed8;
  border: none;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
  font-family: inherit;
  white-space: nowrap;
}
.sub-remind-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,.3);
}
.sub-detail-link {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}
.sub-detail-link:hover { color: #ffffff; }

/* ─── Controls row (filters + search) ─── */
.skin-controls-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.skin-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  min-width: 200px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: border-color .2s;
}
.skin-search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,93,255,.1);
}
.skin-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .8rem;
  color: var(--text);
  font-family: inherit;
  width: 100%;
}
.skin-search-box input::placeholder { color: var(--text-muted); }

/* Filter tab count badge */
.sf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  background: rgba(0,0,0,.12);
  color: inherit;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 16px;
  margin-left: 3px;
}
.sf-tab.active .sf-count { background: rgba(255,255,255,.25); }

/* Ended card overlay */
.sc-ended-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.sc-ended-overlay span {
  font-size: .75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(0,0,0,.4);
  padding: 4px 14px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.3);
}

/* ─── Detail page styles ─── */
.skin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none !important;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .15s;
}
.skin-back-btn:hover { background: var(--bg-alt); color: var(--blue); }

.skin-detail-header {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.sdh-image-wrap, .sdh-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sdh-grad {
  width: 100%;
  height: 100%;
}
.sdh-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  display: flex;
  gap: 8px;
  align-items: center;
}
.sdh-status {
  font-size: .65rem;
  font-weight: 900;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.sdh-badge {
  font-size: .65rem;
  font-weight: 800;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.3);
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.skin-detail-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.sd-content { min-width: 0; }
.sd-title {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 12px !important;
  line-height: 1.2 !important;
}
.sd-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.sd-rewards-box {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.sd-rewards-label {
  font-size: .65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.sd-rewards-text {
  font-size: .85rem;
  color: var(--text);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.sd-section { margin-bottom: 24px; }
.sd-section-title {
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 14px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sd-content-body {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.7;
}
.sd-content-body p { margin-bottom: 12px; }
.sd-content-body ul { padding-left: 20px; margin-bottom: 12px; }
.sd-content-body li { margin-bottom: 4px; }

/* Claim guide section */
.sd-guide {
  background: var(--bg-card);
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sd-guide-reward {
  font-size: .8rem;
  color: var(--text-muted);
  margin: -8px 0 16px !important;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sd-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sd-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.sd-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sd-step-body { flex: 1; min-width: 0; }
.sd-step-title {
  font-size: .82rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin: 0 0 3px !important;
  line-height: 1.3 !important;
}
.sd-step-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.sd-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .75rem;
  color: #92400e;
  font-weight: 600;
  line-height: 1.5;
}
.sd-guide-past { border-color: var(--border-light); opacity: .85; }
.sd-past-note {
  font-size: .78rem;
  color: var(--text-muted);
  margin: -8px 0 14px !important;
  font-style: italic;
}

/* Related sidebar */
.sd-sidebar { position: sticky; top: 80px; }
.sd-sidebar-title {
  font-size: .9rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 12px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}
.sd-related-list { display: flex; flex-direction: column; gap: 8px; }
.sd-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.sd-related-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.src-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 900px) {
  .skin-grid { grid-template-columns: repeat(2, 1fr); }
  .skin-controls-row { flex-wrap: wrap; }
  .skin-search-box { min-width: 160px; }
  .skin-detail-body { grid-template-columns: 1fr; }
  .sd-sidebar { position: static; }
  .sub-inner { flex-direction: column; align-items: flex-start; }
  .sub-right { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .skin-grid { grid-template-columns: 1fr; }
  .skin-page-title { font-size: 1.25rem !important; }
  .skin-filter-bar { gap: 6px; padding: 8px 10px; }
  .sf-tab { padding: 5px 12px; font-size: .75rem; }
  .skin-controls-row { flex-direction: column; }
  .skin-search-box { width: 100%; min-width: unset; }
  .sc-top { height: 150px; }
  .skin-detail-header { height: 200px; }
}

/* ─── Guide Page (page-huong-dan-sinh-ton.php) ─── */

/* Page Header */
.guide-page-header { margin-bottom: 24px; }
.guide-page-title {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 8px !important;
  line-height: 1.2 !important;
}
.guide-page-sub {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  font-weight: 500;
}

/* Filter Bar */
.guide-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 24px;
  align-items: center;
}
.gfb-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  background: transparent;
  transition: background .15s, color .15s;
  font-family: inherit;
  white-space: nowrap;
}
.gfb-tab:hover  { background: var(--bg-alt); color: var(--text); }
.gfb-tab.active { background: var(--blue);   color: #ffffff; }

/* Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* ── Guide Card ── */
.guide-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  overflow: hidden;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(22,93,255,.14);
}
.guide-card-pro { border-color: rgba(245,158,11,.3); }
.guide-card-pro:hover {
  box-shadow: 0 8px 28px rgba(245,158,11,.2) !important;
  border-color: rgba(245,158,11,.5) !important;
}

/* Card Top */
.gc-top {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0a0e1a;
  flex-shrink: 0;
}
.gc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.guide-card:hover .gc-image { transform: scale(1.04); }

/* Category badge — top-left */
.gc-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .2px;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(4px);
  background-clip: padding-box;
}

/* HOT badge — top-right */
.gc-hot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .6rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  letter-spacing: .3px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
}

/* Source badge — bottom-left */
.gc-source-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: .6rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  letter-spacing: .5px;
  z-index: 3;
}

/* Card Body */
.gc-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Title */
.gc-title {
  font-size: .875rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

/* Author */
.gc-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.gc-author svg { flex-shrink: 0; opacity: .6; }

/* Stats row */
.gc-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.gc-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gc-stat svg { flex-shrink: 0; opacity: .55; }
.gc-stat-dot { color: var(--border); font-size: .9em; }
.gc-pro-tag {
  font-size: .62rem;
  font-weight: 800;
  color: #d97706;
  background: rgba(245,158,11,.12);
  padding: 1px 6px;
  border-radius: 20px;
  margin-left: auto;
}

/* CTA Button — full width, uniform style */
.gc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0;
  margin-top: auto;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(22,93,255,.07);
  border: 1.5px solid rgba(22,93,255,.25);
  border-radius: 6px;
  transition: background .15s, color .15s, gap .15s, border-color .15s;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.gc-cta-btn svg { flex-shrink: 0; transition: transform .15s; }
.guide-card:hover .gc-cta-btn {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  gap: 9px;
}

/* Responsive */
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 580px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-page-title { font-size: 1.2rem !important; }
  .guide-filter-bar { gap: 6px; padding: 10px; }
  .gfb-tab { padding: 5px 10px; font-size: .75rem; }
  .gc-top { height: 160px; }
  .gc-title { font-size: .85rem !important; }
}

/* ═══════════════════════════════════════════
   SENSITIVITY PRESETS SECTION
   (Top section of guide page)
═══════════════════════════════════════════ */
.sens-presets-section {
  margin-bottom: 40px;
}
.sens-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.sens-section-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f3e8ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sens-section-title {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 4px !important;
  line-height: 1.2 !important;
}
.sens-section-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
}

/* Sensitivity grid: 4 across on PC, 2 on tablet, 1 on mobile */
.sens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sens-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .22s, box-shadow .22s;
}
.sens-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.sens-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sens-finger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.sens-finger-icon { font-size: 1rem; }
.sens-finger-label { font-size: .78rem; }
.sens-device-tag {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.sens-card-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.sens-values {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.sens-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: .73rem;
}
.sens-row:last-child { border-bottom: none; }
.sens-row-key { color: var(--text-muted); font-weight: 500; }
.sens-row-val {
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sens-card-footer {
  margin-top: auto;
}
.sens-tip {
  font-size: .7rem;
  color: var(--blue);
  margin: 0 0 8px;
  line-height: 1.4;
  font-style: italic;
}
.sens-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border: 1.5px solid var(--sens-color, #165DFF);
  border-radius: 6px;
  background: rgba(var(--sens-color-rgb, 22,93,255), .06);
  color: var(--sens-color, #165DFF);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.sens-copy-btn:hover {
  background: var(--sens-color, #165DFF);
  color: #fff;
}

/* ═══════════════════════════════════════════
   NEWBIE SECTION
═══════════════════════════════════════════ */
.newbie-section {
  margin-bottom: 36px;
}
.newbie-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.newbie-section-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #dcfce7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newbie-section-title {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 4px !important;
  line-height: 1.2 !important;
}
.newbie-section-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
}
.newbie-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newbie-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.newbie-step-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(22,93,255,.1);
  border-color: var(--blue);
}
.ns-step-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue);
  width: 36px;
  height: 36px;
  background: rgba(22,93,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ns-icon { font-size: 1.3rem; flex-shrink: 0; }
.ns-content { flex: 1; min-width: 0; }
.ns-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.ns-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-arrow { color: var(--text-muted); flex-shrink: 0; }

/* ═══════════════════════════════════════════
   GUIDE DETAIL PAGE
═══════════════════════════════════════════ */
.guide-detail-header {
  background: linear-gradient(135deg, #0a1628, #1a2a4a, #0d1f3c);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  color: #fff;
}
.gd-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gd-cat-badge {
  font-size: .68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: .2px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.gd-pro-badge {
  font-size: .65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  padding: 3px 9px;
  border-radius: 20px;
}
.gd-source-badge {
  font-size: .65rem;
  font-weight: 700;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.gd-title {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  margin: 0 0 12px !important;
  line-height: 1.3 !important;
}
.gd-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gd-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.gd-meta-item svg { opacity: .7; }

/* Article body */
.guide-detail-body {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text);
}
.gd-section-heading {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin: 24px 0 10px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}
.gd-paragraph {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 14px;
}
.gd-source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 12px;
  background: var(--bg-alt);
  border-radius: 8px;
  margin-top: 20px;
}
.gd-source-link a { color: var(--blue); }

/* Like & Favorite buttons */
.gd-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.gd-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.gd-action-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22,93,255,.04);
}
.gd-like-btn.liked {
  background: rgba(239,68,68,.08);
  border-color: #ef4444;
  color: #ef4444;
}
.gd-fav-btn.faved {
  background: rgba(245,158,11,.08);
  border-color: #f59e0b;
  color: #d97706;
}

/* Related guides */
.gd-related-section {
  margin-bottom: 24px;
}
.gd-related-title {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--text) !important;
  margin: 0 0 14px !important;
}
.gd-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gd-related-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.gd-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(22,93,255,.12);
}
.grc-thumb {
  position: relative;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grc-thumb-placeholder {
  font-size: 2.5rem;
  opacity: .6;
}
.grc-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.grc-pro {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: .75rem;
}
.grc-body { padding: 10px 12px; }
.grc-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.grc-meta { font-size: .7rem; color: var(--text-muted); }

/* Share row */
.gd-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
}
.gd-share-btn {
  padding: 7px 16px;

/* ═══════════════════════════════════════════
   GAME DOWNLOAD PAGE (page-tai-game.php)
═══════════════════════════════════════════ */

/* Stats Bar */
.download-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 24px;
  display: inline-flex;
}
.download-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.download-stat-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.download-stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.download-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
}

/* Device Check Card */
.download-device-check { margin-bottom: 28px; }
.device-check-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.device-check-icon { font-size: 1.8rem; flex-shrink: 0; }
.device-check-text { flex: 1; min-width: 0; }
.device-check-title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.device-check-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.device-check-btn {
  flex-shrink: 0;
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.device-check-btn:hover { background: var(--blue-dark); }

/* Games Grid */
.download-games-section { margin-bottom: 32px; }
.download-section-labels {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.download-section-label {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.download-section-label:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.download-section-label.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.download-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Game Card */
.download-game-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .22s, box-shadow .22s;
  position: relative;
}
.download-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22,93,255,.12);
  border-color: var(--blue);
}
.download-game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.download-game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-game-icon-emoji { font-size: 2rem; }
.download-game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: .6rem;
  font-weight: 800;
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .2px;
}
.download-game-info { flex: 1; }
.download-game-name {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.download-game-tagline {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.download-game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.download-meta-tag {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 20px;
}
.download-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  border: 1.5px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}
.download-btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.download-btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}
.download-btn-primary.loading {
  opacity: .7;
  cursor: wait;
}
.download-btn-primary.done {
  background: var(--green);
  border-color: var(--green);
}
.download-btn-secondary {
  background: #000;
  color: #fff;
}
.download-btn-secondary:hover { background: #333; }
.download-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.download-btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.download-status {
  min-height: 20px;
  font-size: .78rem;
}

/* Feature Banner */
.download-feature-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}
.download-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.download-feature-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.download-feature-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.download-feature-desc {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* APK Install Guide */
.download-guide-section { margin-bottom: 32px; }
.download-guide-title {
  font-size: 1.1rem !important;
  font-weight: 900 !important;
  color: var(--text) !important;
  margin: 0 0 6px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-guide-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.download-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.download-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
.download-guide-step-num {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 900;
  flex-shrink: 0;
}
.download-guide-step-content { flex: 1; }
.download-guide-step-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.download-guide-step-text {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.download-guide-step-icon { font-size: 1.5rem; flex-shrink: 0; }
.download-guide-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: .8rem;
  color: #92400e;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .download-games-grid { grid-template-columns: repeat(2, 1fr); }
  .download-feature-banner { grid-template-columns: repeat(2, 1fr); }
  .download-stats-bar { padding: 10px 16px; gap: 0; }
  .download-stat-item { padding: 0 12px; }
}
@media (max-width: 640px) {
  .download-stats-bar { flex-wrap: wrap; }
  .download-feature-banner { grid-template-columns: 1fr; }
  .device-check-card { flex-wrap: wrap; }
  .device-check-btn { width: 100%; justify-content: center; }
}
@media (max-width: 580px) {
  .download-games-grid { grid-template-columns: 1fr; }
  .download-guide-steps { gap: 8px; }
  .download-guide-step { padding: 10px 12px; gap: 10px; }
}
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.gd-share-btn:hover { opacity: .8; }
.gd-share-fb { background: #1877f2; color: #fff; }
.gd-share-x  { background: #000; color: #fff; }
.gd-share-zalo { background: #0068ff; color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .sens-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sens-grid { grid-template-columns: 1fr; }
  .gd-related-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-actions { flex-direction: column; }
}
@media (max-width: 580px) {
  .newbie-steps { gap: 6px; }
  .gd-related-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   WEAPONS & ITEMS;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.section-btn {
  background: #165DFF;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.section-btn:hover {
  background: #0d47a1;
  color: #ffffff;
}

/* Data Table */
.data-table {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  border-collapse: collapse;
}

.data-table thead tr {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.data-table thead th {
  padding: 0 16px;
  height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody tr {
  height: 48px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.data-table tbody tr.row-even {
  background: #f8fafc;
}

.data-table tbody tr.row-odd {
  background: #ffffff;
}

.data-table tbody td {
  padding: 0 16px;
  font-size: 14px;
  color: #1e293b;
  text-align: left;
}

/* Weapon cell */
.weapon-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  text-decoration: none;
}

.weapon-cell:hover {
  color: #165DFF;
}

.weapon-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.weapon-name {
  font-size: 14px;
  font-weight: 600;
}

/* Type pills */
.type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.type-AR    { background: #dbeafe; color: #1d4ed8; }
.type-SR    { background: #fce7f3; color: #be185d; }
.type-SMG   { background: #dcfce7; color: #15803d; }
.type-DMR   { background: #fef9c3; color: #a16207; }
.type-LMG   { background: #f3e8ff; color: #7e22ce; }
.type-Pistol{ background: #fff7ed; color: #c2410c; }
.type-Shotgun { background: #ffe4e6; color: #9f1239; }
.type-Melee { background: #f0fdf4; color: #166534; }
.type-Throwable { background: #fef3c7; color: #92400e; }

/* Stat cells */
.stat-dmg { color: #dc2626; font-weight: 700; }
.stat-wr { color: #165DFF; font-weight: 700; }
.stat-speed { color: #16a34a; }
.stat-range { color: #7c3aed; }
.stat-recoil { color: #d97706; }
.stat-updated { font-size: 12px; color: #64748b; }

.table-empty {
  text-align: center;
  color: #64748b;
  padding: 24px;
}

/* ═══════════════════════════════════════════
   5B. FREE SKIN BANNER
═══════════════════════════════════════════ */
.free-skin-banner-section {
  margin-top: 24px;
}

.free-skin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  border-radius: 8px;
  padding: 18px 28px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  transition: box-shadow 0.2s, transform 0.2s;
  flex-wrap: wrap;
}

.free-skin-banner:hover {
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.free-skin-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.free-skin-banner-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.free-skin-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.free-skin-banner-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.free-skin-banner-events {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.free-skin-banner-event {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.free-skin-banner-btn {
  background: #ffffff;
  color: #0ea5e9;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.free-skin-banner-btn:hover {
  background: #f0f9ff;
  color: #0284c7;
}

/* ═══════════════════════════════════════════
   5C. DOUBLE-COLUMN RANKINGS
═══════════════════════════════════════════ */
.rankings-section {
  margin-top: 24px;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.rankings-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.rankings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.rankings-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.rankings-card-more {
  font-size: 12px;
  font-weight: 600;
  color: #165DFF;
  text-decoration: none;
  transition: color 0.15s;
}

.rankings-card-more:hover {
  color: #0d47a1;
}

.rankings-list {
  padding: 8px 0;
}

.rankings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.15s;
}

a.rankings-item:hover {
  background: #f8fafc;
}

.rankings-rank {
  font-size: 13px;
  font-weight: 800;
  min-width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.rankings-weapon-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.rankings-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.rankings-info {
  flex: 1;
  min-width: 0;
}

.rankings-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rankings-tier {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 2px;
}

.rankings-bar-wrap {
  margin-top: 4px;
}

.rankings-bar {
  height: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.rankings-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #165DFF, #3b82f6);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.rankings-stat {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.rankings-player-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.rankings-kd,
.rankings-wr {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.rankings-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .rankings-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   6. MAP CARDS SECTION
═══════════════════════════════════════════ */
.maps-section {
  margin-top: 32px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.map-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.map-card-thumb {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.map-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.map-card:hover .map-card-thumb img {
  transform: scale(1.05);
}

.map-card-title {
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

/* ═══════════════════════════════════════════
   7. ARTICLE CARDS SECTION
═══════════════════════════════════════════ */
.articles-section {
  margin-top: 32px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 16px;
}

.article-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: #165DFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.article-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-card-date {
  font-size: 12px;
  color: #94a3b8;
}

/* ═══════════════════════════════════════════
   7B. TOP GUIDE CARDS (3 per row, same style)
═══════════════════════════════════════════ */
.guides-section {
  margin-top: 24px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.guide-card-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.guide-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.guide-card:hover .guide-card-thumb img {
  transform: scale(1.05);
}

.guide-card-views {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.guide-card-body {
  padding: 14px 16px 16px;
}

.guide-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 4px 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   8. RESULT STAT (used in lookup)
═══════════════════════════════════════════ */
.result-stat {
  text-align: center;
  padding: 10px 4px;
}

.result-stat-val {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.2;
}

.result-stat-lbl {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}


/* ═══════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════ */
:root {
  --blue: #165DFF;
  --blue-dark: #0d47a1;
  --blue-light: #3b82f6;
  --teal: #0FC6C2;
  --red: #E53935;
  --red-dark: #c62828;
  --green: #16a34a;
  --yellow: #f59e0b;

  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);

  --topbar-h: 34px;
  --mainbar-h: 56px;
  --radius: 8px;
  --radius-lg: 12px;
  --max-w: 1200px;
  --nav-h: calc(var(--topbar-h) + var(--mainbar-h));
}

/* ═══════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #263548;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --border-light: #1e293b;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background-color .3s, color .3s;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--text); font-weight: 800; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Selection ─── */
::selection { background: rgba(22,93,255,.2); color: var(--text); }

/* ─── Utility ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 20px 0; }
.card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .5; }

/* ─── Type Pills ─── */
.type-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}
.type-AR    { background: #dbeafe; color: #1d4ed8; }
.type-SR    { background: #fce7f3; color: #be185d; }
.type-SMG   { background: #dcfce7; color: #15803d; }
.type-DMR   { background: #fef9c3; color: #a16207; }
.type-LMG   { background: #f3e8ff; color: #7e22ce; }
.type-Pistol{ background: #fff7ed; color: #c2410c; }
.type-Shotgun { background: #ffe4e6; color: #9f1239; }
.type-Melee { background: #f0fdf4; color: #166534; }
.type-Throwable { background: #fef3c7; color: #92400e; }

[data-theme="dark"] .type-AR    { background: rgba(29,78,216,.25); color: #93c5fd; }
[data-theme="dark"] .type-SR    { background: rgba(190,24,93,.25);  color: #f9a8d4; }
[data-theme="dark"] .type-SMG   { background: rgba(21,128,61,.25);  color: #86efac; }
[data-theme="dark"] .type-DMR   { background: rgba(161,98,7,.25);  color: #fde68a; }
[data-theme="dark"] .type-LMG   { background: rgba(126,34,206,.25); color: #d8b4fe; }
[data-theme="dark"] .type-Pistol{ background: rgba(194,65,12,.25);  color: #fed7aa; }
[data-theme="dark"] .type-Melee { background: rgba(22,101,52,.25); color: #86efac; }
[data-theme="dark"] .type-Throwable { background: rgba(146,64,14,.25); color: #fde68a; }

/* ─── Stat Pills ─── */
.stat-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
}
.stat-pill.red    { background: #fee2e2; color: #dc2626; }
.stat-pill.green  { background: #dcfce7; color: #16a34a; }
.stat-pill.yellow { background: #fef9c3; color: #a16207; }
.stat-pill.blue   { background: #dbeafe; color: #1d4ed8; }

.lookup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  font-family: inherit;
}
.lookup-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,93,255,.25);
}
.lookup-divider {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  position: relative;
}
.lookup-divider::before,
.lookup-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}
.lookup-divider::before { left: 0; }
.lookup-divider::after { right: 0; }

/* Lookup result */
#lookup-result { min-height: 60px; }
.lookup-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: .85rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
}
.lookup-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
}
.result-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.result-stat {
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.result-stat:last-child { border-right: none; }
.result-stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}
.result-stat-val.blue { color: var(--blue); }
.result-stat-val.red { color: var(--red); }
.result-stat-val.green { color: var(--green); }
.result-stat-lbl {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Server status */
.server-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.2);
  border-radius: 8px;
}
.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
  50% { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

/* ═══════════════════════════════════════════
   WEAPON TABLE SECTION
═══════════════════════════════════════════ */
.weapon-table-section { padding: 20px 0; }
.weapon-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.weapon-table-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.weapon-table-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.weapon-table-header h2 svg { color: var(--blue); }


/* Weapon cell */
.weapon-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.weapon-cell:hover .weapon-name { color: var(--blue); }
.weapon-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.weapon-name { font-weight: 700; font-size: .88rem; }

/* Stat cells */
.stat-dmg { color: var(--red); font-weight: 800; }
.stat-wr { color: var(--green); font-weight: 800; }
.stat-speed { color: var(--blue); font-weight: 700; }
.stat-range { color: #7c3aed; font-weight: 700; }
.stat-recoil { color: var(--yellow); font-weight: 700; }

   UPDATE BAR
═══════════════════════════════════════════ */
.update-bar {
  background: linear-gradient(90deg, #065f46, #059669);
  color: #fff;
  padding: 10px 20px;
  font-size: .82rem;
}
.update-bar .container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.update-bar a {
  margin-left: auto;
  background: #fff;
  color: #059669;
  font-weight: 700;
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   SUBSCRIBE BOX
═══════════════════════════════════════════ */
.subscribe-section { padding: 20px 0; }
.subscribe-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.subscribe-box h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
.subscribe-box p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 16px;
}
.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.subscribe-form input:focus { border-color: var(--blue); }
.subscribe-form button {
  padding: 11px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.subscribe-form button:hover { background: var(--blue-dark); }

/* ═══════════════════════════════════════════
   POPULAR SEARCH
═══════════════════════════════════════════ */
.popular-search-section { padding: 16px 0 0; }
.popular-search-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.popular-search-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.popular-search-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .95rem;
}
.popular-search-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.popular-search-col { padding: 14px 20px; }
.popular-search-col + .popular-search-col { border-left: 1px solid var(--border-light); }
.popular-search-col h3 { font-size: .82rem; margin-bottom: 10px; color: var(--text-muted); font-weight: 700; }
.popular-search-list { display: flex; flex-direction: column; gap: 2px; }
.popular-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.popular-search-item:hover {
  background: rgba(22,93,255,.06);
  transform: translateX(3px);
}
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
  flex-shrink: 0;
}
.rank.gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.rank.silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.rank.bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.rank.default { background: var(--bg-alt); color: var(--text-muted); }

/* ═══════════════════════════════════════════
   RECENT HISTORY / TRENDING GRID
═══════════════════════════════════════════ */
.history-trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trending-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.tag-cloud a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22,93,255,.06);
}

/* ═══════════════════════════════════════════
   POPULAR SEARCH SECTION 2 (weapons + players)
═══════════════════════════════════════════ */
.new-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ═══════════════════════════════════════════
   TOURNAMENT SECTION
═══════════════════════════════════════════ */
.tournament-section { padding: 20px 0; }
.tournament-body { padding: 0 20px 18px; }
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tournament-match-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: all .18s;
}
.tournament-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,93,255,.12);
  border-color: rgba(22,93,255,.25);
}
.tournament-match-teams { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tournament-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; flex: 1; text-align: center; }
.tournament-team img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: var(--bg-alt); flex-shrink: 0; }
.tournament-team span { font-size: .76rem; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tournament-vs { font-size: .72rem; font-weight: 800; color: var(--text-muted); background: var(--bg-alt); padding: 6px 8px; border-radius: 999px; flex-shrink: 0; }
.tournament-match-status { font-size: .78rem; color: var(--text-muted); font-weight: 600; text-align: center; padding-top: 2px; border-top: 1px solid var(--border-light); }

/* ═══════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.site-footer .footer-brand-emoji { font-size: 1.8rem; }
.site-footer .footer-brand-name { font-weight: 900; font-size: 1rem; color: #f1f5f9; }
.site-footer .footer-brand-sub { font-size: .72rem; color: var(--text-muted); }
.site-footer .footer-desc {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.site-footer .footer-socials { display: flex; gap: 8px; }
.site-footer .footer-social {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
  text-decoration: none;
}
.site-footer .footer-social:hover { background: rgba(22,93,255,.15); color: var(--blue-light); border-color: rgba(22,93,255,.3); }
.site-footer h4 {
  font-size: .85rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer ul li a {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
  line-height: 1.4;
}
.site-footer ul li a:hover { color: var(--blue-light); }
.site-footer .footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.site-footer .footer-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.site-footer .footer-tag:hover { border-color: rgba(22,93,255,.3); color: var(--blue-light); }
.site-footer .footer-tag span { opacity: .6; }
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: .78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer .footer-bottom a { color: var(--blue-light); text-decoration: none; }
.site-footer .footer-bottom a:hover { text-decoration: underline; }

.site-footer .footer-friendlinks {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .footer-friendlinks h4 {
  font-size: .85rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
  letter-spacing: .02em;
}
.site-footer .friendlinks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer .friendlink-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #94a3b8;
  font-size: .8rem;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.site-footer .friendlink-item:hover {
  background: rgba(22,93,255,.12);
  border-color: rgba(22,93,255,.3);
  color: var(--blue-light);
  transform: translateY(-1px);
}
.site-footer .friendlink-item::before {
  content: '🔗';
  margin-right: 6px;
  font-size: .7rem;
  opacity: .6;
}
.site-footer .friendlink-item:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .site-footer .footer-friendlinks { padding: 18px 0; }
  .site-footer .friendlinks-grid { gap: 8px; }
  .site-footer .friendlink-item { padding: 5px 10px; font-size: .75rem; }
}

/* ═══════════════════════════════════════════
   MOBILE BOTTOM NAV
═══════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 900;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.mobile-bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 52px;
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .6rem;
  font-weight: 700;
  transition: color .15s;
}
.mobile-bottom-nav a svg { width: 20px; height: 20px; }
.mobile-bottom-nav a.is-active { color: var(--blue); }

/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 70px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22,93,255,.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
  z-index: 800;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   PROS / CONS
═══════════════════════════════════════════ */
.pros-cons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pros-cons-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pros-cons-title.pro { color: var(--green); }
.pros-cons-title.con { color: var(--red); }
.pros-cons .item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.pros-cons .item svg { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }

/* ─── Attachment tags ─── */
.attachment-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.attachment-tag:hover { border-color: var(--blue); color: var(--blue); background: rgba(22,93,255,.06); }

/* ─── Scroll reveal ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RESPONSIVE: DESKTOP (>768px) — the default
   RESPONSIVE: MOBILE (<=768px) — overrides below
═══════════════════════════════════════════ */

/* ─── Mobile: <= 768px ─── */
@media (max-width: 768px) {

  /* Nav: hamburger visible, desktop menu hidden */
  .navbar-menu { display: none !important; }
  .navbar-right { display: none !important; }
  .navbar-hamburger { display: flex !important; }

  /* Hero: stack vertically */
  .hero-row { flex-wrap: wrap; gap: 12px; }
  .hero-carousel { flex: 0 0 100% !important; min-height: 240px; }
  .carousel { height: 260px !important; min-height: 240px !important; }
  .carousel-slide-content h2 { font-size: 1.05rem; }
  .carousel-slide-content p { font-size: .8rem; -webkit-line-clamp: 2; }
  .hero-lookup { flex: 0 0 100% !important; }

  /* History/trending: single column */
  .history-trending-grid { grid-template-columns: 1fr; }
  .new-grid { grid-template-columns: 1fr; }

  /* Map: 2 per row */
  .map-grid { grid-template-columns: repeat(2, 1fr); }

  /* Article: 2 per row */
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tournament: 2 per row */
  .tournament-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2 columns */
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* Popular search: stacked */
  .popular-search-body { grid-template-columns: 1fr; }
  .popular-search-col + .popular-search-col { border-left: none; border-top: 1px solid var(--border-light); }

  /* Weapon table: horizontal scroll */

  /* Mobile bottom nav visible */
  .mobile-bottom-nav { display: block; }
  .back-to-top { bottom: 70px; }

  /* Page padding for bottom nav */
  body { padding-bottom: 60px; }

  /* Subscribe: stack */
  .subscribe-form { flex-direction: column; }

  /* Detail pages */
  .detail-hero { grid-template-columns: 1fr !important; }
  .weapon-detail-bottom { grid-template-columns: 1fr !important; }
  .event-layout { grid-template-columns: 1fr !important; }
  .lookup-page-grid { grid-template-columns: 1fr !important; }
  .esports-hero { padding: 24px 16px !important; }
  .esports-hero-title { font-size: 1.4rem !important; }

  /* Standings: compact */
  .standings-card { gap: 10px; }
  .standings-stats .stat-item:nth-child(2),
  .standings-stats .stat-item:nth-child(3) { display: none; }
  .standings-stats { gap: 6px; }

  /* Matches grid: 1 col */
  .matches-grid { grid-template-columns: 1fr; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: 1fr; }

  /* Container padding */
  .container { padding: 0 12px; }

  /* VUP grid */
  #vup-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .vup-card-img { height: 90px; }
  .vup-card-img img { width: 72px; height: 72px; }
}

/* ─── Extra small: <= 480px ─── */
@media (max-width: 480px) {

  /* Hero */
  .carousel { height: 200px !important; min-height: 200px !important; }
  .hero-carousel { min-height: 200px !important; }
  .carousel-slide-content h2 { font-size: .95rem; }
  .carousel-slide-content p { display: none; }
  .carousel-slide-tag { font-size: .65rem; padding: 3px 8px; }
  .carousel-btn { font-size: .75rem; padding: 5px 12px; }
  .carousel-slide-content { padding: 12px 14px; }

  /* Lookup card compact */
  .lookup-card { padding: 12px; }
  .lookup-input { height: 38px; margin-bottom: 8px; font-size: 13px; }
  .lookup-btn { height: 38px; font-size: 13px; }
  .lookup-empty { padding: 10px; font-size: .78rem; }
  #lookup-result { min-height: 40px; }

  /* Section spacing compact */
  .section { margin-bottom: 20px; padding: 12px 0; }
  .section-header { margin-bottom: 10px; }
  .section-title { font-size: .95rem; gap: 6px; }
  .hero-section { margin-top: 8px; }
  .popular-search-section { padding: 8px 0 0; }

  /* Map: 1 per row */
  .map-grid { grid-template-columns: 1fr; }

  /* Article: 1 per row */
  .articles-grid { grid-template-columns: 1fr; }

  /* Tournament: 1 per row */
  .tournament-grid { grid-template-columns: 1fr; }

  /* Footer: 1 column */
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Season: scroll horizontal */
  .season-archive-body { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }

  /* VUP grid: 2 cols already set above */

  /* Container */
  .container { padding: 0 10px; }
}

/* ─── Tablet: 769px - 1024px ─── */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Slightly narrower container adjustments */
  .map-grid { gap: 10px; }
  .articles-grid { gap: 12px; }
  .site-footer .footer-grid { gap: 20px; }
}

/* ═══════════════════════════════════════════
   WEAPON COMPARE WIDGET
═══════════════════════════════════════════ */
.compare-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.compare-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}
.compare-header h3 {
  font-size: .95rem;
  margin: 0 0 4px;
  color: var(--blue-dark);
}
.compare-slots {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
}
.compare-slot { display: flex; flex-direction: column; gap: 6px; }
.compare-slot select {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.compare-slot select:focus { border-color: var(--blue); }
.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 900;
  color: var(--text-muted);
  padding-bottom: 10px;
}
.compare-result { padding: 0; }

/* Compare bars */
.compare-bars { padding: 16px 18px; }
.compare-stat-row { margin-bottom: 14px; }
.compare-stat-row:last-child { margin-bottom: 0; }
.compare-stat-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.compare-bar-group { display: flex; flex-direction: column; gap: 4px; }
.compare-bar-row { display: flex; align-items: center; gap: 8px; }
.compare-bar-label { font-size: .75rem; font-weight: 700; width: 80px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-bar-track { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.compare-bar-fill { height: 100%; border-radius: 999px; transition: width .5s ease; }
.compare-bar-fill.left { background: var(--blue); }
.compare-bar-fill.right { background: #f59e0b; }
.compare-bar-value { font-size: .78rem; font-weight: 800; width: 50px; text-align: right; flex-shrink: 0; color: var(--text); }
.compare-bar-value.best { color: var(--green); }

/* ═══════════════════════════════════════════
   WEAPON QUIZ
═══════════════════════════════════════════ */
.weapon-quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.quiz-header {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border-bottom: 1px solid var(--border-light);
}
.quiz-header h2 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: var(--blue-dark);
}
.quiz-step-bar {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.quiz-step-indicator {
  height: 4px;
  flex: 1;
  background: var(--border);
  border-radius: 999px;
  transition: background .3s;
}
.quiz-step-indicator.is-active { background: var(--blue); }
.quiz-step-indicator.is-done { background: var(--teal); }
.quiz-body { padding: 24px; }
.quiz-question {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.4;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: .9rem;
  transition: all .15s;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--blue);
  background: rgba(22,93,255,.04);
}
.quiz-option.is-selected {
  border-color: var(--blue);
  background: rgba(22,93,255,.08);
}
.quiz-option-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.quiz-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.quiz-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  border: none;
}
.quiz-btn-next {
  background: var(--blue);
  color: #fff;
}
.quiz-btn-next:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.quiz-btn-next:hover:not(:disabled) { background: var(--blue-dark); }
.quiz-btn-prev {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.quiz-btn-prev:hover { border-color: var(--text-muted); color: var(--text); }
.quiz-result { padding: 8px 0; }
.quiz-result-title { font-size: .95rem; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.quiz-result-weapons { display: flex; flex-direction: column; gap: 8px; }
.quiz-result-weapon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: all .15s;
}
.quiz-result-weapon:hover {
  border-color: var(--blue);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.wrank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 900;
  flex-shrink: 0;
}
.wrank.gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.wrank.silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.wrank:not(.gold):not(.silver) { background: var(--bg-alt); color: var(--text-muted); }
.winfo { flex: 1; min-width: 0; }
.wname { font-weight: 800; font-size: .9rem; color: var(--text); margin-bottom: 2px; }
.wreason { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ═══════════════════════════════════════════
   STAT BAR (weapon detail page)
═══════════════════════════════════════════ */
.stat-bar-wrap { margin-bottom: 10px; }
.stat-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.stat-bar-track {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════
   QUICK STATS GRID (weapon detail)
═══════════════════════════════════════════ */
.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .detail-hero { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   CONTENT PAGES (article detail, event detail)
═══════════════════════════════════════════ */
.event-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .event-layout { grid-template-columns: 1fr; }
}

.weapon-detail-bottom {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .weapon-detail-bottom { grid-template-columns: 1fr; }
}

/* Countdown box */
.cd-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 20px;
  background: linear-gradient(135deg,#e53935 0%,#f57f17 100%);
  border-radius: 14px;
  margin-bottom: 20px;
  color: #fff;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(229,57,53,.28);
}
@media (max-width: 768px) {
  .cd-box { gap: 12px; padding: 16px; }
}

/* Winrate history chart */
.winrate-history-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 4px 0;
}

/* FAQ page styles */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-item.open { border-color: var(--blue); }
.faq-answer { line-height: 1.75; }
.faq-answer p { margin-bottom: .8em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--blue); }
.faq-answer code {
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .85em;
}

/* ─── Page: lookup page ─── */
.lookup-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .lookup-page-grid { grid-template-columns: 1fr; }
}

/* ─── Page: giai-dau ─── */
.esports-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 28px;
  overflow: hidden;
  color: #fff;
}
@media (max-width: 768px) {
  .esports-hero { padding: 28px 16px; }
}

/* Scrollable sections */
.table-wrap { overflow-x: auto; }
.table-wrap table { min-width: 600px; }

/* ═══════════════════════════════════════════
   VEHICLE GRID / CARD
═══════════════════════════════════════════ */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .vehicle-grid { grid-template-columns: 1fr; }
}
.vehicle-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  box-shadow: var(--shadow-xs);
}
.vehicle-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.vehicle-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(22,93,255,.12), rgba(15,198,194,.12));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.vehicle-card .icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.vehicle-card .info { flex: 1; min-width: 0; }
.vehicle-card .name { font-weight: 800; font-size: .9rem; color: var(--text); margin-bottom: 4px; }

/* ═══════════════════════════════════════════
   ITEM GRID / CARD (page-vat-pham.php)
═══════════════════════════════════════════ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
@media (max-width: 768px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .item-grid { grid-template-columns: 1fr; }
}
.item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  box-shadow: var(--shadow-xs);
}
.item-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.item-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.item-card .icon img { width: 40px; height: 40px; object-fit: contain; }
.item-card .info { flex: 1; min-width: 0; }
.item-card .name { font-weight: 800; font-size: .9rem; color: var(--text); margin-bottom: 2px; }
.item-card .desc { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ═══════════════════════════════════════════
   ATTACHMENT GRID / CARD (page-phu-kien.php)
═══════════════════════════════════════════ */
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
/* Anchor sections with scroll offset for fixed navbar */
[id^="muzzle"], [id^="grip"], [id^="magazine"], [id^="scope"], [id^="stock"], [id^="bolt"], [id^="foregrip"], [id^="other"] {
  scroll-margin-top: 80px;
}
@media (max-width: 768px) {
  .attachment-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .attachment-grid { grid-template-columns: 1fr; }
}
.attachment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  box-shadow: var(--shadow-xs);
}
.attachment-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.attachment-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.attachment-card .icon img { width: 40px; height: 40px; object-fit: contain; }
.attachment-card .info { flex: 1; min-width: 0; }
.attachment-card .name { font-weight: 800; font-size: .9rem; color: var(--text); margin-bottom: 2px; }
.attachment-card .effect { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ═══════════════════════════════════════════
   SEARCH PAGE (search.php) — featured grid
═══════════════════════════════════════════ */
.search-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
@media (max-width: 768px) {
  .search-featured-grid { grid-template-columns: 1fr; }
}

/* ─── Sensitivity partial ─── */
.phone-sensitivity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .phone-sensitivity-grid { grid-template-columns: 1fr; }
}
.phone-sens-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbff;
}
.phone-sens-name {
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--blue);
}
.phone-sens-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.phone-sens-tips {
  font-size: .78rem;
  color: #92400e;
  margin: 0 0 8px;
  font-style: italic;
}
.phone-sens-base {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.6;
}
.sensitivity-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .sensitivity-tips-grid { grid-template-columns: 1fr 1fr; }
}
.sensitivity-tip-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.tip-icon { font-size: 1.2rem; margin-bottom: 6px; }
.tip-title { font-size: .9rem; margin: 0 0 6px; color: var(--text); }
.tip-desc { margin: 0; font-size: .85rem; color: var(--text-muted); }

/* ─── Sensitivity presets ─── */
.sensitivity-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
@media (max-width: 768px) {
  .sensitivity-preset-grid { grid-template-columns: 1fr; }
}
.sensitivity-preset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .15s;
}
.sensitivity-preset-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.sensitivity-preset-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.sensitivity-preset-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.sensitivity-preset-info { flex: 1; min-width: 0; }
.presetName { font-weight: 800; font-size: .9rem; color: var(--text); }
.preset-type { font-size: .72rem; color: var(--text-muted); }
.sensitivity-preset-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
}
.sensitivity-preset-badge.pro { background: #fef3c7; color: #b45309; }
.sensitivity-preset-badge.yt { background: #fee2e2; color: #dc2626; }
.sensitivity-preset-badge.newbie { background: #dcfce7; color: #15803d; }
.sensitivity-preset-body { padding: 12px 14px; }
.sensitivity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.sensitivity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .78rem;
}
.s-label { color: var(--text-muted); }
.s-val { font-weight: 800; color: var(--text); }
.sensitivity-preset-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}
.sensitivity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}
@media (max-width: 768px) {
  .sensitivity-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Sensitivity partial components ─── */
.sensitivity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.type-filter-btn {
  font-size: .78rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.type-filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.type-filter-btn.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.gyro-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gyro-info strong { color: var(--blue); }
.sensitivity-section-title {
  margin: 0;
  font-size: 1rem;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  flex: 1;
  justify-content: center;
}
.copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(22,93,255,.06);
}
.copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
  background: rgba(22,197,94,.06);
}

/* ═══════════════════════════════════════════
   ESPORTS / GIAI DAU PAGE (page-giai-dau.php)
═══════════════════════════════════════════ */
.esports-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 56px 48px;
  margin-bottom: 28px;
  overflow: hidden;
  color: #fff;
}
@media (max-width: 768px) {
  .esports-hero { padding: 32px 20px; }
  .esports-hero-title { font-size: 1.6rem; }
  .esports-hero-desc { font-size: .82rem; flex-direction: column; gap: 8px; }
}
@media (max-width: 480px) {
  .esports-hero { padding: 24px 16px; border-radius: 12px; }
  .esports-hero-title { font-size: 1.3rem; }
}
.esports-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.85) 0%, rgba(30,58,138,.6) 50%, rgba(22,93,255,.4) 100%);
}
.esports-hero-content { position: relative; z-index: 1; max-width: 700px; }
.esports-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(22,93,255,.5);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 16px;
  color: #fff;
}
.live-dot-pulse-sm {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.esports-hero-title {
  margin: 0 0 16px;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
}
.esports-hero-desc {
  margin: 0 0 24px;
  font-size: .92rem;
  opacity: .9;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-prize, .hero-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.esports-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22,93,255,.4);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(22,93,255,.5); }
.btn-secondary {
  padding: 12px 28px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* Section layout */
.section { margin-bottom: 36px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.section-nav { display: flex; gap: 8px; }
.section-link {
  font-size: .82rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* Event tabs */
.event-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-wrap: wrap;
}
.event-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}
.event-tab:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.event-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(22,93,255,.3); }
.tab-event-name { overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.tab-status-badge {
  font-size: .6rem;
  font-weight: 700;
  background: rgba(239,68,68,.15);
  color: #ef4444;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.event-tab.active .tab-status-badge { background: rgba(255,255,255,.2); color: #fff; }

/* Match cards */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
@media (max-width: 768px) { .matches-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .event-tabs { gap: 8px; } .event-tab { padding: 8px 14px; font-size: .78rem; } }

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
}
.match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.match-card-hero {
  height: 80px;
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #0FC6C2 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 14px;
}
.match-card-event-badge { display: flex; align-items: center; gap: 8px; }
.match-event-name { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.9); }
.live-indicator {
  font-size: .62rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239,68,68,.2);
  padding: 2px 6px;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}
.match-card-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}
.match-card-body { padding: 12px 14px; }
.match-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.match-map-badge, .match-day-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.match-day-badge {
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 6px;
}
.match-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.match-row:last-child { border-bottom: none; }
.mr-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 900;
  flex-shrink: 0;
}
.mr-rank.rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.mr-rank.rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.mr-rank.rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.mr-rank:not(.rank-gold):not(.rank-silver):not(.rank-bronze) { background: var(--bg-alt); color: var(--text-muted); }
.mr-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.mr-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.mr-logo-placeholder {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mr-name {
  font-weight: 700;
  font-size: .82rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wwcd-badge {
  padding: 1px 6px;
  border-radius: 10px;
  background: linear-gradient(135deg,#f59e0b,#d97706);
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  flex-shrink: 0;
}
.mr-kills {
  font-size: .82rem;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

/* Standings */
.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (max-width: 768px) { .standings-grid { grid-template-columns: 1fr; } }
.standings-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all .2s;
  flex-wrap: nowrap;
}
.standings-card:hover { border-color: var(--blue); transform: translateX(4px); }
.standings-card.top-rank { background: linear-gradient(135deg, rgba(22,93,255,.03), rgba(15,198,194,.03)); border-color: rgba(22,93,255,.2); }
.standings-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.standings-rank.rank-gold { background: linear-gradient(135deg,#fef3c7,#fde68a); }
.standings-rank.rank-silver { background: linear-gradient(135deg,#f3f4f6,#e5e7eb); }
.standings-rank.rank-bronze { background: linear-gradient(135deg,#fef3c7,#fde68a); }
.rank-number { font-size: 1rem; font-weight: 900; color: var(--text); flex-shrink: 0; }
.standings-team { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.standings-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.standings-logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}
.standings-team-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.standings-team-name {
  font-weight: 800;
  font-size: .88rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
.standings-region {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.standings-stats { display: flex; gap: 12px; flex-shrink: 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-value { font-size: .88rem; font-weight: 800; color: var(--blue); }
.stat-label { font-size: .58rem; color: var(--text-muted); text-transform: uppercase; }
.standings-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(22,93,255,.08);
  transition: all .2s;
  white-space: nowrap;
}
.standings-action:hover { background: rgba(22,93,255,.15); }
@media (max-width: 768px) {
  .standings-card { gap: 10px; }
  .standings-stats .stat-item:nth-child(2),
  .standings-stats .stat-item:nth-child(3) { display: none; }
  .standings-stats { gap: 6px; }
}
@media (max-width: 580px) { .standings-stats { display: none; } }
@media (max-width: 480px) {
  .standings-card { padding: 12px; gap: 8px; }
  .standings-rank { width: 32px; height: 32px; border-radius: 8px; }
  .rank-number { font-size: .85rem; }
  .standings-logo, .standings-logo-placeholder { width: 30px; height: 30px; }
  .standings-team-name { font-size: .8rem; }
}

/* Upcoming previews */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
@media (max-width: 768px) { .upcoming-grid { grid-template-columns: 1fr; } }
.upcoming-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .25s;
}
.upcoming-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.upcoming-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}
.upcoming-card-content { position: relative; z-index: 1; padding: 20px; }
.upcoming-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.upcoming-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ef4444;
  color: #fff;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 800;
}
.live-dot-sm {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.upcoming-event { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.upcoming-match-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.upcoming-winner { display: flex; align-items: center; gap: 10px; }
.upcoming-team-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,.1);
}
.upcoming-team-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg,#f59e0b,#d97706);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
}
.upcoming-team-info { display: flex; flex-direction: column; }
.upcoming-winner-label { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; }
.upcoming-winner-name { font-size: .9rem; font-weight: 800; color: var(--text); }
.upcoming-vs { text-align: center; }
.vs-text { display: block; font-size: .65rem; font-weight: 800; color: var(--text-muted); }
.vs-kills { display: block; font-size: 1.1rem; font-weight: 900; color: var(--blue); }
.upcoming-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.upcoming-date, .upcoming-region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  color: var(--text-muted);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .25s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.news-card-img {
  height: 160px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #1e3a8a;
}
.news-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 700;
}
.news-card-body { padding: 14px; }
.news-card-title {
  font-size: .92rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta { display: flex; align-items: center; gap: 8px; }
.news-card-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  color: var(--text-muted);
}

/* Quick links */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
@media (max-width: 768px) { .quick-links-grid { grid-template-columns: 1fr; } }
.quick-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.quick-link-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-link-info { flex: 1; display: flex; flex-direction: column; }
.quick-link-title { font-size: .9rem; font-weight: 800; color: var(--text); }
.quick-link-desc { font-size: .72rem; color: var(--text-muted); }
@media (max-width: 480px) { .quick-link-card { padding: 12px; } }

/* ═══════════════════════════════════════════
   PLAYER DETAIL PAGE (page-player-detail.php)
═══════════════════════════════════════════ */
.breadcrumb { margin-bottom: 20px; font-size: .85rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-muted); margin: 0 6px; }
.breadcrumb span:last-child { color: var(--text); }

.player-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .player-profile-header { flex-direction: column; align-items: center; text-align: center; }
  .player-event-badge { align-items: center; }
}
.player-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}
.player-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border);
}
.player-avatar-large .avatar-initials {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--border);
}
.player-level-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 900;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 2px solid var(--bg-card);
}
.player-level-badge.level-gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.player-level-badge.level-silver { background: linear-gradient(135deg, #C0C0C0, #888); color: #fff; }

.player-main-info { flex: 1; min-width: 200px; }
.player-name-large {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--text);
}
.player-real-name {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.player-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.player-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}
.tag-team { background: rgba(0,100,255,.1); color: var(--blue); }
.tag-team-logo { width: 18px; height: 18px; object-fit: contain; }
.tag-role { text-transform: uppercase; font-size: .72rem; }
.tag-country { color: var(--text-muted); }
.flag-icon { font-size: .9rem; }
.player-event-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 12px;
}
.event-badge-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.event-badge-name { font-size: .9rem; font-weight: 700; color: var(--text); }

/* Player stats grid */
.player-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 768px) { .player-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat-card-primary {
  background: linear-gradient(135deg, rgba(0,100,255,.1), rgba(100,50,200,.1));
  border-color: rgba(0,100,255,.2);
}
.stat-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stat-card-value { font-size: 1.5rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-card-label { font-size: .72rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; font-weight: 600; }
.stat-card-tier { font-size: .75rem; font-weight: 700; margin-top: 6px; }

/* Recent matches grid */
.recent-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  transition: all .2s;
}
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.match-card.match-wwcd { border-color: #FFD700; background: linear-gradient(135deg, rgba(255,215,0,.1), transparent); }
.match-card.match-top10 { border-color: rgba(0,100,255,.3); }
.match-card-header { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); margin-bottom: 8px; }
.match-card-placement { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.placement-num { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.placement-gold { color: #FFD700; }
.placement-silver { color: #C0C0C0; }
.placement-bronze { color: #CD7F32; }
.wwcd-badge { font-size: .65rem; font-weight: 800; background: #FFD700; color: #000; padding: 2px 6px; border-radius: 4px; }
.match-card-stats { display: flex; justify-content: space-between; margin-bottom: 8px; }
.match-stat { text-align: center; flex: 1; }
.match-stat-icon { font-size: .75rem; display: block; margin-bottom: 2px; }
.match-stat-value { font-size: .9rem; font-weight: 800; display: block; }
.match-stat-label { font-size: .6rem; color: var(--text-muted); text-transform: uppercase; }
.kills-val { color: var(--red); }
.damage-val { color: var(--orange); }
.points-val { color: var(--blue); }
.match-card-map { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-muted); padding-top: 8px; border-top: 1px solid var(--border); }

/* Comparison */
.comparison-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 768px) { .comparison-stats { grid-template-columns: repeat(2, 1fr); } }
.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.comparison-card-highlight { background: linear-gradient(135deg, rgba(0,100,255,.05), rgba(100,50,200,.05)); }
.comparison-title { font-size: 1rem; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.comparison-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.comparison-stat { text-align: center; }
.comparison-stat-label { display: block; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.comparison-stat-value { font-size: 1.2rem; font-weight: 900; color: var(--text); }

/* Back button */
.back-to-list { margin-top: 32px; text-align: center; }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all .2s;
}
.btn-back:hover { background: var(--bg-hover); border-color: var(--blue); color: var(--blue); }

/* Player not found */
.player-not-found { text-align: center; padding: 64px 20px; }
.player-not-found h2 { margin: 16px 0 8px; }
.player-not-found p { color: var(--text-muted); margin-bottom: 24px; }

/* Share buttons */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
}
.share-fb { background: #1877f2; color: #fff; }
.share-fb:hover { background: #166fe5; }
.share-zalo { background: #0068ff; color: #fff; }
.share-zalo:hover { background: #0052cc; }

/* ═══════════════════════════════════════════
   PAGE: lookup / tra-cuu-tran-dau
═══════════════════════════════════════════ */
.lookup-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .lookup-page-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PAGE: giai-dau-detail
═══════════════════════════════════════════ */
.event-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .event-layout { grid-template-columns: 1fr; }
}

/* Event Detail Hero */
.event-detail-hero {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 40%, #165DFF 70%, #0FC6C2 100%);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 24px;
  overflow: hidden;
  color: #fff;
}
.event-detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .5;
}
.event-detail-hero-content { position: relative; z-index: 1; max-width: 800px; }
.event-detail-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.region-badge {
  padding: 4px 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}
.event-detail-title { margin: 0 0 16px; }
.event-detail-title-main {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  opacity: .8;
  margin-bottom: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.event-detail-title-name {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}
.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  opacity: .9;
}
.event-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Event Detail Tabs */
.event-detail-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.event-detail-tabs .event-tab {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
}
.event-detail-tabs .event-tab:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.event-detail-tabs .event-tab.active {
  background: var(--blue);
  color: #fff;
}

/* Event Info Grid */
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) { .event-info-grid { grid-template-columns: 1fr; } }
.event-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.event-info-card-full { grid-column: 1 / -1; }
.event-info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), #0FC6C2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.event-info-content { flex: 1; }
.event-info-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.event-info-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Match cards in detail page */
.event-detail-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) { .event-detail-matches-grid { grid-template-columns: 1fr; } }
.event-detail-matches-grid .match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.event-detail-matches-grid .match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.event-detail-matches-grid .match-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-muted);
}
.event-detail-matches-grid .match-sep { opacity: .4; }
.event-detail-matches-grid .match-day { font-weight: 700; color: var(--text); }
.event-detail-matches-grid .match-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
}
.event-detail-matches-grid .match-standings { padding: 8px 0; }
.event-detail-matches-grid .match-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
}
.event-detail-matches-grid .match-row:hover { background: var(--bg-alt); }

/* Standings Table */
.standings-table-wrap { overflow-x: auto; border-radius: 12px; }
.esports-standings-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-width: 500px;
}
.esports-table-header, .esports-table-row {
  display: grid;
  grid-template-columns: 48px 1fr 60px 70px 80px;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
}
.esports-table-header {
  background: var(--bg-alt);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.esports-table-row {
  border-top: 1px solid var(--border);
}
.esports-table-row:hover { background: var(--bg-alt); }
.esports-table-row.top-three { background: rgba(22,93,255,.03); }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 900;
}
.rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.rank-num { font-size: .88rem; font-weight: 700; color: var(--text-muted); }
.col-rank { text-align: center; }
.col-team { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .88rem; }
.col-games, .col-kills { text-align: center; font-size: .85rem; color: var(--text-muted); }
.col-points { text-align: right; font-size: .9rem; font-weight: 700; }
.points-bold { color: var(--blue); }
.team-logo-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.team-name-sm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Related Events */
.related-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}
.related-event-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.related-event-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 800;
  background: var(--bg-alt);
  color: var(--text-muted);
  margin-bottom: 8px;
}
.related-event-badge.live {
  background: #ef4444;
  color: #fff;
  animation: pulse 1.5s infinite;
}
.related-event-name {
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
}
.related-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
}
.related-event-meta span {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 800;
}
.badge-live { background: #ef4444; color: #fff; animation: pulse 1.5s infinite; }
.badge-upcoming { background: var(--blue); color: #fff; }
.badge-ended { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.badge-default { background: var(--bg-alt); color: var(--text-muted); }

/* Esports Empty State */
.esports-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.esports-empty h3 { margin: 16px 0 8px; color: var(--text); }
.esports-empty p { color: var(--text-muted); font-size: .88rem; }

/* Section count pill */
.section-count {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .event-detail-hero { padding: 28px 20px; }
  .event-detail-title-name { font-size: 1.4rem; }
  .event-detail-meta { gap: 12px; }
  .esports-standings-table { min-width: 400px; }
}
@media (max-width: 480px) {
  .esports-table-header, .esports-table-row {
    grid-template-columns: 40px 1fr 50px 60px 70px;
    padding: 8px 12px;
  }
}

/* ═══════════════════════════════════════════
   WEAPON ARCHIVE (archive-pubg_weapon.php) / VUP card system
═══════════════════════════════════════════ */
#vup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  transition: opacity .2s ease;
}
@media (max-width: 768px) {
  #vup-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  #vup-grid { grid-template-columns: repeat(2, 1fr); }
}

.vup-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.vup-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue);
}
.vup-card-img {
  height: 110px;
  background: linear-gradient(135deg, #0a1628, #1a2a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
@media (max-width: 768px) { .vup-card-img { height: 90px; } }
.vup-card-img img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transition: transform .3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
@media (max-width: 768px) { .vup-card-img img { width: 72px; height: 72px; } }
.vup-card:hover .vup-card-img img { transform: scale(1.06); }
.vup-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vup-card-type { display: flex; align-items: center; }
.vup-card-name {
  font-weight: 800;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
@media (max-width: 768px) { .vup-card-name { font-size: .85rem; } }
.vup-card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.vup-stat-row { display: flex; align-items: center; gap: 5px; }
.vup-stat-lbl {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 16px;
  flex-shrink: 0;
}
.vup-bar-track {
  flex: 1;
  height: 5px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.vup-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}
.vup-bar-dmg { background: linear-gradient(90deg,#dc2626,#ef4444); }
.vup-bar-wr  { background: linear-gradient(90deg,#16a34a,#22c55e); }
.vup-stat-val {
  font-size: .72rem;
  font-weight: 700;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* VUP filter tabs */
.vup-tab {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  white-space: nowrap;
}
.vup-tab:hover { border-color: var(--blue); color: var(--blue); }
.vup-tab.vup-tab-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* VUP search */
#vup-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,93,255,.08); }

/* Dark mode overrides for weapon cards */
[data-theme="dark"] .vup-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .vup-card-img {
  background: linear-gradient(135deg, #0a1628, #1e293b);
}

/* ═══════════════════════════════════════════
   BREADCRUMB (partials/breadcrumb.php)
═══════════════════════════════════════════ */
.pubg-breadcrumb {
  padding: 12px 0;
  margin-bottom: 16px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.breadcrumb-item { display: flex; align-items: center; gap: 6px; }
.breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  transition: color .15s;
}
.breadcrumb-link:hover { color: var(--blue); }
.breadcrumb-icon { display: flex; align-items: center; color: var(--text-muted); }
.breadcrumb-icon svg { width: 14px; height: 14px; }
.breadcrumb-current {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-sep { display: flex; align-items: center; color: var(--text-muted); opacity: .4; }
.breadcrumb-sep svg { width: 12px; height: 12px; }
@media (max-width: 480px) {
  .pubg-breadcrumb { padding: 8px 0; }
  .breadcrumb-link, .breadcrumb-current { font-size: .75rem; }
  .breadcrumb-current { max-width: 120px; }
}

/* ═══════════════════════════════════════════
   SOCIAL SHARE BUTTONS (partials/social-share-buttons.php)
═══════════════════════════════════════════ */
.social-share-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.social-share-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.social-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.social-btn-fb { background: #1877F2; color: #fff; }
.social-btn-fb:hover { background: #166FE5; }
.social-btn-zalo { background: #0068FF; color: #fff; }
.social-btn-zalo:hover { background: #0052CC; }
.social-btn-copy { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.social-btn-copy:hover { background: var(--bg-hover); border-color: var(--blue); }
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  z-index: 9999;
  animation: toastIn .3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 480px) {
  .social-share-wrapper { flex-direction: column; align-items: flex-start; }
  .social-share-buttons { width: 100%; }
  .social-btn { flex: 1; justify-content: center; }
}

/* FAQ answer list indent */
.faq-answer li { margin-left: 16px; }

/* ═══════════════════════════════════════════
   VN TOURNAMENT PAGES (page-pmpl-vietnam.php)
═══════════════════════════════════════════ */
.vn-hero { font-family: 'Inter', -apple-system, sans-serif; }
.vn-section { margin-bottom: 32px; }
.vn-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.vn-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }
.vn-section-link { font-size: .82rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.vn-section-link:hover { text-decoration: underline; }
.vn-event-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; }
.vn-event-info-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.vn-event-badge { flex-shrink: 0; }
.vn-event-status { padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.vn-status-ongoing { background: rgba(34,197,94,.12); color: #22c55e; }
.vn-status-upcoming { background: rgba(245,158,11,.12); color: #f59e0b; }
.vn-status-completed { background: var(--bg-alt); color: var(--text-muted); }
.vn-event-title { margin: 0; font-size: 1.15rem; font-weight: 900; color: var(--text); }
.vn-event-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.vn-meta-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); }
.vn-meta-item svg { flex-shrink: 0; }
.vn-meta-item strong { color: var(--blue); }
.vn-event-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vn-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.vn-btn-outline { background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); }
.vn-btn-outline:hover { border-color: var(--blue); color: var(--blue); background: rgba(22,93,255,.05); }
.vn-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); }
.vn-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.vn-table th { padding: 12px 14px; text-align: left; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.vn-table-row { border-bottom: 1px solid var(--border); transition: background .15s; }
.vn-table-row:last-child { border-bottom: none; }
.vn-table-row:hover { background: var(--bg-alt); }
.vn-table-row.vn-top-row { background: rgba(22,93,255,.03); }
.td-rank { text-align: center; padding: 10px 8px; }
.td-team { padding: 10px 14px; }
.td-num { text-align: center; padding: 10px 8px; font-size: .88rem; color: var(--text-muted); }
.td-points { text-align: right; padding: 10px 14px; font-size: .95rem; font-weight: 800; color: var(--blue); }
.td-wins { color: #22c55e !important; font-weight: 700; }
.td-kd { color: var(--purple); font-weight: 700; }
.td-kills { color: #ef4444 !important; font-weight: 700; }
.vn-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 900; }
.vn-rank-badge.vn-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.vn-rank-badge.vn-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.vn-rank-badge.vn-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.vn-rank-num { font-size: .88rem; font-weight: 700; color: var(--text-muted); }
.vn-team-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.vn-team-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.vn-team-logo-placeholder { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.vn-team-info { display: flex; flex-direction: column; }
.vn-team-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.vn-team-short { font-size: .65rem; color: var(--text-muted); }
.vn-empty-cell { text-align: center; padding: 24px; color: var(--text-muted); }
.vn-teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.vn-team-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: inherit; transition: all .2s; }
.vn-team-card:hover { border-color: var(--blue); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.vn-team-card-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.vn-team-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.vn-team-card-placeholder { width: 100%; height: 100%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; }
.vn-team-card-body { flex: 1; min-width: 0; }
.vn-team-card-name { font-size: .88rem; font-weight: 800; color: var(--text); margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-team-card-short { font-size: .65rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.vn-team-card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.vn-stat { font-size: .65rem; color: var(--text-muted); }
.vn-stat strong { color: var(--blue); font-weight: 700; }
.vn-team-card-arrow { color: var(--text-muted); flex-shrink: 0; }
.vn-schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.vn-schedule-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
a.vn-schedule-card-link { text-decoration: none; color: inherit; transition: all .2s; }
a.vn-schedule-card-link:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(22,93,255,.15); }
.vn-schedule-day { display: flex; flex-direction: column; }
.vn-schedule-day-num { font-size: .88rem; font-weight: 800; color: var(--text); }
.vn-schedule-date { font-size: .72rem; color: var(--text-muted); }
.vn-schedule-maps { display: flex; flex-wrap: wrap; gap: 4px; }
.vn-map-tag { padding: 2px 8px; background: var(--bg-alt); border-radius: 6px; font-size: .65rem; font-weight: 600; color: var(--text-muted); }
.vn-schedule-count { display: flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--blue); margin-top: auto; }
.vn-matches-list { display: flex; flex-direction: column; gap: 14px; }
.vn-match-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.vn-match-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.vn-match-info { display: flex; align-items: center; gap: 6px; }
.vn-match-day { font-size: .78rem; font-weight: 700; color: var(--text); }
.vn-match-sep { color: var(--text-muted); opacity: .5; }
.vn-match-map { font-size: .72rem; color: var(--text-muted); }
.vn-match-count { font-size: .72rem; color: var(--text-muted); }
.vn-match-date { font-size: .72rem; color: var(--text-muted); }
.vn-match-link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(22,93,255,.1); color: var(--blue); border-radius: 6px; font-size: .72rem; font-weight: 700; text-decoration: none; transition: all .2s; flex-shrink: 0; }
.vn-match-link-btn:hover { background: rgba(22,93,255,.2); }
.vn-match-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.vn-match-row:last-child { border-bottom: none; }
.vn-match-row:hover { background: var(--bg-alt); }
.vn-mr-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: .68rem; font-weight: 900; flex-shrink: 0; }
.vn-mr-rank.vn-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.vn-mr-rank.vn-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.vn-mr-rank.vn-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.vn-mr-rank:not(.vn-rank-gold):not(.vn-rank-silver):not(.vn-rank-bronze) { background: var(--bg-alt); color: var(--text-muted); }
.vn-mr-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.vn-mr-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.vn-mr-logo-placeholder { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; flex-shrink: 0; }
.vn-mr-name { font-weight: 700; font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-wwcd-badge { padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; font-size: .58rem; font-weight: 900; flex-shrink: 0; }
.vn-mr-kills { font-size: .82rem; font-weight: 800; color: #ef4444; flex-shrink: 0; min-width: 36px; text-align: right; }
.vn-mr-pts { font-size: .78rem; font-weight: 800; color: var(--blue); flex-shrink: 0; min-width: 52px; text-align: right; }
.vn-players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vn-player-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: inherit; transition: all .2s; }
.vn-player-card:hover { border-color: var(--blue); transform: translateX(4px); box-shadow: 0 4px 12px rgba(22,93,255,.1); }
.vn-player-rank { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; color: var(--text-muted); flex-shrink: 0; }
.vn-player-rank.vn-player-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.vn-player-rank.vn-player-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.vn-player-rank.vn-player-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.vn-player-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.vn-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vn-player-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 900; color: #fff; }
.vn-player-info { flex: 1; min-width: 0; }
.vn-player-name { display: block; font-weight: 800; font-size: .88rem; color: var(--text); }
.vn-player-realname { display: block; font-size: .7rem; color: var(--text-muted); }
.vn-player-team { display: block; font-size: .72rem; color: var(--blue); font-weight: 600; }
.vn-player-role { display: inline-block; padding: 1px 6px; background: var(--bg-alt); border-radius: 4px; font-size: .6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.vn-player-stats { display: flex; gap: 12px; flex-shrink: 0; }
.vn-ps-kills, .vn-ps-avgkills, .vn-ps-wins { display: flex; flex-direction: column; align-items: center; }
.vn-ps-val { font-size: .88rem; font-weight: 900; color: var(--text); }
.vn-ps-label { font-size: .58rem; color: var(--text-muted); text-transform: uppercase; }
.vn-ps-kills .vn-ps-val { color: #ef4444; }
.vn-ps-wins .vn-ps-val { color: #22c55e; }
.vn-empty-state { text-align: center; padding: 32px; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 768px) {
  .vn-teams-grid { grid-template-columns: 1fr; }
  .vn-schedule-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .vn-matches-list { gap: 12px; }
  .vn-players-grid { grid-template-columns: 1fr; }
  .vn-player-stats { gap: 8px; }
  .vn-event-meta { gap: 12px; }
}
@media (max-width: 480px) {
  .vn-table-wrap { border-radius: 8px; }
  .vn-team-card { padding: 10px 12px; }
  .vn-match-row { padding: 6px 12px; }
  .vn-mr-pts { display: none; }
  .vn-player-card { padding: 10px 12px; gap: 10px; }
}

/* ═══════════════════════════════════════════
   ID TOURNAMENT PAGES (page-pmpl-indonesia.php)
═══════════════════════════════════════════ */
.id-hero { font-family: 'Inter', -apple-system, sans-serif; }
.id-section { margin-bottom: 32px; }
.id-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.id-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }
.id-section-link { font-size: .82rem; color: #ef4444; font-weight: 600; text-decoration: none; }
.id-section-link:hover { text-decoration: underline; }
.id-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); }
.id-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.id-table th { padding: 12px 16px; text-align: left; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.id-table-row { border-bottom: 1px solid var(--border); transition: background .15s; }
.id-table-row:last-child { border-bottom: none; }
.id-table-row:hover { background: var(--bg-alt); }
.id-table-row.id-top-row { background: rgba(239,68,68,.03); }
.id-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 900; }
.id-rank-badge.id-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.id-rank-badge.id-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.id-rank-badge.id-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.id-rank-num { font-size: .88rem; font-weight: 700; color: var(--text-muted); }
.id-team-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.id-team-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.id-team-logo-placeholder { width: 32px; height: 32px; border-radius: 8px; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.id-team-info { display: flex; flex-direction: column; }
.id-team-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.id-team-short { font-size: .65rem; color: var(--text-muted); }
.id-empty-cell { text-align: center; padding: 24px; color: var(--text-muted); }
.id-teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.id-team-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: inherit; transition: all .2s; }
.id-team-card:hover { border-color: #ef4444; transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.id-team-card-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.id-team-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.id-team-card-placeholder { width: 100%; height: 100%; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; }
.id-team-card-body { flex: 1; min-width: 0; }
.id-team-card-name { font-size: .88rem; font-weight: 800; color: var(--text); margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-team-card-short { font-size: .65rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.id-team-card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.id-stat { font-size: .65rem; color: var(--text-muted); }
.id-stat strong { color: #ef4444; font-weight: 700; }
.id-team-card-arrow { color: var(--text-muted); flex-shrink: 0; }
.id-schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.id-schedule-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.id-schedule-day { display: flex; flex-direction: column; }
.id-schedule-day-num { font-size: .88rem; font-weight: 800; color: var(--text); }
.id-schedule-date { font-size: .72rem; color: var(--text-muted); }
.id-schedule-maps { display: flex; flex-wrap: wrap; gap: 4px; }
.id-map-tag { padding: 2px 8px; background: var(--bg-alt); border-radius: 6px; font-size: .65rem; font-weight: 600; color: var(--text-muted); }
.id-schedule-count { display: flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: #ef4444; margin-top: auto; }
.id-matches-list { display: flex; flex-direction: column; gap: 14px; }
.id-match-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.id-match-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.id-match-info { display: flex; align-items: center; gap: 6px; }
.id-match-day { font-size: .78rem; font-weight: 700; color: var(--text); }
.id-match-sep { color: var(--text-muted); opacity: .5; }
.id-match-map { font-size: .72rem; color: var(--text-muted); }
.id-match-date { font-size: .72rem; color: var(--text-muted); }
.id-match-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.id-match-row:last-child { border-bottom: none; }
.id-match-row:hover { background: var(--bg-alt); }
.id-mr-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: .68rem; font-weight: 900; flex-shrink: 0; }
.id-mr-rank.id-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.id-mr-rank.id-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.id-mr-rank.id-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.id-mr-rank:not(.id-rank-gold):not(.id-rank-silver):not(.id-rank-bronze) { background: var(--bg-alt); color: var(--text-muted); }
.id-mr-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.id-mr-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.id-mr-logo-placeholder { width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; flex-shrink: 0; }
.id-mr-name { font-weight: 700; font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-wwcd-badge { padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; font-size: .58rem; font-weight: 900; flex-shrink: 0; }
.id-mr-kills { font-size: .82rem; font-weight: 800; color: #ef4444; flex-shrink: 0; min-width: 36px; text-align: right; }
.id-empty-state { text-align: center; padding: 32px; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 768px) {
  .id-teams-grid { grid-template-columns: 1fr; }
  .id-schedule-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .id-matches-list { gap: 12px; }
}
@media (max-width: 480px) {
  .id-table-wrap { border-radius: 8px; }
  .id-team-card { padding: 10px 12px; }
  .id-match-row { padding: 6px 12px; }
}

/* ═══════════════════════════════════════════
   GLOBAL CHAMPIONSHIP PAGES (page-pmgc-global.php)
═══════════════════════════════════════════ */
.gl-hero { font-family: 'Inter', -apple-system, sans-serif; }
.gl-section { margin-bottom: 32px; }
.gl-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.gl-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }
.gl-section-link { font-size: .82rem; color: #a855f7; font-weight: 600; text-decoration: none; }
.gl-section-link:hover { text-decoration: underline; }
.gl-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); }
.gl-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.gl-table th { padding: 12px 16px; text-align: left; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.gl-table-row { border-bottom: 1px solid var(--border); transition: background .15s; }
.gl-table-row:last-child { border-bottom: none; }
.gl-table-row:hover { background: var(--bg-alt); }
.gl-table-row.gl-top-row { background: rgba(168,85,247,.05); }
.gl-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 900; }
.gl-rank-badge.gl-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.gl-rank-badge.gl-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.gl-rank-badge.gl-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.gl-rank-num { font-size: .88rem; font-weight: 700; color: var(--text-muted); }
.gl-team-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.gl-team-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.gl-team-logo-placeholder { width: 32px; height: 32px; border-radius: 8px; background: #a855f7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.gl-team-info { display: flex; flex-direction: column; }
.gl-team-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.gl-team-short { font-size: .65rem; color: var(--text-muted); }
.gl-empty-cell { text-align: center; padding: 24px; color: var(--text-muted); }
.gl-teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gl-team-card { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: inherit; transition: all .2s; }
.gl-team-card:hover { border-color: #a855f7; transform: translateX(4px); box-shadow: 0 4px 12px rgba(168,85,247,.15); }
.gl-team-card-logo { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.gl-team-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.gl-team-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#a855f7,#7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; }
.gl-team-card-body { flex: 1; min-width: 0; }
.gl-team-card-name { font-size: .88rem; font-weight: 800; color: var(--text); margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-team-card-short { font-size: .65rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.gl-team-card-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-stat { font-size: .65rem; color: var(--text-muted); }
.gl-stat strong { color: #a855f7; font-weight: 700; }
.gl-team-card-arrow { color: var(--text-muted); flex-shrink: 0; }
.gl-schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gl-schedule-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.gl-schedule-day { display: flex; flex-direction: column; }
.gl-schedule-day-num { font-size: .88rem; font-weight: 800; color: var(--text); }
.gl-schedule-date { font-size: .72rem; color: var(--text-muted); }
.gl-schedule-maps { display: flex; flex-wrap: wrap; gap: 4px; }
.gl-map-tag { padding: 2px 8px; background: var(--bg-alt); border-radius: 6px; font-size: .65rem; font-weight: 600; color: var(--text-muted); }
.gl-schedule-count { display: flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: #a855f7; margin-top: auto; }
.gl-matches-list { display: flex; flex-direction: column; gap: 14px; }
.gl-match-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.gl-match-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.gl-match-info { display: flex; align-items: center; gap: 6px; }
.gl-match-day { font-size: .78rem; font-weight: 700; color: var(--text); }
.gl-match-sep { color: var(--text-muted); opacity: .5; }
.gl-match-map { font-size: .72rem; color: var(--text-muted); }
.gl-match-date { font-size: .72rem; color: var(--text-muted); }
.gl-match-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.gl-match-row:last-child { border-bottom: none; }
.gl-match-row:hover { background: var(--bg-alt); }
.gl-mr-rank { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: .68rem; font-weight: 900; flex-shrink: 0; }
.gl-mr-rank.gl-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.gl-mr-rank.gl-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.gl-mr-rank.gl-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.gl-mr-rank:not(.gl-rank-gold):not(.gl-rank-silver):not(.gl-rank-bronze) { background: var(--bg-alt); color: var(--text-muted); }
.gl-mr-team { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.gl-mr-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.gl-mr-logo-placeholder { width: 24px; height: 24px; border-radius: 50%; background: #a855f7; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; flex-shrink: 0; }
.gl-mr-name { font-weight: 700; font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-wwcd-badge { padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; font-size: .58rem; font-weight: 900; flex-shrink: 0; }
.gl-mr-kills { font-size: .82rem; font-weight: 800; color: #a855f7; flex-shrink: 0; min-width: 36px; text-align: right; }
.gl-empty-state { text-align: center; padding: 32px; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 768px) {
  .gl-teams-grid { grid-template-columns: 1fr; }
  .gl-schedule-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gl-matches-list { gap: 12px; }
}
@media (max-width: 480px) {
  .gl-table-wrap { border-radius: 8px; }
  .gl-team-card { padding: 10px 12px; }
  .gl-match-row { padding: 6px 12px; }
}

/* ═══════════════════════════════════════════
   MATCH DETAIL PAGE (page-giai-dau-tran.php)
═══════════════════════════════════════════ */
.md-hero { font-family: 'Inter', -apple-system, sans-serif; }
.md-stats-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; }
.md-stat-item { display: flex; flex-direction: column; align-items: center; }
.md-stat-val { font-size: 1.1rem; font-weight: 900; color: var(--text); }
.md-stat-lbl { font-size: .62rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.md-stat-divider { width: 1px; height: 32px; background: var(--border); }
.md-stat-actions { margin-left: auto; }
.md-champion-card { display: flex; align-items: flex-start; gap: 16px; background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(217,119,6,.05)); border: 1px solid rgba(245,158,11,.25); border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.md-champion-icon { font-size: 2.4rem; flex-shrink: 0; }
.md-champion-content { flex: 1; min-width: 200px; }
.md-champion-label { font-size: .72rem; font-weight: 700; color: #f59e0b; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.md-champion-team { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.md-champion-team > a, .md-champion-team > div { display: flex; align-items: center; gap: 12px; }
.md-btn-primary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--blue); color: #fff; border-radius: 8px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.md-btn-primary:hover { background: #0d47a1; }
.md-rank-chip { display: inline-flex; align-items: center; padding: 8px 14px; background: rgba(22,93,255,.1); color: var(--blue); border-radius: 8px; font-size: .78rem; font-weight: 700; }
.md-match-section { margin-bottom: 16px; }
.md-match-section-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-alt); border: 1px solid var(--border); border-bottom: none; border-radius: 10px 10px 0 0; }
.md-match-section-title { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 800; color: var(--text); }
.md-match-section-map { margin-left: auto; font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.md-match-table { border: 1px solid var(--border); border-radius: 0 0 10px 10px; overflow: hidden; }
.md-match-thead { display: grid; grid-template-columns: 50px 1fr 60px 80px 70px; padding: 8px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.md-match-trow { display: grid; grid-template-columns: 50px 1fr 60px 80px 70px; padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: .82rem; transition: background .15s; }
.md-match-trow:last-child { border-bottom: none; }
.md-match-trow:hover { background: var(--bg-alt); }
.md-match-trow.md-top3 { background: rgba(22,93,255,.02); }
.md-match-trow.md-top3:hover { background: rgba(22,93,255,.05); }
.md-col-rank { display: flex; align-items: center; }
.md-col-team { display: flex; align-items: center; }
.md-col-kills, .md-col-dmg, .md-col-pts { display: flex; align-items: center; }
.md-col-kills { color: #ef4444; font-weight: 700; }
.md-col-dmg { color: #f97316; font-weight: 700; }
.md-col-pts { color: var(--blue); font-weight: 800; }
.md-pl-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: .72rem; font-weight: 900; background: var(--bg-alt); color: var(--text-muted); }
.md-pl-badge.md-pl-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.md-pl-badge.md-pl-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.md-pl-badge.md-pl-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.md-team-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.md-team-logo { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; background: var(--bg-alt); flex-shrink: 0; }
.md-logo-placeholder { width: 22px; height: 22px; border-radius: 4px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 900; flex-shrink: 0; }
.md-team-name { font-weight: 700; font-size: .82rem; color: var(--text); }
.md-day-standings { margin-bottom: 24px; }
.md-section-header { margin-bottom: 14px; }
.md-section-title { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }
.md-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); }
.md-standings-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.md-standings-table thead { background: var(--bg-alt); }
.md-standings-table th { padding: 10px 14px; text-align: left; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.md-standings-row { border-bottom: 1px solid var(--border); transition: background .15s; }
.md-standings-row:last-child { border-bottom: none; }
.md-standings-row:hover { background: var(--bg-alt); }
.md-standings-row.md-top3 { background: rgba(22,93,255,.025); }
.md-standings-row.md-top3:hover { background: rgba(22,93,255,.05); }
.md-td-rank { text-align: center; padding: 10px 8px; }
.md-td-team { padding: 10px 14px; }
.md-td-num { text-align: center; padding: 10px 8px; font-size: .88rem; color: var(--text-muted); }
.md-td-pts { text-align: right; padding: 10px 14px; font-size: .95rem; font-weight: 800; color: var(--blue); }
.md-td-pl { text-align: center; padding: 10px 8px; font-size: .82rem; color: var(--text-muted); }
.md-kills { color: #ef4444 !important; font-weight: 700; }
.md-dmg { color: #f97316 !important; font-weight: 700; }
.md-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: .78rem; font-weight: 900; }
.md-rank-badge.md-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.md-rank-badge.md-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.md-rank-badge.md-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.md-rank-num { font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.md-table-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: var(--bg-alt); flex-shrink: 0; }
.md-event-rank { display: block; font-size: .65rem; color: var(--blue); font-weight: 600; }
.md-empty-cell { text-align: center; padding: 24px; color: var(--text-muted); }
.md-share { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.md-share-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.md-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.md-share-btn:hover { transform: translateY(-1px); }
@media (max-width: 768px) {
  .md-stats-bar { gap: 12px; }
  .md-stat-divider { display: none; }
  .md-stat-actions { margin-left: 0; width: 100%; }
  .md-match-thead, .md-match-trow { grid-template-columns: 40px 1fr 50px 70px 60px; }
  .md-match-thead { font-size: .6rem; }
}
@media (max-width: 480px) {
  .md-match-thead, .md-match-trow { grid-template-columns: 40px 1fr 45px 60px; }
  .md-col-dmg, .md-th-num:last-child, .md-dmg { display: none; }
}

/* ═══════════════════════════════════════════
   CAO THU PAGE (page-giai-dau-cao-thu.php)
═══════════════════════════════════════════ */
.ct-hero { font-family: 'Inter', -apple-system, sans-serif; }
.ct-region-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ct-region-tab { padding: 8px 18px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: .85rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.ct-region-tab:hover { border-color: var(--blue); color: var(--blue); }
.ct-region-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.ct-stat-tabs { display: flex; gap: 8px; margin-bottom: 18px; align-items: center; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.ct-stat-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.ct-stat-tab:hover { border-color: var(--blue); color: var(--blue); }
.ct-stat-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.ct-player-count { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.ct-players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ct-player-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: all .2s; position: relative; overflow: hidden; }
.ct-player-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,93,255,.12); }
.ct-card-header { display: flex; align-items: center; gap: 10px; position: relative; }
.ct-rank { position: absolute; top: -4px; left: -4px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: .78rem; font-weight: 900; z-index: 2; }
.ct-rank.ct-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.ct-rank.ct-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.ct-rank.ct-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.ct-rank:not(.ct-rank-gold):not(.ct-rank-silver):not(.ct-rank-bronze) { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.ct-avatar-wrap { width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin-left: 16px; flex-shrink: 0; }
.ct-avatar { width: 100%; height: 100%; object-fit: cover; }
.ct-avatar-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--blue), #0ea5e9); color: #fff; font-size: 1.1rem; font-weight: 900; }
.ct-role { position: absolute; top: -2px; right: 0; padding: 2px 8px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 20px; font-size: .6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.ct-card-body { display: flex; flex-direction: column; gap: 2px; }
.ct-nickname { margin: 0; font-size: .95rem; font-weight: 900; color: var(--text); }
.ct-real-name { font-size: .68rem; color: var(--text-muted); }
.ct-team { font-size: .72rem; font-weight: 600; color: var(--blue); margin-top: 2px; }
.ct-card-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.ct-mini-stat { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--bg-alt); border-radius: 6px; font-size: .65rem; font-weight: 600; color: var(--text-muted); }
.ct-card-primary { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); text-align: center; }
.ct-stat-value { display: block; font-size: 1.4rem; font-weight: 900; color: var(--blue); line-height: 1; }
.ct-stat-label { display: block; font-size: .62rem; color: var(--text-muted); margin-top: 2px; }
.ct-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 768px) {
  .ct-players-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .ct-player-card { padding: 12px; }
  .ct-avatar-wrap { width: 48px; height: 48px; }
  .ct-nickname { font-size: .85rem; }
  .ct-stat-value { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .ct-players-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-stat-tabs { gap: 6px; }
  .ct-stat-tab { padding: 6px 10px; font-size: .75rem; }
}

/* ═══════════════════════════════════════════
   RANKINGS PAGE (page-giai-dau-xep-hang.php)
═══════════════════════════════════════════ */
.xr-hero { font-family: 'Inter', -apple-system, sans-serif; }
.xr-region-tabs { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.xr-region-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 10px; color: var(--text-muted); font-size: .88rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.xr-region-tab:hover { border-color: var(--blue); color: var(--blue); }
.xr-region-tab.active { font-weight: 800; }
.xr-region-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.xr-controls-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.xr-sort-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.xr-sort-label { font-size: .78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.xr-sort-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; }
.xr-sort-btn:hover { border-color: var(--blue); color: var(--blue); }
.xr-sort-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.xr-search-wrap { position: relative; display: flex; align-items: center; }
.xr-search-icon { position: absolute; left: 10px; color: var(--text-muted); pointer-events: none; }
.xr-search-input { padding: 7px 12px 7px 34px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: .85rem; width: 200px; transition: border-color .2s; }
.xr-search-input:focus { outline: none; border-color: var(--blue); }
.xr-search-input::placeholder { color: var(--text-muted); }
.xr-team-count { font-size: .78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.xr-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.xr-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.xr-table thead { background: var(--bg-alt); }
.xr-table th { padding: 11px 12px; text-align: center; font-size: .72rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.xr-th-rank { width: 44px; text-align: center; }
.xr-th-team { text-align: left; min-width: 200px; }
.xr-th-num { width: 60px; }
.xr-th-rate { width: 80px; }
.xr-th-points { width: 80px; text-align: right; }
.xr-th-sortable { cursor: pointer; user-select: none; }
.xr-th-sortable:hover { color: var(--blue); }
.xr-th-sortable.active { color: var(--blue); }
.xr-tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.xr-tr:last-child { border-bottom: none; }
.xr-tr:hover { background: var(--bg-alt); }
.xr-tr.xr-top3 { background: rgba(22,93,255,.025); }
.xr-tr.xr-top3:hover { background: rgba(22,93,255,.05); }
.xr-td-rank { text-align: center; padding: 10px 8px; }
.xr-td-team { padding: 8px 12px; }
.xr-td-num { text-align: center; padding: 10px 8px; font-size: .88rem; color: var(--text-muted); }
.xr-td-rate { text-align: center; padding: 10px 8px; }
.xr-td-points { text-align: right; padding: 10px 14px; font-size: 1rem; font-weight: 900; color: var(--blue); }
.xr-rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: .82rem; font-weight: 900; background: var(--bg-alt); color: var(--text-muted); }
.xr-rank.xr-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.xr-rank.xr-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.xr-rank.xr-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.xr-team-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.xr-logo { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: var(--bg-alt); flex-shrink: 0; }
.xr-logo-placeholder { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 900; flex-shrink: 0; }
.xr-team-info { display: flex; flex-direction: column; }
.xr-team-name { font-weight: 800; font-size: .9rem; color: var(--text); }
.xr-team-short { font-size: .65rem; color: var(--text-muted); }
.xr-kills { color: #ef4444 !important; font-weight: 700; }
.xr-damage { color: #f97316 !important; font-weight: 700; }
.xr-wins { color: #22c55e !important; font-weight: 700; }
.xr-kd-val { font-weight: 800; color: var(--purple); }
.xr-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 48px 20px; color: var(--text-muted); }
.xr-empty p { font-size: .88rem; }
.xr-tr:nth-child(even) { background: rgba(0,0,0,.015); }
.xr-tr:nth-child(even):hover { background: rgba(0,0,0,.04); }
@media (max-width: 768px) {
  .xr-controls-bar { gap: 8px; }
  .xr-search-input { width: 160px; }
  .xr-sort-btn { padding: 5px 10px; font-size: .72rem; }
}
@media (max-width: 480px) {
  .xr-sort-label { display: none; }
  .xr-search-input { width: 100%; }
  .xr-controls-bar { flex-direction: column; align-items: stretch; }
  .xr-sort-group { justify-content: flex-start; }
  .xr-team-count { text-align: center; }
}

/* ═══════════════════════════════════════════
   TEAM DETAIL PAGE (page-team-detail.php)
═══════════════════════════════════════════ */
.td-hero { font-family: 'Inter', -apple-system, sans-serif; }
.td-event-chip { padding: 4px 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; color: rgba(255,255,255,.7); font-size: .72rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.td-event-chip:hover { background: rgba(255,255,255,.15); color: #fff; }
.td-event-chip.active { background: rgba(22,93,255,.4); border-color: rgba(22,93,255,.5); color: #fff; }
.td-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.td-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; transition: all .2s; }
.td-stat-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.td-stat-icon { margin-bottom: 6px; }
.td-stat-value { font-size: 1.3rem; font-weight: 900; color: var(--text); line-height: 1.2; }
.td-stat-label { font-size: .68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.td-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.td-social { display: flex; gap: 8px; margin-left: auto; }
.td-social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); transition: all .2s; }
.td-social-btn:hover { border-color: var(--blue); color: var(--blue); }
.td-main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; margin-bottom: 24px; }
.td-section { }
.td-section-header { margin-bottom: 14px; }
.td-section-title { margin: 0; font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }
.td-section-sub { font-size: .82rem; font-weight: 400; color: var(--text-muted); }
.td-match-days { display: flex; flex-direction: column; gap: 12px; }
.td-match-day-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.td-match-day-header { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .82rem; }
.td-match-day-num { font-weight: 800; color: var(--text); }
.td-match-day-date { color: var(--text-muted); }
.td-match-day-link { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 600; font-size: .72rem; text-decoration: none; }
.td-match-day-link:hover { text-decoration: underline; }
.td-match-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: .82rem; transition: background .15s; }
.td-match-row:last-child { border-bottom: none; }
.td-match-row:hover { background: var(--bg-alt); }
.td-match-pl { width: 32px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 900; background: var(--bg-alt); color: var(--text-muted); flex-shrink: 0; }
.td-match-pl.td-pl-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.td-match-pl.td-pl-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.td-match-pl.td-pl-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.td-match-map { flex: 1; color: var(--text-muted); font-weight: 600; }
.td-match-kills, .td-match-dmg { display: flex; align-items: center; gap: 3px; color: var(--text-muted); }
.td-match-kills { color: #ef4444; font-weight: 700; }
.td-match-dmg { color: #f97316; font-weight: 700; }
.td-match-pts { font-weight: 800; color: var(--blue); min-width: 52px; text-align: right; }
.td-wwcd-chip { padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; font-size: .58rem; font-weight: 900; flex-shrink: 0; }
.td-players-list { display: flex; flex-direction: column; gap: 8px; }
.td-player-card { display: flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; text-decoration: none; color: inherit; transition: all .2s; }
.td-player-card:hover { border-color: var(--blue); transform: translateX(4px); }
.td-player-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--bg-alt); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.td-player-info { flex: 1; min-width: 0; }
.td-player-name { display: block; font-weight: 800; font-size: .88rem; color: var(--text); }
.td-player-realname { display: block; font-size: .68rem; color: var(--text-muted); }
.td-player-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.td-player-role { padding: 2px 6px; background: var(--bg-alt); border-radius: 4px; font-size: .6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.td-player-country { font-size: .78rem; color: var(--text-muted); }
.td-empty { text-align: center; padding: 32px; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
.td-share { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.td-share-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.td-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 8px; font-size: .78rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.td-share-btn:hover { transform: translateY(-1px); }
@media (max-width: 900px) {
  .td-main-grid { grid-template-columns: 1fr; }
  .td-stats-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 600px) {
  .td-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .td-actions { flex-direction: column; align-items: flex-start; }
  .td-social { margin-left: 0; }
}
@media (max-width: 400px) {
  .td-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   LOOKUP PAGE (page-tra-cuu-tran-dau.php)
═══════════════════════════════════════════ */
.lookup-page-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 768px) {
  .lookup-page-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   MATCH DETAIL / SHARED BUTTONS
═══════════════════════════════════════════ */
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .82rem; transition: all .2s; }
.btn-back:hover { border-color: var(--blue); color: var(--blue); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--blue); border: none; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 700; transition: all .2s; }
.btn-primary:hover { background: var(--blue-dark); }

/* ═══════════════════════════════════════════
   CAO THU LIST PAGE (page-cao-thu.php)
═══════════════════════════════════════════ */
.page-title-bar { margin-bottom: 20px; }
.page-title { margin: 0; font-size: 1.4rem; font-weight: 900; display: flex; align-items: center; gap: 10px; color: var(--text); }
.event-type-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.event-type-tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: .85rem; font-weight: 600; transition: all .2s; }
.event-type-tab:hover { background: var(--bg-hover); color: var(--text); }
.event-type-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.event-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.event-selector-label { font-size: .88rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.event-select { flex: 1; min-width: 200px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: .88rem; background: var(--bg-card); color: var(--text); cursor: pointer; }
.event-select:focus { outline: none; border-color: var(--blue); }
.player-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.summary-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.summary-icon { font-size: 1.6rem; }
.summary-value { font-size: 1.1rem; font-weight: 900; color: var(--text); line-height: 1; }
.summary-label { font-size: .72rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.sort-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.sort-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.sort-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.sort-btn:hover { background: var(--bg-hover); color: var(--text); }
.sort-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.sort-btn svg { transition: transform .2s; }
.sort-btn.desc svg { transform: rotate(180deg); }
.player-rankings-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.player-table-header { display: grid; grid-template-columns: 50px 1fr 120px 90px 80px 90px 80px 70px 100px 90px; padding: 12px 16px; background: var(--bg-alt); font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.player-table-header .sortable { cursor: pointer; transition: color .2s; }
.player-table-header .sortable:hover { color: var(--blue); }
.player-table-header .sortable.active { color: var(--blue); }
.player-table-row { display: grid; grid-template-columns: 50px 1fr 120px 90px 80px 90px 80px 70px 100px 90px; padding: 12px 16px; align-items: center; border-bottom: 1px solid var(--border); transition: background .15s; }
.player-table-row:last-child { border-bottom: none; }
.player-table-row:hover { background: var(--bg-hover); }
.player-table-row.top-three { background: rgba(255,200,0,.03); }
.player-table-row.top-three:hover { background: rgba(255,200,0,.06); }
.col-rank { font-size: .85rem; }
.col-player { display: flex; align-items: center; gap: 10px; }
.player-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); transition: transform .2s, border-color .2s; }
.player-avatar:hover { transform: scale(1.08); border-color: var(--blue); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.avatar-initials { font-size: .85rem; font-weight: 800; text-transform: uppercase; color: #fff; letter-spacing: -.5px; }
.player-info { display: flex; flex-direction: column; gap: 1px; }
.player-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.player-realname { font-size: .72rem; color: var(--text-muted); }
.col-team { display: flex; align-items: center; gap: 6px; font-size: .82rem; }
.team-logo-xs { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; }
.team-name-xs { color: var(--text-muted); }
.col-role { font-size: .78rem; }
.role-badge { padding: 3px 8px; border-radius: 4px; font-weight: 600; text-transform: uppercase; font-size: .65rem; }
.role-igl { background: rgba(255,100,100,.15); color: #ff6464; }
.role-fragger { background: rgba(255,150,50,.15); color: #ff9632; }
.role-sniper { background: rgba(100,150,255,.15); color: #6496ff; }
.role-support { background: rgba(100,200,100,.15); color: #64c864; }
.role-rusher { background: rgba(200,100,255,.15); color: #c864ff; }
.role-coach { background: rgba(150,150,150,.15); color: #969696; }
.col-kd, .col-damage, .col-kills { font-size: .82rem; text-align: right; }
.col-wins { font-size: .82rem; text-align: center; }
.col-winrate { display: flex; flex-direction: column; gap: 3px; font-size: .75rem; }
.col-rating { font-size: .85rem; font-weight: 700; }
.kd-val, .damage-val, .kills-val { color: var(--text); }
.damage-val { color: var(--orange); }
.kills-val { color: var(--red); }
.wins-val { color: var(--blue); font-weight: 700; }
.rating-val { color: var(--purple); }
.wins-badge { margin-left: 3px; font-size: .7rem; }
.stat-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 3px; width: 50px; margin-left: auto; }
.stat-bar-fill { height: 100%; background: var(--red); border-radius: 2px; transition: width .3s; }
.col-kd .stat-bar-fill { background: var(--blue); }
.col-damage .stat-bar-fill { background: var(--orange); }
.winrate-bar { height: 4px; background: var(--border); border-radius: 2px; width: 60px; }
.winrate-fill { height: 100%; background: linear-gradient(90deg, var(--green), #50ff50); border-radius: 2px; display: block; }
.winrate-text { font-size: .7rem; color: var(--green); font-weight: 600; }
.rating-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: .65rem; font-weight: 800; margin-left: 6px; background: var(--bg-alt); color: var(--text-muted); }
.rating-badge.rating-gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rating-badge.rating-silver { background: linear-gradient(135deg, #C0C0C0, #888); color: #fff; }
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: .8rem; }
.rank-badge.rank-gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-badge.rank-silver { background: linear-gradient(135deg, #C0C0C0, #888); color: #fff; }
.rank-badge.rank-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }
.rank-num { color: var(--text-muted); font-weight: 600; }
.player-empty { text-align: center; padding: 64px 20px; background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
.player-empty h3 { margin: 16px 0 8px; color: var(--text); }
.player-empty p { color: var(--text-muted); font-size: .88rem; }
@media (max-width: 1200px) {
  .player-table-header, .player-table-row { grid-template-columns: 50px 1fr 100px 80px 70px 80px 70px 60px 0 80px; }
  .col-winrate { display: none; }
}
@media (max-width: 768px) {
  .player-summary { grid-template-columns: repeat(2, 1fr); }
  .player-table-header, .player-table-row { grid-template-columns: 50px 1fr 80px 70px; min-width: 600px; }
  .col-team, .col-role, .col-kd, .col-damage, .col-kills, .col-wins, .col-rating { display: none; }
  .player-rankings-table { overflow-x: auto; }
}

/* ═══════════════════════════════════════════
   SEASON DETAIL (single-pubg_season.php)
═══════════════════════════════════════════ */
.season-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 768px) {
  .season-detail-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   WEAPON COMPARE PARTIAL (partials/content-weapon-compare.php)
═══════════════════════════════════════════ */
.compare-subtitle { font-size: .78rem; opacity: .85; font-weight: 600; display: block; margin-top: 4px; color: var(--text-muted); }
.compare-slot-label { font-size: .8rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 6px; }
.compare-select { width: 100%; }
.compare-body { padding: 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.compare-empty { padding: 32px; text-align: center; color: var(--text-muted); }
.compare-empty svg { opacity: .3; margin: 0 auto 10px; display: block; }
.compare-empty p { margin: 0; font-size: .88rem; }

/* ═══════════════════════════════════════════
   MATCH DETAIL BUTTONS (page-match-detail.php)
═══════════════════════════════════════════ */
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: .82rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all .2s; }
.share-fb { background: #1877F2; color: #fff; }
.share-fb:hover { background: #166FE5; transform: translateY(-1px); }
.share-zalo { background: #0068FF; color: #fff; }
.share-zalo:hover { background: #0052CC; transform: translateY(-1px); }
.team-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) {
  .team-detail-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   HISTORY PAGE (page-giai-dau-lich-su.php)
═══════════════════════════════════════════ */
.ls-hero { font-family: 'Inter', -apple-system, sans-serif; }
.ls-section { margin-bottom: 32px; }
.ls-section-header { margin-bottom: 14px; }
.ls-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }
.ls-status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ls-status-ongoing { background: #22c55e; animation: pulse 2s infinite; }
.ls-status-completed { background: var(--text-muted); }
.ls-status-upcoming { background: #f59e0b; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.ls-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ls-event-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: all .2s; }
.ls-event-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.ls-event-ongoing { background: linear-gradient(to bottom, rgba(34,197,94,.03), transparent); }
.ls-event-completed { opacity: .95; }
.ls-event-upcoming { opacity: .9; }
.ls-event-header { display: flex; align-items: center; justify-content: space-between; }
.ls-event-region { font-size: .72rem; font-weight: 700; display: flex; align-items: center; gap: 4px; }
.ls-event-status { padding: 3px 10px; border-radius: 20px; font-size: .65rem; font-weight: 700; }
.ls-badge-ongoing { background: rgba(34,197,94,.15); color: #22c55e; }
.ls-badge-completed { background: var(--bg-alt); color: var(--text-muted); }
.ls-badge-upcoming { background: rgba(245,158,11,.15); color: #f59e0b; }
.ls-event-name { margin: 0; font-size: 1rem; font-weight: 900; color: var(--text); }
.ls-event-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .72rem; color: var(--text-muted); }
.ls-champion { background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(217,119,6,.05)); border: 1px solid rgba(245,158,11,.2); border-radius: 10px; padding: 12px; }
.ls-champion-label { font-size: .65rem; font-weight: 700; color: #f59e0b; text-transform: uppercase; margin-bottom: 8px; }
.ls-champion-team { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.ls-champion-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); }
.ls-champion-logo-placeholder { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
.ls-champion-info { display: flex; flex-direction: column; }
.ls-champion-name { font-size: .88rem; font-weight: 800; color: var(--text); }
.ls-champion-stats { font-size: .68rem; color: var(--text-muted); }
.ls-standings-preview { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ls-preview-header { padding: 8px 12px; background: var(--bg-alt); font-size: .65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.ls-preview-row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--border); transition: background .15s; }
.ls-preview-row:last-child { border-bottom: none; }
.ls-preview-row:hover { background: var(--bg-alt); }
.ls-preview-row.ls-preview-top { background: rgba(22,93,255,.03); }
.ls-preview-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 900; color: var(--text-muted); flex-shrink: 0; }
.ls-preview-rank.ls-rank-gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.ls-preview-rank.ls-rank-silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.ls-preview-rank.ls-rank-bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.ls-preview-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.ls-preview-logo-placeholder { width: 24px; height: 24px; border-radius: 6px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .58rem; font-weight: 800; flex-shrink: 0; }
.ls-previewName { flex: 1; font-size: .78rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-preview-points { font-size: .72rem; font-weight: 800; color: var(--blue); flex-shrink: 0; }
.ls-event-actions { margin-top: auto; }
.ls-event-link { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; background: var(--blue); border-radius: 8px; color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.ls-event-link:hover { background: #0d4fd9; transform: translateX(2px); }
.ls-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 12px; }
@media (max-width: 768px) { .ls-events-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   WEAPON DETAIL (single-pubg_weapon.php)
═══════════════════════════════════════════ */
.weapon-detail-bottom { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 768px) {
  .weapon-detail-bottom { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   FILTER TABS (page-vu-khi.php, page-skin-su-kien.php, page-huong-dan-sinh-ton.php)
═══════════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all .15s;
}
.filter-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(22,93,255,.3);
}

/* ═══════════════════════════════════════════
   TOURNAMENT PANELS (page-giai-dau.php)
═══════════════════════════════════════════ */
.tournament-panels {
  margin-bottom: 24px;
}
.tournament-panel {
  display: none;
}
.tournament-panel.active {
  display: block;
}

/* ═══════════════════════════════════════════
   EVENT DETAIL PAGE (single-pubg_event.php)
   compact sidebar links
═══════════════════════════════════════════ */
.other-event-link {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: all .15s;
}
.other-event-link:hover { color: var(--blue); }

/* ═══════════════════════════════════════════
   DOWNLOAD GAME CARDS (page-tai-game.php)
═══════════════════════════════════════════ */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.game-card-thumb {
  height: 140px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.game-card-thumb img {
  max-width: 70%;
  max-height: 100px;
  object-fit: contain;
}
.game-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.game-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.game-card-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.game-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.game-card-tag {
  font-size: .68rem;
  padding: 3px 8px;
  background: var(--bg-alt);
  border-radius: 10px;
  color: var(--text-muted);
}
.game-download-btn {
  display: block;
  text-align: center;
  background: var(--blue);
  color: #fff;
  padding: 12px;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  margin-top: auto;
  transition: all .15s;
}
.game-download-btn:hover {
  background: #0d4fd9;
}

@media (max-width: 768px) {
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 14px; font-size: .78rem; }
}

/* ═══════════════════════════════════════════
   ENHANCED VISUAL STYLES (Added for polish)
═══════════════════════════════════════════ */

/* Card hover effects */
.map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.map-card-thumb img {
  transition: transform 0.3s;
}
.map-card:hover .map-card-thumb img {
  transform: scale(1.05);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.article-card-thumb img {
  transition: transform 0.3s;
}
.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}

/* Tournament section */
.tournament-section {
  margin-top: 32px;
}
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tournament-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.tournament-header {
  font-size: 12px;
  font-weight: 700;
  color: #165DFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tournament-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tournament-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.tournament-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.tournament-team-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}
.tournament-vs {
  font-size: 14px;
  font-weight: 900;
  color: #64748b;
  flex-shrink: 0;
}
.tournament-score {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  margin-top: 8px;
  text-align: center;
}
.tournament-status {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

/* Primary gradient buttons */
.btn-primary,
.section-btn,
.tournament-card .tournament-more {
  background: linear-gradient(90deg, #2563eb, #0891b2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover,
.section-btn:hover,
.tournament-card .tournament-more:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  color: #ffffff;
}

/* Table header gradient */
.data-table thead tr {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
}
.data-table thead th {
  color: #ffffff !important;
  background: transparent !important;
}

/* Site footer */
.site-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.site-footer a {
  color: #94a3b8;
  transition: color 0.15s;
}
.site-footer a:hover {
  color: #ffffff;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links li a {
  font-size: 13px;
  color: #94a3b8;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-size: 12px;
  color: #64748b;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  transition: background 0.15s, color 0.15s;
}
.footer-social a:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Enhanced card shadows and borders */
.lookup-card,
.tournament-card,
.data-table,
.map-card,
.article-card {
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* ═══════════════════════════════════════════
   NEW HOMEPAGE SECTIONS 2026
═══════════════════════════════════════════ */

/* Hero carousel fix */
.hero-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: stretch;
}
.hero-carousel {
  min-height: 380px;
}
.hero-lookup {
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-carousel {
    min-height: 200px;
  }
  .hero-lookup {
    order: 1;
  }
  .lookup-card {
    padding: 14px;
  }
}

/* Popular Search Section */
.popular-search-section { padding: 16px 0 0; }
.popular-search-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.popular-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}
.popular-search-header h2 {
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.popular-search-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.popular-search-col { padding: 14px 20px; }
.popular-search-col + .popular-search-col { border-left: 1px solid var(--border-light); }
.popular-search-col h3 { font-size: .82rem; margin-bottom: 10px; color: var(--text-muted); font-weight: 700; }
.popular-search-list { display: flex; flex-direction: column; gap: 2px; }
.popular-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  transition: background 0.15s;
}
.popular-search-item:hover { background: var(--bg-alt); color: var(--blue); }
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.rank.gold { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.rank.silver { background: linear-gradient(135deg,#9ca3af,#6b7280); color: #fff; }
.rank.bronze { background: linear-gradient(135deg,#cd7f32,#a0522d); color: #fff; }
.rank.default { background: var(--bg-alt); color: var(--text-muted); }
.pop-weapon-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.pop-player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* History + Trending Grid */
.history-trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Rankings Section */
.rankings-section { padding: 16px 0 0; }
.rankings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rankings-card {
  padding: 0;
  overflow: hidden;
}
.rankings-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.rankings-card-title {
  font-size: .95rem;
  font-weight: 800;
  margin: 0;
}
.rankings-card-more {
  font-size: .78rem;
  color: var(--blue);
  font-weight: 600;
}
.rankings-card-more:hover { text-decoration: underline; }
.rankings-list { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.rankings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.rankings-item:hover { background: var(--bg-alt); }
.rankings-rank {
  font-size: .82rem;
  font-weight: 900;
  width: 22px;
  flex-shrink: 0;
}
.rankings-weapon-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.rankings-info { flex: 1; min-width: 0; }
.rankings-name {
  font-size: .85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}
.rankings-tier {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}
.rankings-bar-wrap { display: none; }
.rankings-stat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.rankings-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rankings-player-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rankings-kd, .rankings-wr {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.rankings-kd { color: var(--blue); }
.rankings-empty { text-align: center; padding: 16px; color: var(--text-muted); font-size: .82rem; }

/* Season Archive */
.season-archive-section { padding: 16px 0 0; }
.season-archive-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.season-archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.season-archive-header h2 {
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.season-archive-body {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.season-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.season-item:hover { background: var(--bg-hover); }
.season-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Version + Guide Grid */
.version-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Maps Overview (Ban Do page) */
.maps-overview-section { padding: 0 0 8px; }
.maps-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.map-overview-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.map-overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22,93,255,.15);
}
.map-overview-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}
.map-overview-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-overview-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(22,93,255,.85);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.map-overview-body { padding: 14px; flex: 1; }
.map-overview-name { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.map-overview-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.map-overview-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .72rem;
  padding: 2px 8px;
  color: var(--text-muted);
}

/* Win Rate + Updates Grid */
.winrate-updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Maps Section */
.maps-section { padding: 16px 0 0; }
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.map-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.map-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(22,93,255,.15); }
.map-card-thumb {
  position: relative;
  height: 140px;
  background: var(--bg-alt);
  overflow: hidden;
}
.map-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.map-card:hover .map-card-thumb img { transform: scale(1.05); }
.map-card-title {
  font-size: .85rem;
  font-weight: 800;
  text-align: center;
  padding: 10px;
}

/* Tournament Section */
.tournament-section { padding: 20px 0; }
.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tournament-match-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.tournament-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,93,255,.12);
  border-color: rgba(22,93,255,.25);
}
.tournament-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  text-align: center;
}
.tournament-team img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(15,23,42,.06);
}
.tournament-team span {
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tournament-vs {
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 6px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Guides Section */
.guides-section { padding: 16px 0 0; }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(22,93,255,.15); }
.guide-card-thumb {
  position: relative;
  height: 160px;
  background: var(--bg-alt);
  overflow: hidden;
}
.guide-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.guide-card:hover .guide-card-thumb img { transform: scale(1.05); }
.guide-card-views {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.guide-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.guide-card-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(22,93,255,.10);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.article-card-date { font-size: .72rem; color: var(--text-muted); margin-top: auto; }

/* Articles Section */
.articles-section { padding: 16px 0 0; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(22,93,255,.15); }
.article-card-thumb { height: 180px; background: var(--bg-alt); overflow: hidden; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-card-thumb img { transform: scale(1.05); }
.article-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.article-card-title {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Update Bar */
.update-bar {
  background: linear-gradient(90deg, #065f46, #059669);
  color: #fff;
  padding: 8px 16px;
  font-size: .82rem;
  text-align: center;
}
.update-bar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.update-bar a {
  margin-left: auto;
  background: #fff;
  color: #059669;
  font-weight: 700;
  font-size: .72rem;
  padding: 2px 10px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

/* Weapons Table */
.weapons-section { padding: 16px 0 0; }

/* Section header utility */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-title { font-size: 1.1rem; font-weight: 800; margin: 0; }
.section-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(22,93,255,.2);
}
.section-btn:hover { background: #1a4fd8; transform: translateY(-1px); color: #fff; }

/* Responsive overrides */
@media (max-width: 1024px) {
  .map-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-cards { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .rankings-grid { grid-template-columns: 1fr; }
  .history-trending-grid { grid-template-columns: 1fr; }
  .popular-search-body { grid-template-columns: 1fr; }
  .popular-search-col + .popular-search-col { border-left: none; border-top: 1px solid var(--border-light); }
  .version-guide-grid { grid-template-columns: 1fr; }
  .winrate-updates-grid { grid-template-columns: 1fr; }
  .tournament-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .map-grid { grid-template-columns: 1fr 1fr; }
  .guide-cards { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .tournament-grid { grid-template-columns: 1fr; }
  .season-archive-body { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .map-grid { grid-template-columns: 1fr; }
  .guide-cards { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .tournament-grid { grid-template-columns: 1fr; }
}

/* Dark mode additions */
[data-theme="dark"] .popular-search-card,
[data-theme="dark"] .rankings-card,
[data-theme="dark"] .season-archive-card,
[data-theme="dark"] .guide-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .tournament-match-card {
/* ═══════════════════════════════════════════
   DOWNLOAD PAGE STYLES
═══════════════════════════════════════════ */

/* Page Hero */
.page-hero-section {
  padding: 48px 0 40px;
  text-align: center;
}

/* Download Games Section */
.download-games-section {
  padding: 32px 0 0;
}

.download-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Individual Download Card */
.download-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.download-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22,93,255,.15);
  border-color: rgba(22,93,255,.3);
}

/* Game Icon */
.download-game-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.download-game-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 16px;
}

.download-game-icon-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

/* Badge */
.download-game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .65rem;
  font-weight: 800;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Game Info */
.download-game-info {
  text-align: center;
  width: 100%;
}

.download-game-name {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.download-game-tagline {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Meta tags */
.download-game-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.download-meta-tag {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

/* Action buttons */
.download-game-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.download-btn-primary {
  background: linear-gradient(90deg, #165DFF, #0891b2);
  color: #fff;
  height: 44px;
  box-shadow: 0 4px 12px rgba(22,93,255,.25);
}

.download-btn-primary:hover {
  background: linear-gradient(90deg, #1a4fd8, #077a9e);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22,93,255,.3);
  color: #fff;
}

.download-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22,93,255,.2);
}

.download-btn-primary.loading {
  background: linear-gradient(90deg, #94a3b8, #64748b);
  cursor: wait;
  opacity: 0.85;
}

.download-btn-primary.done {
  background: linear-gradient(90deg, #059669, #16a34a);
  box-shadow: 0 4px 12px rgba(5,150,105,.25);
}

.download-btn-secondary {
  background: #f5f5f5;
  color: #1e293b;
  border: 1px solid var(--border);
  height: 36px;
  font-size: .8rem;
}

.download-btn-secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.download-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  height: 32px;
  font-size: .75rem;
  font-weight: 600;
}

.download-btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* Download Status */
.download-status {
  min-height: 20px;
  text-align: center;
  width: 100%;
}

/* Feature Banner */
.download-feature-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.download-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
}

.download-feature-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.download-feature-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.download-feature-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Download Stats Bar */
.download-stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 8px 20px;
  margin-top: 16px;
  backdrop-filter: blur(8px);
}
.download-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
.download-stat-num {
  font-size: .95rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.download-stat-label {
  font-size: .65rem;
  color: rgba(255,255,255,.6);
  margin-top: 3px;
  white-space: nowrap;
}
.download-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
}

/* Device Check */
.download-device-check {
  padding: 0 0 24px;
}
.device-check-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(22,93,255,.08), rgba(15,198,194,.06));
  border: 1px solid rgba(22,93,255,.2);
  border-radius: 12px;
  padding: 16px 20px;
}
.device-check-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.device-check-text { flex: 1; }
.device-check-title {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.device-check-desc {
  font-size: .78rem;
  color: var(--text-muted);
}
.device-check-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.device-check-btn:hover {
  background: var(--blue-dark, #0d47a1);
  transform: translateY(-1px);
}
.device-check-btn:active { transform: translateY(0); }

/* Section Labels (filter tabs) */
.download-section-labels {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.download-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.download-section-label:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.download-section-label.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,93,255,.25);
}

/* APK Install Guide */
.download-guide-section {
  padding: 8px 0 48px;
}
.download-guide-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-guide-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.download-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.download-guide-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-guide-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.download-guide-step-num {
  width: 28px;
  height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 900;
  flex-shrink: 0;
}
.download-guide-step-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text);
}
.download-guide-step-text {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.download-guide-step-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.download-guide-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(22,93,255,.06);
  border: 1px solid rgba(22,93,255,.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1100px) {
  .download-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .download-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .download-feature-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-guide-steps {
    grid-template-columns: 1fr;
  }
  .device-check-card {
    flex-wrap: wrap;
  }
  .download-stats-bar {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .download-games-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .download-game-card {
    padding: 14px;
    gap: 8px;
  }
  .download-game-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  .download-game-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }
  .download-game-icon-emoji {
    font-size: 2rem;
  }
  .download-game-name {
    font-size: .82rem;
  }
  .download-btn-primary {
    height: 40px;
    font-size: .8rem;
  }
  .download-btn-secondary {
    height: 32px;
    font-size: .75rem;
  }
  .download-btn-ghost {
    display: none;
  }
  .download-feature-banner {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   TAI-GAME PAGE STYLES (tg- prefixed)
═══════════════════════════════════════════ */

.tg-section {
  padding: 20px 0;
}
.tg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Stats / Live Counter */
.tg-live-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(22,93,255,.07);
  border: 1px solid rgba(22,93,255,.15);
  border-radius: 12px;
  padding: 14px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tg-live-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.tg-live-counter-item label {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.tg-live-counter-item span {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue);
}
.tg-live-counter-sep {
  width: 1px;
  height: 32px;
  background: rgba(22,93,255,.2);
}

/* Device Checker */
.tg-device-checker {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(22,93,255,.06), rgba(15,198,194,.04));
  border: 1px solid rgba(22,93,255,.15);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.tg-device-info {
  flex: 1;
}
.tg-device-compat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tg-device-info-item {
  font-size: .72rem;
  color: var(--text-muted);
}
.tg-device-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.tg-device-btn:hover {
  background: var(--blue-dark, #0d47a1);
  transform: translateY(-1px);
}

/* Game Filter Tabs */
.tg-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tg-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tg-filter-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.tg-filter-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,93,255,.25);
}

/* Games Grid */
.tg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

/* Game Card */
.tg-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.tg-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(22,93,255,.18);
}
.tg-game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .62rem;
  font-weight: 900;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}
.tg-game-card-icon {
  width: 100%;
  height: 140px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.tg-game-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-game-name {
  font-size: .92rem;
  font-weight: 900;
  color: var(--text);
  padding: 12px 16px 4px;
  line-height: 1.3;
}
.tg-game-tagline {
  font-size: .72rem;
  color: var(--text-muted);
  padding: 0 16px 10px;
  font-weight: 500;
}
.tg-game-card-meta {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}
.tg-game-meta-tag {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Download Buttons */
.tg-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}
.tg-download-btn-primary {
  background: var(--blue);
  color: #fff;
}
.tg-download-btn-primary:hover {
  background: var(--blue-dark, #0d47a1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,93,255,.3);
}
.tg-download-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tg-download-btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.tg-dl-status {
  min-height: 18px;
  text-align: center;
  padding: 0 16px 12px;
  font-size: .75rem;
}

/* Game Expand / Details Panel */
.tg-game-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}
.tg-game-expand-btn:hover {
  background: rgba(22,93,255,.08);
  border-color: rgba(22,93,255,.25);
}
.tg-game-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.tg-game-panel.open {
  display: block;
}
.tg-game-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
}
.tg-game-panel-title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--text);
}
.tg-game-panel-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.tg-game-panel-body {
  padding: 0 16px 16px;
}
.tg-game-panel-icon {
  font-size: 1.4rem;
  margin-right: 6px;
}
.tg-rank-downloads {
  font-size: .75rem;
  color: var(--text-muted);
  padding: 6px 16px 10px;
}
.tg-rank-downloads strong {
  color: var(--blue);
  font-weight: 800;
}

/* Rank Tabs */
.tg-rank-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tg-rank-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.tg-rank-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.tg-rank-list {
  padding: 10px 16px;
  margin: 0;
  list-style: none;
}

/* APK Tutorial */
.tg-apk-tutorial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 8px;
}
.tg-apk-tutorial h2 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
}
.tg-apk-tutorial > p {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.tg-apk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.tg-apk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--bg-alt);
  border-radius: 12px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tg-apk-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.tg-apk-step-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.tg-apk-step-num {
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 900;
}
.tg-apk-step h3 {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.tg-apk-step p {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.tg-apk-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(22,93,255,.05);
  border: 1px solid rgba(22,93,255,.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Compat Card */
.tg-compat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}
.tg-compat-label {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.tg-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
}
.tg-device-row:last-child { border-bottom: none; }
.tg-device-row span:first-child { color: var(--text-muted); }
.tg-device-row span:last-child { font-weight: 700; color: var(--text); }
.tg-check-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-check-status.ok { background: rgba(22,197,131,.1); color: var(--green); }
.tg-check-status.fail { background: rgba(229,57,53,.1); color: var(--red); }

/* Section filter tabs (updates/featured) */
.tg-updates-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.tg-updates-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.tg-updates-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* Responsive */
@media (max-width: 1100px) {
  .tg-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .tg-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .tg-apk-steps {
    grid-template-columns: 1fr;
  }
  .tg-live-counter {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .tg-live-counter-sep { display: none; }
}
@media (max-width: 480px) {
  .tg-games-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════
   TAI-GAME PAGE STYLES (tg- prefixed) — ALL
═══════════════════════════════════════════ */

.tg-section {
  padding: 20px 0;
}
.tg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Live Counter ── */
.tg-live-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(22,93,255,.07);
  border: 1px solid rgba(22,93,255,.15);
  border-radius: 14px;
  padding: 14px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tg-live-counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.tg-live-counter-item label {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.tg-live-counter-item span {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.tg-live-counter-sep {
  width: 1px;
  height: 32px;
  background: rgba(22,93,255,.2);
}

/* ── Tabs ── */
.tg-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tg-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tg-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.tg-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(22,93,255,.3);
}
.tg-tab-content {
  display: none;
}
.tg-tab-content.active {
  display: block;
}

/* ── Rank List ── */
.tg-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tg-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tg-rank-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,93,255,.12);
  border-color: rgba(22,93,255,.3);
}
.tg-rank-num {
  font-size: .78rem;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.tg-rank-num.top3 { color: var(--blue); }
.tg-rank-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tg-rank-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-rank-icon span {
  font-size: 1.4rem;
  line-height: 1;
}
.tg-rank-info {
  flex: 1;
  min-width: 0;
}
.tg-rank-info h4 {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-rank-info small {
  font-size: .7rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-rank-bar-wrap {
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.tg-rank-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  border-radius: 2px;
  transition: width 0.6s ease;
}
.tg-rank-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.tg-rank-downloads {
  font-size: .85rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.tg-rank-date {
  font-size: .65rem;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
}

/* ── Device Checker ── */
.tg-device-checker {
  background: linear-gradient(135deg, rgba(22,93,255,.05), rgba(15,198,194,.04));
  border: 1px solid rgba(22,93,255,.15);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.tg-device-checker h2 {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}
.tg-device-checker > p {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.tg-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-right: 10px;
}
.tg-check-btn:hover {
  background: #0d47a1;
  transform: translateY(-1px);
}
.tg-check-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.tg-check-status {
  display: inline;
  font-size: .8rem;
  font-weight: 700;
}
.tg-check-status.ok { color: var(--green); }
.tg-check-status.fail { color: var(--red); }
.tg-device-results {
  margin-top: 12px;
  display: none;
}
.tg-device-results.visible { display: block; }
.tg-device-info {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tg-device-info-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-device-info-item label {
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.tg-device-info-item span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
}
.tg-device-compat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.tg-compat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.tg-compat-card img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.tg-compat-card span:first-of-type {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tg-compat-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tg-compat-label strong {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text);
}
.compat-ok { color: var(--green); font-size: .72rem; font-weight: 700; }
.compat-warn { color: #f59e0b; font-size: .72rem; font-weight: 700; }
.compat-bad { color: var(--red); font-size: .72rem; font-weight: 700; }

/* ── Filter Tabs ── */
.tg-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tg-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tg-filter-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.tg-filter-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,93,255,.25);
}

/* ── Games Grid ── */
.tg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

/* ── Game Card ── */
.tg-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tg-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(22,93,255,.18);
  border-color: rgba(22,93,255,.3);
}
.tg-game-card.expanded {
  border-color: rgba(22,93,255,.4);
  box-shadow: 0 16px 40px rgba(22,93,255,.2);
}
.tg-game-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: .62rem;
  font-weight: 900;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}
.tg-game-card-icon {
  width: 100%;
  height: 140px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.tg-game-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-game-card-icon span {
  font-size: 3.5rem;
  line-height: 1;
}
.tg-game-name {
  font-size: .92rem;
  font-weight: 900;
  color: var(--text);
  padding: 12px 16px 4px;
  line-height: 1.3;
}
.tg-game-tagline {
  font-size: .72rem;
  color: var(--text-muted);
  padding: 0 16px 10px;
  font-weight: 500;
}

/* ── Info Tags ── */
.tg-info-tags {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
  flex-wrap: wrap;
}
.tg-info-tag {
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.tg-info-tag-size { color: var(--blue); border-color: rgba(22,93,255,.2); background: rgba(22,93,255,.06); }
.tg-info-tag-android { color: var(--green); border-color: rgba(22,197,131,.2); background: rgba(22,197,131,.06); }
.tg-info-tag-lang { color: var(--red); border-color: rgba(229,57,53,.2); background: rgba(229,57,53,.06); }

/* ── Download Buttons ── */
.tg-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 16px;
  width: calc(100% - 32px);
  box-sizing: border-box;
}
.tg-download-btn-primary {
  background: var(--blue);
  color: #fff;
}
.tg-download-btn-primary:hover {
  background: #0d47a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,93,255,.3);
}
.tg-download-btn-primary.loading {
  opacity: 0.7;
  cursor: wait;
}
.tg-download-btn-primary.done {
  background: var(--green);
}
.tg-download-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tg-download-btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.tg-dl-status {
  min-height: 18px;
  text-align: center;
  padding: 0 16px 10px;
  font-size: .75rem;
}

/* ── Expand Button ── */
.tg-game-panel-trigger {
  padding: 0 16px 4px;
}
.tg-game-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.2s;
}
.tg-game-expand-btn:hover {
  background: rgba(22,93,255,.08);
  border-color: rgba(22,93,255,.25);
}
.tg-game-expand-btn .arrow {
  font-size: .65rem;
  transition: transform 0.2s;
  display: inline-block;
}
.tg-game-card.expanded .tg-game-expand-btn .arrow {
  transform: rotate(180deg);
}

/* ── Game Panel ── */
.tg-game-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.tg-game-panel.open { display: block; }
.tg-game-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 8px;
  border-bottom: 1px solid var(--border);
}
.tg-game-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.6rem;
}
.tg-game-panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tg-game-panel-title {
  flex: 1;
  min-width: 0;
}
.tg-game-panel-title h3 {
  font-size: .88rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 4px;
}
.tg-game-panel-title p {
  font-size: .75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}
.tg-game-panel-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px 4px;
  flex-shrink: 0;
}
.tg-game-panel-close:hover { color: var(--text); }
.tg-game-panel-body {
  padding: 12px 16px 16px;
}

/* ── Old Versions ── */
.tg-old-versions { margin-bottom: 16px; }
.tg-old-versions h4 {
  font-size: .82rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
}
.tg-old-version-tip {
  font-size: .72rem;
  color: var(--blue);
  background: rgba(22,93,255,.06);
  border: 1px solid rgba(22,93,255,.12);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.tg-old-version-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tg-old-version-item {
  display: grid;
  grid-template-columns: 70px 70px 70px 1fr auto;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .75rem;
}
.tg-old-version-ver { font-weight: 900; color: var(--text); }
.tg-old-version-size { color: var(--text-muted); font-weight: 600; }
.tg-old-version-date { color: var(--text-muted); }
.tg-old-version-notes { color: var(--text-muted); font-size: .7rem; line-height: 1.3; }
.tg-old-version-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tg-old-version-btn:hover {
  background: rgba(22,93,255,.08);
  border-color: rgba(22,93,255,.3);
}

/* ── Related Games ── */
.tg-related h4 {
  font-size: .82rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}
.tg-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}
.tg-related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: .68rem;
  font-weight: 700;
}
.tg-related-card:hover {
  border-color: rgba(22,93,255,.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22,93,255,.12);
}
.tg-related-genre {
  font-size: .58rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── APK Tutorial ── */
.tg-apk-tutorial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 8px;
}
.tg-apk-tutorial h2 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
}
.tg-apk-tutorial > p {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.tg-apk-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.tg-apk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--bg-alt);
  border-radius: 12px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tg-apk-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.tg-apk-step-icon { font-size: 2.2rem; line-height: 1; }
.tg-apk-step-num {
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 900;
}
.tg-apk-step h3 {
  font-size: .85rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.tg-apk-step p {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.tg-apk-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(22,93,255,.05);
  border: 1px solid rgba(22,93,255,.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .tg-games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .tg-games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tg-apk-steps { grid-template-columns: 1fr; }
  .tg-live-counter { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .tg-live-counter-sep { display: none; }
  .tg-live-counter-item { padding: 0 16px; }
  .tg-old-version-item { grid-template-columns: 60px 60px 60px 1fr auto; font-size: .7rem; }
  .tg-device-compat { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tg-games-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tg-rank-item { padding: 10px 12px; }
  .tg-rank-stats { display: none; }
  .tg-old-version-item { grid-template-columns: 1fr 1fr; }
  .tg-old-version-date, .tg-old-version-notes { display: none; }
  .tg-device-compat { grid-template-columns: 1fr; }
  .tg-tabs { gap: 6px; }
  .tg-tab { padding: 7px 12px; font-size: .75rem; }
}

/* ── Dark mode ── */
[data-theme="dark"] .tg-game-card,
[data-theme="dark"] .tg-rank-item,
[data-theme="dark"] .tg-apk-tutorial,
[data-theme="dark"] .tg-device-checker,
[data-theme="dark"] .tg-compat-card,
[data-theme="dark"] .tg-old-version-item,
[data-theme="dark"] .tg-related-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .tg-game-panel { background: rgba(0,0,0,.2); }
[data-theme="dark"] .tg-game-card-icon,
[data-theme="dark"] .tg-apk-step,
[data-theme="dark"] .tg-info-tag { background: rgba(255,255,255,.05); }

/* Dark mode */
[data-theme="dark"] .download-game-card {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .download-btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .download-btn-secondary:hover {
  background: var(--bg-hover);
}
[data-theme="dark"] .download-feature-banner {
  background: var(--bg-card);
  border-color: var(--border);
}

/* ═══════════════════════════════════════════
   SENSITIVITY PRESETS SECTION (huong-dan)
   ═══════════════════════════════════════════ */
.sens-presets-section {
  margin-bottom: 28px;
}

.sens-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.sens-section-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.sens-section-title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

.sens-section-desc {
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
}

.sens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}

.sens-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-top: 3px solid var(--sens-accent, #165DFF);
  padding: 0;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sens-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.sens-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  gap: 10px;
}

.sens-finger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--sens-bg, #f3e8ff);
  color: var(--sens-accent, #8b5cf6);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: -.2px;
}

.sens-finger-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.sens-finger-label {
  line-height: 1;
}

.sens-device-tag {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.sens-card-desc {
  margin: 0;
  padding: 0 16px 8px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sens-values {
  padding: 4px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sens-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--bg-alt);
  font-size: .82rem;
}

.sens-row-key {
  color: var(--text);
  font-weight: 600;
}

.sens-row-val {
  color: var(--blue);
  font-weight: 800;
  font-size: .84rem;
}

.sens-card-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.sens-tip {
  margin: 0;
  font-size: .78rem;
  color: #92400e;
  line-height: 1.5;
  font-style: italic;
}

.sens-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--sens-accent, #165DFF), color-mix(in srgb, var(--sens-accent, #165DFF) 70%, #000));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  letter-spacing: -.2px;
}

.sens-copy-btn:hover {
  opacity: .9;
  transform: scale(1.02);
}

.sens-copy-btn:active {
  transform: scale(.98);
}

/* ═══════════════════════════════════════════
   NEWBIE SECTION (huong-dan)
   ═══════════════════════════════════════════ */
.newbie-section {
  margin-bottom: 28px;
}

.newbie-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border: 1px solid rgba(22,163,74,.2);
  border-radius: 10px;
}

.newbie-section-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.newbie-section-title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #166534;
  line-height: 1.3;
}

.newbie-section-desc {
  margin: 0;
  font-size: .8rem;
  color: #15803d;
}

.newbie-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newbie-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.newbie-step-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(22,93,255,.1);
  transform: translateX(3px);
}

.ns-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 900;
  flex-shrink: 0;
}

.ns-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.ns-content {
  flex: 1;
  min-width: 0;
}

.ns-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.ns-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ns-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .2s;
}

.newbie-step-card:hover .ns-arrow {
  transform: translateX(3px);
  color: var(--blue);
}

/* ═══════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════ */
[data-theme="dark"] .sens-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .sens-row {
  background: rgba(255,255,255,.04);
}

[data-theme="dark"] .sens-tip {
  color: #fcd34d;
}

[data-theme="dark"] .newbie-section-header {
  background: linear-gradient(135deg, rgba(22,163,74,.12), rgba(22,163,74,.04));
  border-color: rgba(22,163,74,.2);
}

[data-theme="dark"] .newbie-section-title {
  color: #86efac;
}

[data-theme="dark"] .newbie-section-desc {
  color: #4ade80;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sens-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sens-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .sens-section-title {
    font-size: .95rem;
  }

  .sens-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sens-row {
    font-size: .76rem;
    padding: 6px 8px;
  }

  .sens-copy-btn {
    font-size: .82rem;
    padding: 10px 14px;
  }

  .newbie-step-card {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }

  .ns-content {
    flex-basis: calc(100% - 90px);
  }

  .ns-arrow {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .sens-grid {
    gap: 10px;
  }

  .sens-card-desc {
    font-size: .76rem;
  }

  .sens-row {
    font-size: .72rem;
  }

  .sens-row-val {
    font-size: .76rem;
  }
}

@media print {
  .site-header, .site-footer, .nav-bar, .ticker-bar,
  .mobile-bottom-nav, .back-to-top, .scroll-reveal,
  .pubg-fb-comments, .map-overview-badge, .stat-pill,
  button, .faq-item button, .hero-section,
  [class*="carousel"], [class*="slider"],
  .card a[onmouseover], .cross-links-section { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; }
  a { color: #000 !important; text-decoration: underline !important; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* ═══════════════════════════════════════════
   GLOBAL MOBILE RESPONSIVE OVERRIDES
   Covers inline styles in all page templates
═══════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Grid layouts: force single column for content+sidebar patterns */
  [style*="grid-template-columns: 1fr 3"],
  [style*="grid-template-columns:1fr 3"] {
    grid-template-columns: 1fr !important;
  }

  /* Force single column for 3+ column grids */
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Force single column for 2-column grids (hero, attributes) */
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Flex containers: add wrap for title bars and info rows */
  [style*="display:flex"][style*="justify-content:space-between"] {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* min-width overrides for mobile */
  [style*="min-width:2"] {
    min-width: 0 !important;
  }
  [style*="min-width:1"] {
    min-width: 0 !important;
  }

  /* Fixed width image containers */
  [style*="width:200px"][style*="height:200px"] {
    width: 120px !important;
    height: 120px !important;
  }

  /* Tables: ensure all tables have scroll wrapper */
  .card table,
  main table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Page-specific: weapon detail hero */
  .weapon-detail-hero,
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Page-specific: attachment detail hero */
  [style*="grid-template-columns:1fr 1.4fr"] img {
    margin: 0 auto;
  }

  /* Detail pages with sidebar: stack vertically */
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 320px"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns:1fr 300px"] {
    grid-template-columns: 1fr !important;
  }

  /* Vehicle detail stats: 1 column */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Xe page vehicle attributes */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Event detail info rows: stack vertically */
  [style*="display:flex;gap:12px;align-items:center"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  /* Ensure all cards have proper mobile padding */
  .card {
    padding: 14px !important;
  }

  /* Section titles on mobile */
  h1 { font-size: 1.25rem !important; }
  h2 { font-size: 1.05rem !important; }
  h3 { font-size: .92rem !important; }

  /* Hero sections: reduce padding */
  [class*="hero"],
  [style*="padding:28px"],
  [style*="padding: 28px"] {
    padding: 16px 0 !important;
  }

  /* Reduce gap in grids */
  [style*="gap:20px"],
  [style*="gap: 20px"] {
    gap: 12px !important;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Breadcrumb: smaller text */
  .breadcrumb, nav[class="breadcrumb"] {
    font-size: .72rem !important;
  }

  /* Table cells: smaller font */
  table td, table th {
    font-size: .75rem !important;
    padding: 6px 8px !important;
  }

  /* Pagination: compact */
  .pagination, [class*="pagination"] {
    gap: 4px !important;
  }
  .pagination a, .pagination span,
  [class*="pagination"] a, [class*="pagination"] span {
    padding: 6px 10px !important;
    font-size: .78rem !important;
  }

  /* Lookup page grid */
  .lookup-page-grid,
  [style*="grid-template-columns: 1fr 340px"] {
    grid-template-columns: 1fr !important;
  }

  /* Lookup stats grid (JS generated) */
  .lookup-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* Single column for everything */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* Even smaller text */
  h1 { font-size: 1.1rem !important; }
  h2 { font-size: .95rem !important; }

  /* Card padding minimal */
  .card {
    padding: 10px !important;
  }

  /* Container minimal padding */
  .container {
    padding: 0 8px !important;
  }

  /* Fixed width image containers: even smaller */
  [style*="width:200px"][style*="height:200px"] {
    width: 100px !important;
    height: 100px !important;
  }

  /* Vehicle stats: single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Buttons: full width */
  .btn, [class*="btn-"] {
    width: 100%;
    text-align: center;
  }

  /* Flex rows: always wrap */
  [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  /* Table font even smaller */
  table td, table th {
    font-size: .7rem !important;
    padding: 4px 6px !important;
  }
}

article .card p[style*="color:#e2e8f0"],
article .card p[style*="color: #e2e8f0"],
article .card div[style*="color:#e2e8f0"],
article .card div[style*="color: #e2e8f0"],
article .card span[style*="color:#94a3b8"],
article .card span[style*="color: #94a3b8"],
article .card td[style*="color:#94a3b8"],
article .card td[style*="color: #94a3b8"] {
  color: #1e293b !important;
}

article .card strong[style*="color:#FFD700"],
article .card strong[style*="color: #FFD700"] {
  color: #b45309 !important;
}

.article-body p,
.article-body div,
.article-body td,
.article-body th,
.article-body li,
.article-body span {
  color: #1e293b;
}

.article-body strong[style*="color:#FFD700"],
.article-body strong[style*="color: #FFD700"] {
  color: #b45309 !important;
}

.article-body p[style*="color:#e2e8f0"],
.article-body p[style*="color: #e2e8f0"],
.article-body div[style*="color:#e2e8f0"],
.article-body div[style*="color: #e2e8f0"],
.article-body td[style*="color:#94a3b8"],
.article-body td[style*="color: #94a3b8"],
.article-body span[style*="color:#94a3b8"],
.article-body span[style*="color: #94a3b8"] {
  color: #1e293b !important;
}
