:root {
  --background: #0a0a0a;
  --background-secondary: #1a1a1a;
  --background-card: #141414;
  --bg-primary: var(--background);
  --bg-secondary: var(--background-card);
  --foreground: #fff;
  --foreground-secondary: #a0a0a0;
  --foreground-muted: #666;
  --text-primary: var(--foreground);
  --text-secondary: var(--foreground-secondary);
  --text-muted: var(--foreground-muted);
  --border: #2a2a2a;
  --border-color: var(--border);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: #3a3a3a;
  --gold: #ffd700;
  --accent: var(--gold);
  --accent-primary: var(--gold);
  --accent-hover: #ffe34d;
  --accent-soft: rgba(255, 215, 0, 0.14);
  --accent-glow: rgba(255, 215, 0, 0.25);
  --pink: #ff6b9d;
  --purple: #a855f7;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --font-outfit: "Outfit", system-ui, -apple-system, sans-serif;
  --font-sans: var(--font-outfit);
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ax-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.45em;
  font-weight: 700;
  color: var(--text-primary);
}
p { margin: 0 0 0.85em; }

.ax-skip {
  position: absolute; left: 12px; top: -48px; z-index: 40;
  background: var(--gold); color: #0a0a0a; padding: 8px 12px; border-radius: 999px; font-weight: 700;
}
.ax-skip:focus { top: 12px; }

.ax-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.ax-top.is-solid { border-bottom-color: var(--border); background: rgba(10, 10, 10, 0.92); }
.ax-top-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.ax-brand {
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.ax-brand:hover { color: #fff; }
.ax-brand-word {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
}
.ax-brand-word span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--pink) 50%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ax-nav { display: flex; align-items: center; gap: 2rem; }
.ax-nav a {
  color: var(--foreground-secondary); font-weight: 500; transition: color 0.2s;
}
.ax-nav a:hover, .ax-nav a.is-current { color: #fff; }
.ax-top-actions { display: flex; align-items: center; gap: 12px; }
.ax-return {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 600; font-size: 0.875rem;
  transition: transform 0.2s, background 0.2s;
}
.ax-return:hover { background: rgba(255, 255, 255, 0.9); color: #000; transform: scale(1.02); }

.ax-flash {
  width: min(1200px, calc(100% - 48px)); margin: 96px auto 0; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--background-card);
}
.ax-flash.ok { border-color: rgba(0, 199, 88, 0.45); }
.ax-flash.error { border-color: rgba(251, 44, 54, 0.45); }

.content-page {
  padding: 112px 24px 80px;
  background: var(--bg-primary);
  min-height: 100vh;
}
.blog-container { max-width: 1200px; margin: 0 auto; }
.blog-header { text-align: center; margin-bottom: 48px; }
.blog-title {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.blog-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 28px 0 40px;
}
.blog-filter {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary);
  background: transparent; font-weight: 600; font-size: 0.875rem;
}
.blog-filter:hover { color: #fff; border-color: var(--border-hover); }
.blog-filter.is-current {
  color: #0a0a0a; background: var(--gold); border-color: var(--gold);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-title { font-size: 36px; }
  .ax-nav { display: none; }
  .ax-top-inner { width: calc(100% - 32px); height: 64px; }
  .content-page { padding: 88px 16px 64px; }
}

.blog-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  overflow: hidden;
}
.blog-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}
.blog-card:hover:before { opacity: 1; }
.blog-card-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.blog-card-category {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 4px;
}
.blog-card-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.blog-card:hover .blog-card-title { color: var(--gold); }
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.blog-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
  padding-top: 16px; border-top: 1px solid var(--border-subtle);
}
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
.blog-pager { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.blog-pager a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--border); color: #fff; font-weight: 600;
}
.blog-pager a:hover { border-color: var(--gold); color: var(--gold); }

.ax-article-layout {
  display: grid; gap: 28px;
}
@media (min-width: 980px) {
  .ax-article-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
}
.ax-article-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.ax-article-cover {
  border-radius: 12px; overflow: hidden; margin: 0 0 24px;
  border: 1px solid var(--border); aspect-ratio: 16 / 9; background: #111;
}
.ax-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.ax-article-meta { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 10px; }
.ax-article-main h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.ax-article-lede { color: var(--text-secondary); font-size: 1.1rem; max-width: 42rem; }
.ax-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.ax-toc a {
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px;
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 600;
}
.ax-toc a:hover { color: var(--gold); border-color: var(--gold); }

.prose {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.003em;
  word-break: break-word;
}
.prose h1, .prose h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.prose h1 { font-size: 32px; }
.prose h2 { font-size: 24px; scroll-margin-top: 100px; }
.prose h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  scroll-margin-top: 100px;
  color: var(--text-primary);
}
.prose p { margin: 0 0 1.1em; color: var(--text-primary); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.2em 0; padding: 12px 16px; border-left: 3px solid var(--gold);
  background: rgba(255, 215, 0, 0.06); color: var(--text-secondary);
}
.prose code {
  background: var(--background-secondary); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.1em 0.35em; font-size: 0.92em;
}
.prose pre {
  background: #0f0f0f; border: 1px solid var(--border); border-radius: 12px; padding: 14px; overflow: auto;
}
.ax-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; color: var(--text-muted); }
.ax-side {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  position: sticky; top: 100px;
}
.ax-side h2 { font-size: 1rem; margin-bottom: 12px; }
.ax-side a {
  display: block; padding: 10px 0; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary); font-weight: 600; font-size: 0.95rem;
}
.ax-side a:last-child { border-bottom: 0; }
.ax-side a:hover { color: var(--gold); }
.ax-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; background: var(--gold); color: #0a0a0a;
}
.ax-btn:hover { background: var(--accent-hover); color: #0a0a0a; }
.ax-btn.ghost {
  background: transparent; border: 1px solid var(--border); color: #fff;
}
.ax-btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

.ax-comments { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.ax-comments h2 { font-size: 1.2rem; }
.ax-comments .field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 650; font-size: 0.85rem; color: var(--text-secondary); }
.ax-comments textarea, .ax-comments input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px;
  background: #0f0f0f; color: var(--text-primary);
}
.ax-comments .comment {
  margin: 14px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.02);
}
.ax-comments .comment.replies { margin-left: 16px; background: transparent; }
.ax-comments .text-btn, .ax-comments .btn {
  background: transparent; border: 0; color: var(--gold); cursor: pointer; font-weight: 700; padding: 0; margin-right: 10px;
}
.ax-comments .btn-primary {
  display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px;
  border-radius: 999px; background: var(--gold); color: #0a0a0a; border: 0; font-weight: 700;
}

.ax-foot {
  border-top: 1px solid var(--border);
  background: var(--background-secondary);
  padding: 48px 24px;
}
.ax-foot-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.ax-foot strong { color: #fff; display: block; margin-bottom: 8px; }

.ad-slot { margin: 16px 0; padding: 0; border: 0; background: transparent; }
.ad-slot-infeed, .ad-slot-inarticle { min-height: 0; }
.ad-slot-infeed .adsbygoogle, .ad-slot-inarticle .adsbygoogle { display: block; width: 100%; min-height: 0 !important; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.blog-ad-row:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
  margin: 0 !important;
  min-height: 0 !important;
}
