/* ============================================================
   MODULE CSS 11 · sheet-detail.css — Trang riêng từng bài sheet
   (module JS 15) và liên kết từ thẻ sheet tới trang riêng.
   Chỉ dùng token của design system (01-base.css): một màu nhấn
   xanh lá, thẻ trắng bo tròn 12px, nút pill, font Be Vietnam Pro.
   Các thành phần trong trang riêng tái dùng class của thẻ sheet
   (sheet-card, sheet-preview, sheet-body, key-btn, buy-btn,
   video-toggle, sheet-video...) nên chỉ khai báo phần khác biệt:
   bố cục lớn hơn, tiêu đề h1 và hàng điều hướng bài trước/sau.
   ============================================================ */

/* ---------- Liên kết trên thẻ sheet (tab Sheet nhạc) ---------- */
.sheet-body h4 .sheet-page-link { color: inherit; text-decoration: none; }
.sheet-body h4 .sheet-page-link:hover { color: var(--accent); text-decoration: underline; }
.sheet-preview .pv-link { display: block; height: 100%; }
.sheet-body .s-page { margin: 8px 0 0; font-size: 0.82rem; }
.sheet-body .s-page a { font-weight: 600; text-decoration: none; }
.sheet-body .s-page a:hover { text-decoration: underline; }

/* ---------- Trang riêng ---------- */
.sd-back { margin: 0 0 18px; }
.sd-back a { font-weight: 600; text-decoration: none; }
.sd-back a:hover { text-decoration: underline; }

.sd-card { max-width: 920px; margin: 0 auto; }
.sd-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sd-preview { height: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
.sd-body { padding: 22px 24px 24px; gap: 7px; }
.sd-body h1 { margin: 0; font-size: var(--text-h3); font-weight: 800; line-height: 1.3; }
.sd-body .s-sub { font-size: 0.95rem; white-space: normal; }
.sd-body .s-author { font-size: 0.95rem; white-space: normal; overflow: visible; text-overflow: clip; }
.sd-body .s-meta { font-size: 0.9rem; }
.sd-body .key-pick { margin-top: 10px; }
.sd-body .sd-note { margin-top: 14px; }

/* Bài trước / bài tiếp theo trong cùng tập */
.sd-nav { max-width: 920px; margin: 20px auto 0; display: flex; justify-content: space-between; gap: 12px; }
.sd-nav-link {
  flex: 1 1 0; max-width: 49%; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow); padding: 12px 16px; text-decoration: none;
}
.sd-nav-link span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.sd-nav-link b { color: var(--ink); font-size: 0.95rem; line-height: 1.35; }
.sd-nav-link:hover { border-color: var(--accent); }
.sd-nav-link:hover b { color: var(--accent); }
.sd-nav-link.next { text-align: right; margin-left: auto; }
.sd-nav-spacer { flex: 1 1 0; max-width: 49%; }

@media (max-width: 720px) {
  .sd-top { grid-template-columns: 1fr; }
  .sd-preview { min-height: 0; height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sd-body { padding: 18px 18px 20px; }
  .sd-nav { flex-direction: column; }
  .sd-nav-link, .sd-nav-spacer { max-width: none; }
  .sd-nav-link.next { text-align: left; margin-left: 0; }
  .sd-nav-spacer { display: none; }
}
