/* v99: modern localized share sheet */
.book-card { scroll-margin-top: 110px; }
.book-card:target { border-color: rgba(217,119,87,.48); box-shadow: 0 0 0 3px rgba(217,119,87,.08); }
.book-card__title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:.8rem; }
.book-card__title-row h2 { flex:1 1 auto; }
.book-card__share-wrap { position:relative; flex:0 0 auto; }
.book-card__share {
  min-height:2.25rem; padding:.42rem .78rem; border:1px solid var(--line); border-radius:999px;
  background:rgba(255,255,255,.72); color:var(--ink-soft); font:inherit; font-size:.78rem; font-weight:600;
  cursor:pointer; white-space:nowrap; box-shadow:0 1px 0 rgba(35,39,31,.03);
}
.book-card__share:hover,.book-card__share:focus-visible { border-color:rgba(35,39,31,.28); color:var(--ink); background:#fff; }
.book-card__share:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.book-card__share-menu {
  position:absolute; z-index:30; right:0; top:calc(100% + .55rem); width:20rem; padding:1rem;
  border:1px solid rgba(35,39,31,.11); border-radius:1.15rem; background:rgba(255,255,255,.98);
  box-shadow:0 18px 50px rgba(24,27,22,.14); backdrop-filter:blur(16px);
}
.book-card__share-menu[hidden] { display:none !important; }
.book-card__share-heading { margin:0 0 .85rem; font-size:.82rem; font-weight:650; color:var(--ink); }
.book-card__share-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.55rem; }
.book-card__share-option {
  min-width:0; border:0; background:transparent; color:var(--ink); display:flex; flex-direction:column; align-items:center;
  gap:.42rem; padding:.25rem .08rem; border-radius:.8rem; font:inherit; cursor:pointer;
}
.book-card__share-option:hover,.book-card__share-option:focus-visible { background:rgba(35,39,31,.04); outline:none; }
.book-card__share-icon {
  width:2.85rem; height:2.85rem; border-radius:50%; display:grid; place-items:center; background:#f3f1ec; color:#34382f;
  transition:transform .16s ease, box-shadow .16s ease;
}
.book-card__share-option:hover .book-card__share-icon { transform:translateY(-1px); box-shadow:0 5px 12px rgba(25,28,23,.09); }
.book-card__share-icon svg { width:1.28rem; height:1.28rem; fill:currentColor; }
.book-card__share-option--whatsapp .book-card__share-icon { background:#e8f8ee; color:#1f9d55; }
.book-card__share-option--telegram .book-card__share-icon { background:#e8f5fb; color:#2489bb; }
.book-card__share-option--email .book-card__share-icon { background:#f2eefc; color:#6652a3; }
.book-card__share-option--copy .book-card__share-icon { background:#f5f1e8; color:#826c45; }
.book-card__share-option--more .book-card__share-icon { background:#efefed; color:#5f625b; }
.book-card__share-option.is-copied .book-card__share-icon { background:#e9f6eb; color:#397a45; }
.book-card__share-label { font-size:.69rem; line-height:1.15; color:var(--ink-soft); text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

@media (max-width:640px) {
  .book-card__share { font-size:.74rem; padding:.4rem .66rem; }
  .book-card__share-menu {
    position:fixed; left:.75rem; right:.75rem; top:auto; bottom:.75rem; width:auto; padding:1.05rem 1rem 1rem;
    border-radius:1.3rem; box-shadow:0 22px 70px rgba(20,23,19,.2);
  }
  .book-card__share-heading { font-size:.9rem; margin-bottom:.95rem; }
  .book-card__share-grid { gap:.45rem; }
  .book-card__share-icon { width:3.15rem; height:3.15rem; }
  .book-card__share-icon svg { width:1.38rem; height:1.38rem; }
  .book-card__share-label { font-size:.72rem; }
}
@media (max-width:390px) {
  .book-card__share-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:.25rem; }
  .book-card__share-icon { width:2.85rem; height:2.85rem; }
  .book-card__share-label { font-size:.64rem; }
}
