:root {
  --bg: #0F172A;
  --surface: #1E293B;
  --border: #334155;
  --border-light: #1E293B;
  --text: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --blue: #2563EB;
  --blue-light: rgba(37, 99, 235, 0.15);
  --yellow: #FBBF24;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-card: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Righteous', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 41, 59, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.header-spacer { flex: 1; }

.nav { display: flex; align-items: center; gap: 2px; }

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.08); }

.menu-toggle { display: none; padding: 8px; color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .menu-icon-close { display: none; }

/* Mobile nav dropdown — hidden by default */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav-link {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--text); }

/* When menu is open */
.header.menu-open .mobile-nav { display: flex; }
.header.menu-open .menu-toggle .menu-icon-open { display: none; }
.header.menu-open .menu-toggle .menu-icon-close { display: block; }

/* =============================================
   PREVIEW SYSTEM

   Each game thumbnail has two layers:
   1. .thumb-static  — the default still image / gradient
   2. .thumb-preview — the GIF/video that shows on hover

   On hover, static fades out, preview fades in.
   Add data-preview="/assets/previews/game.gif"
   on .game-card or .hero-card, and JS will load it.
   ============================================= */

.thumb-preview img,
.thumb-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   HERO
   ============================================= */
.hero { padding: 40px 0 36px; }

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.25s;
}
.hero-card:hover { box-shadow: var(--shadow-hover); }

.hero-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Static layer */
.hero-thumb .thumb-static {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  z-index: 1;
}

/* Preview layer — hidden by default */
.hero-thumb .thumb-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

/* Hero card: always show preview when loaded (not just hover) */
.hero-card.has-preview .hero-thumb .thumb-static { opacity: 0; }
.hero-card.has-preview .hero-thumb .thumb-preview { opacity: 1; }

.hero-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}
.hero-card:hover .hero-play-overlay { opacity: 1; }

.play-circle {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.play-circle svg { width: 26px; height: 26px; color: #0F172A; margin-left: 3px; }

.hero-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--yellow);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: fit-content;
}

.hero-title { font-size: 28px; font-weight: 900; margin-bottom: 10px; line-height: 1.15; }
.hero-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.hero-meta { display: flex; gap: 16px; margin-bottom: 24px; }
.meta-tag { font-size: 13px; font-weight: 700; color: var(--text-muted); }

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  width: fit-content;
  transition: all 0.15s;
}
.hero-play-btn:hover { background: #3B82F6; }
.hero-play-btn svg { width: 18px; height: 18px; }

/* =============================================
   GAME CARDS
   ============================================= */
.games-section { padding-bottom: 48px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.section-title { font-size: 20px; font-weight: 800; }
.game-count { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.game-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

/* Static layer */
.card-thumb .thumb-static {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
  z-index: 1;
}

/* Preview layer */
.card-thumb .thumb-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

/* On hover: swap (only when preview is loaded) */
.game-card.has-preview:hover .card-thumb .thumb-static { opacity: 0; }
.game-card.has-preview:hover .card-thumb .thumb-preview { opacity: 1; }

.card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.1);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}
.game-card:hover .card-play-overlay { opacity: 1; }

.card-play-circle {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.card-play-circle svg { width: 20px; height: 20px; color: #0F172A; margin-left: 2px; }

.card-info { padding: 16px 18px 18px; }
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.card-category { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Card badge (positioned inside .card-thumb) */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
  line-height: 1.3;
}
.card-badge--exclusive {
  background: rgba(139, 92, 246, 0.9);
  color: white;
}

/* Hero badge — exclusive variant */
.hero-badge--exclusive {
  background: rgba(139, 92, 246, 0.15);
  color: #8B5CF6;
}

/* Gradient backgrounds */
.bg-1 { background: linear-gradient(145deg, #FF6B6B, #FF8E8E); }
.bg-2 { background: linear-gradient(145deg, #4ECDC4, #6EE7DE); }
.bg-3 { background: linear-gradient(145deg, #6C5CE7, #A29BFE); }
.bg-4 { background: linear-gradient(145deg, #FBBF24, #F59E0B); }
.bg-5 { background: linear-gradient(145deg, #2563EB, #60A5FA); }

/* =============================================
   SKELETON LOADING
   ============================================= */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton { pointer-events: none; }
.skeleton .thumb-static { background: var(--border) !important; }

.skeleton-shimmer {
  background: linear-gradient(90deg, var(--border) 0%, #3d4f6a 50%, var(--border) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-line {
  background: linear-gradient(90deg, var(--border) 0%, #3d4f6a 50%, var(--border) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

/* =============================================
   ABOUT BANNER
   ============================================= */
.about-banner {
  margin: 0 auto 48px;
  padding: 32px 36px;
  max-width: 1080px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.about-text h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.about-text p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
  max-width: 480px;
}

.about-btn {
  padding: 10px 24px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.about-btn:hover { background: #3B82F6; }

/* =============================================
   COMING SOON
   ============================================= */
.coming-soon-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
}
.coming-soon-card .cs-emoji { font-size: 32px; opacity: 0.5; }
.coming-soon-card .cs-text { font-size: 14px; font-weight: 700; color: var(--text-muted); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.footer-logo { line-height: 0; }
.footer-logo-img { height: 42px; width: auto; }

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color 0.15s; }
.footer-nav a:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.footer-copy span { opacity: 0.6; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav .nav-link-desk { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 24px 0 28px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-thumb { aspect-ratio: 16 / 10; }
  .hero-info { padding: 24px; }
  .hero-title { font-size: 22px; }
  .hero-desc { font-size: 14px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-info { padding: 12px 14px 14px; }
  .card-title { font-size: 14px; }
  .about-banner { flex-direction: column; text-align: center; padding: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { height: 56px; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-card { border-radius: 14px; }
  .card-thumb { aspect-ratio: 1; }
}

/* Disable preview animations on touch / mobile (no hover) — except hero card */
@media (hover: none) {
  .thumb-preview { display: none !important; }
  .hero-card .thumb-preview { display: block !important; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-hero {
  padding: 64px 0 48px;
  text-align: center;
}

.about-hero .container,
.about-story .container {
  max-width: 1080px;
}

.about-hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 14px;
}

.about-hero-logo {
  height: 64px;
  width: auto;
  vertical-align: middle;
}

.about-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 1080px;
  margin: 0 auto;
  line-height: 1.6;
}

.about-heading {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.about-story {
  padding-bottom: 56px;
}

.about-story-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.about-story-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: 16px;
}
.about-story-text:last-child { margin-bottom: 0; }

.about-values {
  padding-bottom: 56px;
}

.about-values .container {
  max-width: 1080px;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.about-value-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.about-value-emoji {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-value-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-value-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 500;
}

.about-cta {
  padding-bottom: 64px;
}

.about-cta-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.about-cta-text {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  background: var(--blue);
  color: white;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 800;
  transition: all 0.15s;
}
.about-cta-btn:hover { background: #3B82F6; }

/* About page responsive */
@media (max-width: 768px) {
  .about-hero { padding: 40px 0 32px; }
  .about-hero-title { font-size: 32px; }
  .about-hero-logo { height: 48px; }
  .about-hero-subtitle { font-size: 16px; }
  .about-values-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-value-card { padding: 24px 20px; }
  .about-story { padding-bottom: 40px; }
  .about-values { padding-bottom: 40px; }
  .about-cta { padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .about-hero { padding: 32px 0 24px; }
  .about-hero-title { font-size: 28px; }
  .about-hero-logo { height: 42px; }
}

/* =============================================
   BLOG
   ============================================= */
.blog-hero {
  padding: 48px 0 40px;
  text-align: center;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--text);
  margin: 0 0 8px;
}
.blog-hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

/* Blog Post Page */
.blog-breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 0 0;
  font-size: 14px;
  font-weight: 500;
}
.blog-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.blog-breadcrumb a:hover { color: var(--text); }
.blog-breadcrumb-sep {
  color: var(--text-muted);
  margin: 0 8px;
}
.blog-breadcrumb-current {
  color: var(--text-secondary);
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
.blog-article-title {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.25;
}
.blog-byline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* Markdown content inside .blog-body */
.blog-body h1 { font-size: 28px; font-weight: 800; margin: 36px 0 14px; color: var(--text); }
.blog-body h2 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; color: var(--text); }
.blog-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.blog-body h4 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.blog-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 16px;
}
.blog-body a { color: var(--blue); font-weight: 600; }
.blog-body a:hover { text-decoration: underline; }
.blog-body ul, .blog-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-body li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 4px;
}
.blog-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(37,99,235,0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blog-body blockquote p { margin-bottom: 0; }
.blog-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.blog-body code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 14px;
  color: #34D399;
}
.blog-body pre code {
  color: var(--text-secondary);
}
.blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 16px 0;
}
.blog-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.blog-back {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  margin-top: 8px;
}
.blog-back:hover { text-decoration: underline; }

/* Blog post recommendation sections */
.blog-recs { margin-top: 48px; }
.blog-recs-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}
.blog-recs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 480px) {
  .blog-recs-grid { grid-template-columns: 1fr; }
}

/* Blog ad layout */
.blog-content-wrapper {
  position: relative;
  max-width: 1132px;
  margin: 0 auto;
  min-height: 600px;
  margin-bottom: 48px;
}
.blog-sidebar-ad {
  position: absolute;
  top: 0;
  width: 160px;
}
.blog-sidebar-ad--left { left: 0; }
.blog-sidebar-ad--right { right: 0; }
.blog-content-wrapper .blog-content-inner {
  max-width: 760px;
  margin: 0 auto;
}
.blog-content-wrapper .blog-grid {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 64px;
}
.blog-ad-horizontal {
  display: none;
  max-width: 728px;
  margin: 24px auto;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 1220px) {
  .blog-sidebar-ad { display: none; }
  .blog-ad-horizontal { display: block; }
  .blog-content-wrapper { min-height: 0; }
  .blog-content-wrapper .blog-grid { max-width: 1080px; }
}

/* Blog responsive */
@media (max-width: 768px) {
  .blog-hero { padding: 36px 0 28px; }
  .blog-hero-title { font-size: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-article-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 28px 0 20px; }
  .blog-hero-title { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article-title { font-size: 24px; }
  .blog-card { padding: 22px 18px; }
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner--visible { transform: translateY(0); }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 0;
}

.cookie-banner-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-banner-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-link:hover { color: #3B82F6; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.cookie-btn--accept {
  background: var(--blue);
  color: white;
  border: none;
}
.cookie-btn--accept:hover { background: #3B82F6; }

.cookie-btn--reject {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.cookie-btn--reject:hover { color: var(--text); border-color: var(--text-muted); }

@media (max-width: 768px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; gap: 16px; }
  .cookie-banner-actions { width: 100%; justify-content: center; }
}

/* =============================================
   LEGAL PAGES (Privacy & Terms)
   ============================================= */
.legal-content {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.legal-content a {
  color: var(--blue);
  font-weight: 600;
}
.legal-content a:hover { text-decoration: underline; }

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .legal-content { padding-bottom: 48px; }
  .legal-content h2 { margin-top: 32px; }
}
