/* Styles for books.html — moved out of the markup verbatim. */
    /* ── HERO ── */
    .books-hero {
      padding: 6rem 2rem 3.5rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .books-hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
    .books-hero-orbs .orb { opacity: 0.11; }
    .books-hero-title {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 5vw, 4rem);
      color: var(--ink);
      line-height: 1.1;
      animation: fadeup 0.6s 0.2s both;
      margin-bottom: 0.75rem;
    }
    .books-hero-title .accent {
      color: var(--royal);
      -webkit-text-fill-color: var(--royal);
    }
    [data-theme="dark"] .books-hero-title {
      color: #ffffff;
      text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    [data-theme="dark"] .books-hero-title .accent {
      background: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .books-hero-sub {
      font-size: clamp(1rem, 2vw, 1.25rem);
      font-weight: 400;
      color: var(--text);
      max-width: 600px;
      margin: 0 auto;
      line-height: 1.6;
      animation: fadeup 0.6s 0.35s both;
    }
    [data-theme="dark"] .books-hero-sub {
      color: rgba(230, 225, 255, 0.95);
    }

    /* ── SERIES BLOCK ── */
    .series-block { margin-bottom: 5rem; }

    .series-header {
      margin-bottom: 2rem;
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .series-eyebrow { display: none; }
    .series-name {
      font-family: var(--font-display);
      font-size: clamp(1.5rem, 3vw, 2rem);
      color: var(--ink); line-height: 1.1;
    }
    .series-desc {
      font-size: 0.85rem; color: var(--text);
      opacity: 0.8;
      max-width: 440px; line-height: 1.7; font-weight: 300;
      text-align: right;
    }
    .series-cover {
      width: 80px; height: 120px; object-fit: cover;
      border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      background: var(--surface);
    }
    @media (max-width: 600px) {
      .series-header { flex-direction: column; align-items: flex-start; }
      .series-desc { text-align: left; }
      .books-hero { padding: 4rem 1.25rem 2rem; }
      .book-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
      .book-card { border-radius: 14px; }
      .book-body { padding: 1rem; }
    }

    /* ── BOOK GRID ── */
    .book-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 1.5rem;
    }

    /* ── BOOK CARD ── */
    .book-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      overflow: hidden;
      display: flex; flex-direction: column;
      transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
      position: relative;
    }
    .book-card::before {
      content: ''; position: absolute; inset: 0;
      border-radius: 20px;
      background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.07), transparent 60%);
      opacity: 0; transition: opacity 0.3s; pointer-events: none;
    }
    .book-card:hover {
      transform: translateY(-8px);
      border-color: var(--border2);
      box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    }
    .book-card:hover::before { opacity: 1; }

    .book-cover-wrap {
      aspect-ratio: 2/3; overflow: hidden;
      background: linear-gradient(160deg, #1a0a3d, #0f1a3a);
      position: relative; flex-shrink: 0;
    }
    .book-cover-wrap img {
      width: 100%; height: 100%; object-fit: cover;
      display: block; transition: transform 0.5s ease;
    }
    .book-card:hover .book-cover-wrap img { transform: scale(1.04); }
    .book-cover-placeholder {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      font-size: 4rem; position: relative;
      background: linear-gradient(160deg, #1a0a3d, #0f1a3a);
    }
    .book-cover-placeholder::before {
      content: ''; position: absolute; inset: 0;
      background: radial-gradient(ellipse at 30% 30%, rgba(124,58,237,0.28), transparent 60%);
    }
    .book-cover-placeholder span { position: relative; z-index: 1; }

    .book-body {
      padding: 1.1rem; flex: 1;
      display: flex; flex-direction: column; gap: 0.4rem;
    }
    .book-volume {
      font-size: 0.63rem; font-weight: 700;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--royal-light);
    }
    .book-title {
      font-family: var(--font-display);
      font-size: 1rem; color: var(--ink); line-height: 1.25;
    }
    .book-desc {
      font-size: 0.78rem; color: rgba(212,200,240,0.45);
      line-height: 1.65; flex: 1;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .book-tags {
      display: flex; flex-wrap: wrap; gap: 0.3rem;
      margin-top: 0.25rem;
      max-height: 50px;
      overflow: hidden;
      position: relative;
    }
    .book-tag {
      font-size: 0.6rem; font-weight: 700;
      letter-spacing: 0.07em; text-transform: uppercase;
      padding: 0.18rem 0.5rem; border-radius: 5px;
      background: rgba(124,58,237,0.1);
      color: var(--royal-light);
      border: 1px solid rgba(124,58,237,0.18);
      flex-shrink: 0;
    }
    .book-platforms {
      display: flex; flex-wrap: wrap; gap: 0.4rem;
      padding-top: 0.6rem;
      border-top: 1px solid rgba(124,58,237,0.1);
      margin-top: 0.25rem;
    }
    .plat-btn {
      font-size: 0.65rem; font-weight: 700;
      letter-spacing: 0.06em;
      padding: 0.22rem 0.65rem; border-radius: 999px;
      text-decoration: none; border: 1.5px solid;
      transition: all 0.18s; white-space: nowrap;
    }
    .plat-btn.rr  { color: #f59e0b; border-color: rgba(245,158,11,0.4); }
    .plat-btn.sh  { color: #a78bfa; border-color: rgba(167,139,250,0.4); }
    .plat-btn.wp  { color: #fb923c; border-color: rgba(251,146,60,0.4); }
    .plat-btn.kdp { color: #FF9900; border-color: rgba(255,153,0,0.4); }
    .plat-btn.other { color: var(--muted); border-color: var(--border); }
    .plat-btn:hover { opacity: 0.72; transform: scale(1.05); }
    .no-platforms {
      font-size: 0.72rem; color: var(--muted);
      font-style: italic;
    }

    /* ── STANDALONE DIVIDER ── */
    .standalone-header {
      margin: 4rem 0 2rem;
      padding-bottom: 1.25rem;
      border-bottom: 1px solid var(--border);
    }
    .standalone-eyebrow { display: none; }
    .standalone-title {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 2.5vw, 1.8rem);
      color: var(--ink);
    }

    /* ── EMPTY / LOADING ── */
    .books-loading {
      text-align: center; padding: 5rem 2rem;
      color: var(--muted); font-size: 0.9rem;
    }
    .books-loading-dots::after {
      content: '...';
      animation: dots 1.2s steps(4, end) infinite;
    }
    @keyframes dots {
      0%,20%  { content: '.'; }
      40%     { content: '..'; }
      60%,100%{ content: '...'; }
    }

    /* ── REVEAL ── */
    .reveal {
      opacity: 0; transform: translateY(22px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-d1 { transition-delay: 0.05s; }
    .reveal-d2 { transition-delay: 0.12s; }
    .reveal-d3 { transition-delay: 0.19s; }
    .reveal-d4 { transition-delay: 0.26s; }

    @keyframes fadeup {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  