/* =============================================================
   blankplusblank — Ghost theme screen styles
   Dark-first. Synthetic palette. Functional technical type.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter+Tight:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* ---------- CORE PALETTE ---------- */
  --bpb-black:      #07070a;
  --bpb-void:       #0d0d12;
  --bpb-ink:        #141420;
  --bpb-graphite:   #1c1c2a;
  --bpb-slate:      #2a2a3c;
  --bpb-steel:      #4a4a62;
  --bpb-mist:       #8a8aa8;
  --bpb-bone:       #d8d8e8;
  --bpb-white:      #ffffff;

  /* ---------- SIGNAL NEONS ---------- */
  --bpb-cyan:       #00e5ff;
  --bpb-cyan-soft:  #5ef0ff;
  --bpb-cyan-deep:  #0088aa;
  --bpb-magenta:    #ff2bd6;
  --bpb-magenta-soft:#ff7ce8;
  --bpb-magenta-deep:#aa0088;
  --bpb-lime:       #b7ff5e;
  --bpb-amber:      #ffb84a;

  /* ---------- SEMANTIC ---------- */
  --bg:             var(--bpb-black);
  --bg-raised:      var(--bpb-ink);
  --bg-sunken:      var(--bpb-void);
  --surface:        var(--bpb-graphite);
  --border:         var(--bpb-slate);
  --border-strong:  var(--bpb-steel);
  --fg:             var(--bpb-bone);
  --fg-dim:         var(--bpb-mist);
  --fg-muted:       var(--bpb-steel);
  --fg-bright:      var(--bpb-white);
  --accent:         var(--bpb-cyan);
  --accent-2:       var(--bpb-magenta);
  --accent-3:       var(--bpb-white);
  --focus:          var(--bpb-cyan);
  --link:           var(--bpb-cyan);
  --link-hover:     var(--bpb-magenta);
  --live:           var(--bpb-lime);
  --dormant:        var(--bpb-amber);
  --danger:         var(--bpb-magenta);

  /* ---------- TYPE ---------- */
  --font-mono:      'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans:      'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-display:   'Space Grotesk', 'Inter Tight', sans-serif;

  --fs-2xs: 10px; --fs-xs: 11px; --fs-sm: 13px; --fs-md: 15px;
  --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 36px;
  --fs-4xl: 48px; --fs-5xl: 64px; --fs-6xl: 88px;

  --lh-tight: 1.1; --lh-snug: 1.25; --lh-body: 1.5; --lh-loose: 1.7;
  --tracking-tight: -0.02em; --tracking-snug: -0.01em;
  --tracking-normal: 0; --tracking-wide: 0.04em; --tracking-wider: 0.12em;

  /* ---------- SPACING ---------- */
  --s-0:0; --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px;
  --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px; --s-12:48px;
  --s-16:64px; --s-20:80px; --s-24:96px;

  /* ---------- RADII ---------- */
  --r-0:0; --r-1:2px; --r-2:4px; --r-3:6px; --r-4:10px;
  --r-input: 6px; --r-pill: 999px;

  --bw-hairline: 1px; --bw-thick: 2px;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.03), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 2px 0 rgba(255,255,255,0.04), 0 8px 20px rgba(0,0,0,0.5);
  --shadow-3: 0 2px 0 rgba(255,255,255,0.05), 0 20px 50px rgba(0,0,0,0.7);
  --glow-cyan:    0 0 0 1px rgba(0,229,255,0.35), 0 0 24px rgba(0,229,255,0.35);
  --glow-magenta: 0 0 0 1px rgba(255,43,214,0.35), 0 0 24px rgba(255,43,214,0.35);
  --glow-white:   0 0 0 1px rgba(255,255,255,0.35), 0 0 24px rgba(255,255,255,0.25);

  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap:   cubic-bezier(0.5, 0, 0, 1);
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 400ms;

  --grid-unit: 8px;
  --content-max: 1440px;
  --content-narrow: 720px;
}

/* ============================================================= */
/* BASE                                                          */
/* ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; padding: 0; }
img, video { max-width: 100%; display: block; }

::selection { background: var(--bpb-magenta); color: var(--bpb-white); }
:focus-visible { outline: none; box-shadow: var(--glow-cyan); border-radius: var(--r-2); }

/* ============================================================= */
/* TYPOGRAPHY UTILITIES                                          */
/* ============================================================= */

.bpb-display { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-6xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--fg-bright); }
.bpb-h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); color: var(--fg-bright); }
.bpb-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); line-height: var(--lh-snug); letter-spacing: var(--tracking-snug); color: var(--fg-bright); }
.bpb-h3 { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-lg); line-height: var(--lh-snug); color: var(--fg-bright); }
.bpb-body { font-family: var(--font-sans); font-size: var(--fs-md); line-height: var(--lh-body); color: var(--fg); }
.bpb-body-sm { font-family: var(--font-sans); font-size: var(--fs-sm); line-height: var(--lh-body); color: var(--fg-dim); }
.bpb-caption { font-family: var(--font-mono); font-size: var(--fs-xs); line-height: var(--lh-snug); color: var(--fg-dim); letter-spacing: var(--tracking-wide); }
.bpb-eyebrow { font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 1; color: var(--fg-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; }
.bpb-eyebrow-signal { font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 1; color: var(--accent); letter-spacing: var(--tracking-wider); text-transform: uppercase; }
.bpb-mono { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--fg); }
code, .bpb-code { font-family: var(--font-mono); font-size: 0.92em; color: var(--bpb-cyan); background: rgba(0, 229, 255, 0.08); padding: 1px 6px; border-radius: var(--r-1); border: 1px solid rgba(0, 229, 255, 0.18); }
.bpb-link { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(0, 229, 255, 0.35); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.bpb-link:hover { color: var(--link-hover); border-bottom-color: var(--link-hover); }

/* The mark — _+_ */
.bpb-mark {
  font-family: var(--font-mono); font-weight: 700;
  color: #ffffff;
  -webkit-text-stroke: 1px var(--bpb-cyan);
  paint-order: stroke fill;
  text-shadow:
    0 0 15px rgba(255, 43, 214, 0.7),
    0 0 32px rgba(255, 43, 214, 0.45),
    0 0 64px rgba(255, 43, 214, 0.25);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Scanline utility */
.bpb-scanlines { position: relative; }
.bpb-scanlines::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ============================================================= */
/* NAV                                                           */
/* ============================================================= */

.bpb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  display: flex; align-items: center; padding: 0 24px;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.bpb-nav__mark { display: flex; align-items: center; padding: 4px 10px 4px 0; }
.bpb-nav__mark .bpb-mark { font-size: 16px; }
.bpb-nav__links {
  display: flex; gap: 22px; margin-left: 24px; flex: 1;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  list-style: none; padding: 0; margin-top: 0; margin-bottom: 0;
}
.bpb-nav__link {
  color: var(--fg-dim);
  transition: color var(--dur-fast) var(--ease-out);
}
.bpb-nav__link:hover { color: var(--bpb-magenta); }
.bpb-nav__link.is-active { color: var(--fg-bright); }
.bpb-nav__meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--fg-muted);
}
.bpb-nav__subscribe {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bpb-cyan);
  padding: 6px 10px; border: 1px solid var(--border-strong);
  border-radius: var(--r-1); margin-left: 16px;
  transition: all var(--dur-fast) var(--ease-out);
}
.bpb-nav__subscribe:hover { border-color: var(--bpb-cyan); box-shadow: var(--glow-cyan); }

/* ============================================================= */
/* HERO                                                          */
/* ============================================================= */

.bpb-hero {
  position: relative; min-height: 520px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.bpb-hero__media { position: absolute; inset: 0; }
.bpb-hero__video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.bpb-hero__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.bpb-hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,10,0.35) 0%, rgba(7,7,10,0.75) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,7,10,0.85) 0%, rgba(7,7,10,0.35) 60%, rgba(7,7,10,0.55) 100%);
}
.bpb-hero__scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.bpb-hero__content {
  position: relative; max-width: var(--content-max);
  padding: 120px 48px 80px;
}
.bpb-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 28px;
}
.bpb-hero__glyph { color: var(--bpb-cyan); }
.bpb-hero__sep { opacity: 0.5; }
.bpb-hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--fg-bright); margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.bpb-hero__title--caret::after {
  content: "";
  display: inline-block;
  width: 0.6ch; height: 0.85em;
  background: var(--bpb-cyan);
  margin-left: 0.08em;
  transform: translateY(0.08em);
  box-shadow: 0 0 16px rgba(0,229,255,0.5);
  animation: bpb-caret 1.1s steps(2) infinite;
}
@keyframes bpb-caret { 50% { opacity: 0; } }
.bpb-hero__sub { font-size: 17px; line-height: 1.55; color: var(--fg); max-width: 58ch; margin: 24px 0 0; }
.bpb-hero__meta { margin-top: 24px; display: inline-flex; align-items: center; gap: 14px; }
.bpb-hero__cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bpb-cyan); }

/* ============================================================= */
/* TICKER                                                        */
/* ============================================================= */

.bpb-ticker {
  margin-top: 36px; padding: 10px 14px;
  background: rgba(7,7,10,0.65);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  max-width: 720px; min-width: 420px;
}
.bpb-ticker__label { color: var(--bpb-cyan); letter-spacing: 0.16em; font-size: 10px; text-transform: uppercase; }
.bpb-ticker__text { color: var(--fg-bright); white-space: nowrap; overflow: hidden; }
.bpb-ticker__caret { color: var(--bpb-magenta); animation: bpb-caret 0.8s steps(2) infinite; }

/* ============================================================= */
/* MAIN LAYOUT                                                   */
/* ============================================================= */

.bpb-main {
  max-width: var(--content-max); margin: 0 auto;
  padding: 48px 48px 160px;
}
.bpb-main--narrow { max-width: var(--content-narrow); padding: 40px 48px 120px; }

.bpb-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.bpb-section-head:first-child { margin-top: 0; }
.bpb-section-head__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em; color: var(--fg-bright);
}
.bpb-section-head__eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted);
}
.bpb-section-head__link {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--bpb-cyan);
  border-bottom: 1px solid rgba(0,229,255,0.35);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bpb-section-head__link:hover { color: var(--bpb-magenta); border-color: var(--bpb-magenta); }

/* ============================================================= */
/* GRID                                                          */
/* ============================================================= */

.bpb-grid { display: grid; gap: 1px; background: var(--border); margin-top: 1px; }
.bpb-grid--dense { grid-template-columns: repeat(4, 1fr); }
.bpb-grid--wide  { grid-template-columns: repeat(3, 1fr); }
.bpb-grid--2     { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .bpb-grid--dense { grid-template-columns: repeat(2, 1fr); }
  .bpb-grid--wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bpb-grid--dense, .bpb-grid--wide, .bpb-grid--2 { grid-template-columns: 1fr; }
  .bpb-main { padding: 32px 20px 80px; }
  .bpb-main--narrow { padding: 32px 20px 80px; }
  .bpb-hero__content { padding: 96px 20px 56px; }
  .bpb-nav { padding: 0 16px; }
  .bpb-nav__links { gap: 14px; margin-left: 12px; overflow-x: auto; scrollbar-width: none; }
  .bpb-nav__links::-webkit-scrollbar { display: none; }
  .bpb-nav__meta { display: none; }
  .bpb-ticker { min-width: 0; max-width: 100%; }
}

/* ============================================================= */
/* CARD                                                          */
/* ============================================================= */

.bpb-card {
  position: relative;
  background: var(--bpb-black);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background var(--dur-base) var(--ease-out);
  cursor: pointer;
  min-height: 220px;
  outline: none;
}
.bpb-card:hover { background: #0b0b10; }
.bpb-card__edge {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.bpb-card:hover .bpb-card__edge { background: var(--bpb-cyan); box-shadow: 0 0 14px rgba(0,229,255,0.55); }
.bpb-card.is-live .bpb-card__edge { background: var(--bpb-lime); box-shadow: 0 0 14px rgba(183,255,94,0.6); }

.bpb-card__eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.bpb-card__glyph { color: var(--bpb-cyan); }
.bpb-card__sep { opacity: 0.6; }

.bpb-card__cover {
  width: 100%; aspect-ratio: 16/10;
  background: var(--bpb-void) center/cover no-repeat;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.bpb-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.bpb-card:hover .bpb-card__cover img { transform: scale(1.02); }

.bpb-card__live {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(7,7,10,0.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(183,255,94,0.45);
  color: var(--bpb-lime);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.16em; font-weight: 700;
}
.bpb-card__live-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--bpb-lime); box-shadow: 0 0 8px var(--bpb-lime);
  animation: bpb-pulse 1.4s ease-in-out infinite;
}
@keyframes bpb-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.bpb-card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg-bright); margin: 0;
  text-wrap: pretty;
}
.bpb-card__blurb { font-size: 13px; line-height: 1.5; color: var(--fg-dim); margin: 0; text-wrap: pretty; }
.bpb-card__meta {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.bpb-card__metaline { color: var(--fg-muted); }

/* ============================================================= */
/* TAG                                                           */
/* ============================================================= */

.bpb-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
}
.bpb-tag--live    { color: var(--bpb-lime);    border-color: rgba(183,255,94,0.45); background: rgba(183,255,94,0.08); }
.bpb-tag--accent  { color: var(--bpb-cyan);    border-color: rgba(0,229,255,0.45);  background: rgba(0,229,255,0.08); }
.bpb-tag--magenta { color: var(--bpb-magenta); border-color: rgba(255,43,214,0.45); background: rgba(255,43,214,0.08); }
.bpb-tag--dormant { color: var(--bpb-amber);   border-color: rgba(255,184,74,0.45); background: rgba(255,184,74,0.08); }
.bpb-tag--muted   { color: var(--fg-muted); }
.bpb-tag--fg      { color: var(--fg); }

/* ============================================================= */
/* DOMAIN VIEW (tag.hbs / author.hbs)                            */
/* ============================================================= */

.bpb-domain { padding-top: 24px; }
.bpb-domain__head {
  padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.bpb-domain__eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--fg-muted);
  margin-bottom: 14px; text-transform: uppercase;
}
.bpb-domain__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 64px; line-height: 1.02; letter-spacing: -0.03em;
  color: var(--fg-bright); margin: 0;
}
.bpb-domain__blurb {
  font-size: 16px; line-height: 1.5; color: var(--fg-dim);
  max-width: 62ch; margin: 16px 0 0;
}
.bpb-domain__section { margin-top: 40px; }
.bpb-domain__section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.bpb-domain__section-title { color: var(--fg-bright); }
.bpb-domain__section-count { color: var(--fg-muted); }

@media (max-width: 640px) {
  .bpb-domain__title { font-size: 40px; }
}

/* ============================================================= */
/* NOW PLAYING                                                   */
/* ============================================================= */

.bpb-nowplaying {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px;
  background: rgba(13,13,18,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,229,255,0.18), 0 12px 40px rgba(0,0,0,0.6);
}
.bpb-nowplaying__btn {
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 2px; color: var(--bpb-cyan);
  font-family: var(--font-mono); font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.bpb-nowplaying__btn:hover { border-color: var(--bpb-cyan); box-shadow: var(--glow-cyan); }
.bpb-nowplaying__meta { min-width: 180px; max-width: 220px; }
.bpb-nowplaying__eyebrow { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--fg-muted); text-transform: uppercase; }
.bpb-nowplaying__title { font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--fg-bright); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpb-nowplaying__album { font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); }
.bpb-nowplaying__wave { display: flex; align-items: center; gap: 2px; width: 96px; height: 28px; }
.bpb-wave__bar { flex: 1; height: 6px; background: var(--bpb-cyan); opacity: 0.8; border-radius: 1px; }
.bpb-wave__bar.is-playing { animation: bpb-wave 900ms ease-in-out infinite; }
@keyframes bpb-wave {
  0%, 100% { height: 3px; opacity: 0.5; }
  50% { height: 22px; opacity: 1; box-shadow: 0 0 6px rgba(0,229,255,0.7); }
}
.bpb-nowplaying__time { font-family: var(--font-mono); font-size: 10px; color: var(--fg-bright); letter-spacing: 0.06em; min-width: 70px; text-align: right; }
.bpb-nowplaying__dash { color: var(--fg-muted); margin: 0 4px; }
.bpb-nowplaying__dur { color: var(--fg-dim); }
.bpb-nowplaying__close { background: transparent; border: none; color: var(--fg-muted); font-size: 18px; line-height: 1; padding: 0 4px; transition: color var(--dur-fast) var(--ease-out); }
.bpb-nowplaying__close:hover { color: var(--bpb-magenta); }

@media (max-width: 640px) { .bpb-nowplaying { display: none; } }

/* ============================================================= */
/* ENTRY / POST                                                  */
/* ============================================================= */

.bpb-entry {
  max-width: var(--content-narrow);
  margin: 0 auto; padding: 96px 48px 120px;
  font-family: var(--font-sans);
}
.bpb-entry__back {
  background: transparent; border: none;
  color: var(--fg-muted); font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; padding: 0;
  transition: color var(--dur-fast) var(--ease-out);
  text-transform: lowercase; cursor: pointer;
}
.bpb-entry__back:hover { color: var(--bpb-cyan); }
.bpb-entry__eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted); margin-top: 36px;
}
.bpb-entry__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 56px; line-height: 1.02; letter-spacing: -0.03em;
  color: var(--fg-bright); margin: 12px 0 16px;
  text-wrap: balance;
}
.bpb-entry__meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-muted); letter-spacing: 0.08em;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.bpb-entry__dot { opacity: 0.6; }
.bpb-entry__feature {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.bpb-entry__content {
  font-size: 17px; line-height: 1.62; color: var(--fg);
}
.bpb-entry__content > p { margin: 0 0 20px; text-wrap: pretty; }
.bpb-entry__content > h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg-bright); margin: 48px 0 16px;
}
.bpb-entry__content > h3 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 20px; line-height: 1.25; color: var(--fg-bright);
  margin: 36px 0 12px;
}
.bpb-entry__content > h4 {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted); margin: 32px 0 8px;
}
.bpb-entry__content a {
  color: var(--bpb-cyan);
  border-bottom: 1px solid rgba(0,229,255,0.35);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bpb-entry__content a:hover { color: var(--bpb-magenta); border-color: var(--bpb-magenta); }
.bpb-entry__content blockquote {
  margin: 24px 0; padding: 8px 20px;
  border-left: 2px solid var(--bpb-cyan);
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; line-height: 1.4; color: var(--fg-bright);
  background: rgba(0, 229, 255, 0.03);
}
.bpb-entry__content ul, .bpb-entry__content ol { padding-left: 24px; margin: 0 0 20px; }
.bpb-entry__content li { margin-bottom: 6px; }
.bpb-entry__content ul > li::marker { color: var(--bpb-cyan); }
.bpb-entry__content pre {
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: var(--r-2); padding: 16px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
  color: var(--fg); overflow-x: auto; margin: 0 0 20px;
}
.bpb-entry__content pre code { background: none; border: none; padding: 0; color: inherit; }
.bpb-entry__content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.bpb-entry__content img {
  border: 1px solid var(--border); margin: 16px 0;
  width: 100%; height: auto;
}
.bpb-entry__content figure { margin: 32px 0; }
.bpb-entry__content figure img { margin: 0; }
.bpb-entry__content figcaption {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-muted); letter-spacing: 0.06em;
  margin-top: 8px; text-align: center;
}
.bpb-entry__content table {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  font-size: 14px;
}
.bpb-entry__content th, .bpb-entry__content td {
  border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
.bpb-entry__content th {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted); background: var(--bg-sunken);
}

@media (max-width: 640px) {
  .bpb-entry { padding: 72px 20px 80px; }
  .bpb-entry__title { font-size: 36px; }
  .bpb-entry__content { font-size: 16px; }
}

/* Ghost Koenig cards */
.kg-width-wide { width: 120%; margin-left: -10%; }
.kg-width-full { width: 100vw; margin-left: calc(50% - 50vw); }
.kg-bookmark-card {
  display: flex; border: 1px solid var(--border); border-radius: var(--r-2);
  overflow: hidden; margin: 24px 0; background: var(--bg-raised);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur-base) var(--ease-out);
}
.kg-bookmark-card:hover { border-color: var(--bpb-cyan); }
.kg-bookmark-content { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.kg-bookmark-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg-bright); }
.kg-bookmark-description { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.kg-bookmark-metadata { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.06em; margin-top: auto; display: flex; gap: 8px; align-items: center; }
.kg-bookmark-thumbnail img { width: 180px; height: 100%; object-fit: cover; }
.kg-callout-card {
  border: 1px solid var(--border); border-left: 2px solid var(--bpb-cyan);
  padding: 16px 20px; margin: 24px 0; border-radius: var(--r-2);
  background: rgba(0, 229, 255, 0.03);
  display: flex; gap: 12px;
}
.kg-callout-emoji { flex-shrink: 0; }
.kg-toggle-card { border: 1px solid var(--border); border-radius: var(--r-2); padding: 16px 20px; margin: 24px 0; }
.kg-toggle-heading-text { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg-bright); }
.kg-file-card, .kg-product-card, .kg-header-card { margin: 24px 0; }

/* ============================================================= */
/* PAGINATION                                                    */
/* ============================================================= */

.bpb-pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.bpb-pagination a {
  color: var(--bpb-cyan); border-bottom: 1px solid rgba(0,229,255,0.35);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.bpb-pagination a:hover { color: var(--bpb-magenta); border-color: var(--bpb-magenta); }
.bpb-pagination__state { color: var(--fg-muted); }

/* ============================================================= */
/* FOOTER                                                        */
/* ============================================================= */

.bpb-footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px 48px;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.08em;
}
.bpb-footer__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bpb-footer__row--dim { color: var(--fg-muted); }
.bpb-footer__sep { opacity: 0.5; }
.bpb-footer a { color: var(--fg-dim); transition: color var(--dur-fast) var(--ease-out); }
.bpb-footer a:hover { color: var(--bpb-cyan); }
.bpb-footer__socials { display: flex; gap: 14px; margin-left: auto; text-transform: uppercase; letter-spacing: 0.12em; }

@media (max-width: 640px) {
  .bpb-footer { padding: 32px 20px 40px; }
  .bpb-footer__socials { margin-left: 0; }
}

/* ============================================================= */
/* FORMS / SUBSCRIBE                                             */
/* ============================================================= */

.bpb-form { display: flex; gap: 8px; max-width: 420px; margin-top: 16px; }
.bpb-input {
  flex: 1; background: var(--bg-sunken); color: var(--fg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  padding: 10px 12px; font-family: var(--font-mono); font-size: 13px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.bpb-input:focus { outline: none; border-color: var(--bpb-cyan); box-shadow: var(--glow-cyan); }
.bpb-button {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px; border-radius: var(--r-2);
  border: 1px solid var(--bpb-cyan); background: transparent; color: var(--bpb-cyan);
  transition: all var(--dur-fast) var(--ease-out);
}
.bpb-button:hover { color: var(--bpb-magenta); border-color: var(--bpb-magenta); box-shadow: var(--glow-magenta); }
.bpb-button:active { transform: translateY(1px); }
.bpb-button--primary { background: var(--bpb-cyan); color: var(--bpb-black); }
.bpb-button--primary:hover { background: var(--bpb-magenta); color: var(--bpb-white); border-color: var(--bpb-magenta); }

/* ============================================================= */
/* ERROR                                                         */
/* ============================================================= */

.bpb-error {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 96px 24px;
}
.bpb-error__code {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; color: var(--bpb-magenta);
  text-transform: uppercase;
}
.bpb-error__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.02; letter-spacing: -0.03em;
  color: var(--fg-bright); margin: 16px 0;
  text-wrap: balance;
}
.bpb-error__msg { color: var(--fg-dim); max-width: 52ch; margin: 0 auto 24px; }

/* ============================================================= */
/* ANIMATION PREFERENCES                                         */
/* ============================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .bpb-hero__video { display: none; }
}
