:root {
  --bg: #0b0f17;
  --surface: #121824;
  --surface-2: #182132;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(245, 158, 11, 0.42);
  --text: #e6edf7;
  --muted: #9aa7bc;
  --accent: #f59e0b;
  --accent-2: #38bdf8;
  --radius: 14px;
  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.08), transparent 44%),
              radial-gradient(circle at 86% 6%, rgba(245, 158, 11, 0.08), transparent 40%),
              var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.08rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b0f17;
  font-weight: 900;
  font-size: 0.92rem;
}

.brand-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  text-decoration: none;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f17 !important;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.22);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-play:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  text-decoration: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.blog-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(24, 33, 50, 0.92), rgba(15, 21, 33, 0.96));
  border: 1px solid var(--border);
  margin-bottom: 36px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 10px;
}

.blog-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
}

.blog-hero p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--border-strong);
  color: #fef3c7;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.post-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.cat-badge {
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.32;
}

.post-card h2 a {
  color: #fff;
}

.post-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
  flex: 1;
}

.read-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
}

.article-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--muted);
}

.article-header h1 {
  margin: 8px 0 14px;
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}

.article-lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin: 0 0 18px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 0.86rem;
  color: var(--muted);
}

.byline strong {
  color: #fff;
}

.article-figure {
  margin: 24px 0;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.article-content h2 {
  margin: 34px 0 12px;
  font-size: 1.42rem;
  line-height: 1.28;
  color: #fff;
  letter-spacing: -0.01em;
}

.article-content h3 {
  margin: 24px 0 8px;
  font-size: 1.12rem;
  color: #f8fafc;
}

.article-content p {
  margin: 0 0 17px;
  color: #d6dfed;
  font-size: 1.01rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #d6dfed;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: var(--surface-2);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 5px;
}

.tip-box {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent);
}

.tip-box strong {
  display: block;
  color: #fcd34d;
  margin-bottom: 6px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tip-box p {
  margin: 0;
  font-size: 0.95rem;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.stat-table th,
.stat-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.stat-table th {
  background: var(--surface-2);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-table tr:last-child td {
  border-bottom: none;
}

.cta-banner {
  margin: 38px 0 28px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(56, 189, 248, 0.10));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-banner h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.18rem;
}

.cta-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.related-section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: #fff;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 13, 20, 0.9);
  padding: 32px 20px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 920px) {
  .blog-hero {
    grid-template-columns: 1fr;
  }
  .post-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-links {
    gap: 14px;
    font-size: 0.86rem;
  }
  .brand-sub {
    display: none;
  }
  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
