.books-hero {
      color: var(--color-text-main);
      border-color: #d9c3a3;
      background:
        radial-gradient(ellipse at 82% 0%, rgba(255, 247, 228, .7), transparent 55%),
        repeating-linear-gradient(4deg, rgba(150, 112, 76, .1) 0 1px, transparent 1px 19px),
        linear-gradient(135deg, #efe3cf, #e2d0b5);
    }

    .books-hero::after {
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 15px;
      content: "";
      background: linear-gradient(#c9a983, #b8956f);
      box-shadow: 0 -3px 8px rgba(120, 88, 58, .12);
    }

    .books-hero .eyebrow {
      color: var(--color-accent);
    }

    .books-hero .page-intro {
      color: var(--color-text-sub);
    }

    .view-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 22px;
      padding: 6px;
      border: 1px solid var(--color-border);
      border-radius: 999px;
      background: var(--color-surface);
      width: fit-content;
    }

    .view-tab {
      padding: 8px 15px;
      border: 0;
      border-radius: 999px;
      color: var(--color-text-sub);
      background: transparent;
      font-family: var(--font-mono);
      font-size: .69rem;
    }

    .view-tab.is-active {
      color: #fffaf0;
      background: #a98563;
      box-shadow: 0 3px 8px rgba(62, 38, 25, .18);
    }

    .shelf-wrap {
      position: relative;
      margin-bottom: 60px;
      padding: 28px 25px 20px;
      overflow: hidden;
      border: 1px solid #d9c3a3;
      border-radius: 16px;
      background:
        radial-gradient(ellipse at 75% 10%, rgba(255, 247, 228, .65), transparent 50%),
        repeating-linear-gradient(8deg, rgba(150, 112, 76, .09) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, #efe3cf, #e0cdb0);
      box-shadow: inset 0 0 24px rgba(150, 112, 76, .1), var(--shadow-soft);
    }

    .spine-row {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-width: max-content;
      min-height: 280px;
      gap: 7px;
      padding: 10px 8px 16px;
    }

    .book-spine {
      position: relative;
      display: flex;
      align-items: center;
      width: var(--w);
      height: var(--h);
      padding: 17px 8px 40px;
      border: 1px solid rgba(90, 66, 48, .25);
      border-radius: 4px 6px 2px 2px;
      color: #fffaf0;
      background: var(--book-color);
      text-shadow: 0 1px 2px rgba(60, 42, 30, .35);
      box-shadow:
        inset 4px 0 rgba(255, 255, 255, .09),
        inset -4px 0 rgba(32, 18, 12, .12),
        2px 3px 6px rgba(110, 80, 55, .18);
    }

    .book-spine::before,
    .book-spine::after {
      position: absolute;
      right: 4px;
      left: 4px;
      height: 1px;
      content: "";
      background: rgba(255, 250, 238, .5);
    }

    .book-spine::before { top: 12px; }
    .book-spine::after { bottom: 28px; }

    .spine-title {
      margin: auto;
      font-family: var(--font-title);
      font-size: .76rem;
      font-weight: 600;
      letter-spacing: .04em;
      line-height: 1.35;
      writing-mode: vertical-rl;
    }

    .spine-stars {
      position: absolute;
      right: 5px;
      bottom: 7px;
      left: 5px;
      overflow: hidden;
      color: #fff3d6;
      font-size: .48rem;
      text-align: center;
      text-shadow: 0 1px rgba(70, 50, 34, .4);
      white-space: nowrap;
    }

    .shelf-board {
      position: absolute;
      right: 0;
      bottom: 9px;
      left: 0;
      height: 17px;
      border-top: 1px solid #b08d69;
      background:
        repeating-linear-gradient(2deg, rgba(110, 80, 55, .12) 0 1px, transparent 1px 14px),
        linear-gradient(#c9a983, #b08d69);
      box-shadow: 0 6px 10px rgba(110, 80, 55, .18);
    }

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

    .book-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--color-border);
      border-radius: 8px 14px 14px 8px;
      background: var(--color-surface-pure);
      box-shadow: var(--shadow-card);
    }

    .book-cover {
      position: relative;
      display: grid;
      min-height: 210px;
      padding: 30px 27px;
      place-items: center;
      color: #fff8e9;
      background: var(--cover);
      box-shadow: inset 10px 0 12px rgba(80, 58, 40, .14);
      text-shadow: 0 1px 3px rgba(60, 42, 30, .3);
      text-align: center;
    }

    .book-cover::before {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 12px;
      width: 1px;
      content: "";
      background: rgba(255, 255, 255, .2);
      box-shadow: 3px 0 rgba(31, 17, 12, .13);
    }

    .book-cover::after {
      position: absolute;
      inset: 13px;
      content: "";
      border: 1px solid rgba(255, 239, 205, .33);
      pointer-events: none;
    }

    .book-cover h3 {
      position: relative;
      z-index: 1;
      margin: 0;
      font-family: var(--font-title);
      font-size: 1.18rem;
      line-height: 1.65;
    }

    .book-info {
      padding: 20px 21px 22px;
    }

    .book-author {
      margin: 0 0 10px;
      color: var(--color-text-muted);
      font-size: .76rem;
    }

    .book-memo {
      margin: 0;
      color: var(--color-text-sub);
      font-size: .86rem;
      line-height: 1.72;
    }

    .rating {
      display: block;
      margin-top: 14px;
      color: #9b6b27;
      font-size: .78rem;
      letter-spacing: .08em;
    }

    @media (max-width: 760px) {
      .view-tabs {
        max-width: 100%;
        overflow-x: auto;
        border-radius: 12px;
      }

      .view-tab {
        flex: 0 0 auto;
      }

      .shelf-wrap {
        margin-right: -16px;
        margin-bottom: 44px;
        padding-right: 16px;
        overflow-x: auto;
        border-radius: 14px 0 0 14px;
        scrollbar-color: rgba(150, 112, 76, .4) transparent;
      }

      .spine-row {
        justify-content: flex-start;
        padding-right: 25px;
      }

      .cover-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .book-cover {
        min-height: 175px;
        padding: 22px 16px;
      }

      .book-cover h3 {
        font-size: .94rem;
      }

      .book-info {
        padding: 16px;
      }
    }
