:root {
  --accent: #7C3AED;
  --gradient-start: #9333EA;
  --gradient-end: #6D28D9;
  --text-primary: #1F2333;
  --text-meta: #6B7280;
  --bg: #FFFFFF;
  --bg-soft: #F5F3FF;
  --border: #E9E5FA;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text-primary); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}
.btn:hover { text-decoration: none; }

.crumbs { font-size: 13px; color: var(--text-meta); padding: 20px 0 8px; }
.crumbs a { color: var(--text-meta); }
.crumbs span { margin: 0 6px; }

.story { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 16px 0 48px; align-items: start; }
.cover { border-radius: 20px; box-shadow: 0 24px 48px -16px rgba(109, 40, 217, 0.45); background: var(--bg-soft); width: 100%; }
.story h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 14px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: var(--bg-soft); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 24px; margin: 18px 0 24px; }
.facts dt { font-size: 12px; color: var(--text-meta); text-transform: uppercase; letter-spacing: 0.6px; }
.facts dd { font-weight: 700; }

.summary h2, .related h2 { font-size: 20px; margin: 8px 0 12px; }
.summary p { margin-bottom: 12px; color: #374151; }
.cta { background: var(--bg-soft); border-radius: 20px; padding: 28px; margin: 8px 0 40px; }
.cta h2 { font-size: 20px; margin-bottom: 6px; }
.cta p { color: var(--text-meta); margin-bottom: 16px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: #111827; color: #fff; padding: 10px 20px; border-radius: 12px; font-size: 13px;
}
.store-badge:hover { text-decoration: none; opacity: 0.92; }
.store-badge small { display: block; font-size: 10px; opacity: 0.7; }
.store-badge strong { font-size: 16px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; padding-bottom: 56px; }
.related-card { display: block; color: var(--text-primary); }
.related-card:hover { text-decoration: none; }
.related-card img { border-radius: 14px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-soft); margin-bottom: 10px; }
.related-card h3 { font-size: 15px; line-height: 1.35; }
.related-card p { font-size: 12.5px; color: var(--text-meta); }

footer { background: #111827; color: rgba(255,255,255,0.7); padding: 32px 0; font-size: 13px; }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: rgba(255,255,255,0.85); }

@media (max-width: 700px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .story { grid-template-columns: 1fr; gap: 24px; }
  .cover { max-width: 220px; margin: 0 auto; }
}
