/* Private / legal / admin pages — loaded only via pages.layout */

/* Legal pages */
.legal-page .legal-nav {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 0 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.legal-nav-link { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.legal-nav-link:hover, .legal-nav-link.is-current { color: var(--accent); }
.legal-nav-link.is-current { font-weight: 600; }
.legal-section { margin-bottom: 22px; }
.legal-section .h3 { margin-bottom: 8px; }
.legal-checkout-note { margin-top: 28px; }
.legal-checkout-note a { color: var(--accent); }

/* ---------- Lesson + pack pages (after free sign-up / purchase) ---------- */
.page { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: 32px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-title { font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.8px; }
.page-lede { font-size: var(--fs-base); line-height: 1.55; color: var(--muted); }
.page-head { display: flex; flex-direction: column; gap: 8px; }
.back { font-weight: 500; font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.list-card { padding-inline: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); }
.list-card li { border-bottom: 1px solid var(--line); }
.list-card li:last-child { border-bottom: 0; }
.list-card .song-row { border-bottom: 0; text-decoration: none; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--accentsoft); border: 1px solid var(--line); }
.player video, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--accent); font-weight: 500; font-size: var(--fs-sm); }
.player-empty .hv-play { width: 56px; height: 56px; }
.player-empty .hv-play img { width: 22px; height: 22px; }
.speed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.speed-label { font-weight: 600; font-size: var(--fs-sm); color: var(--muted); margin-right: 4px; }
.speed button { padding: 6px 14px; border: 0; border-radius: 100px; background: var(--alt); color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
.speed button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upsell { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 22px 20px; background: var(--alt); border-radius: 16px; }
.upsell-title { font-size: var(--fs-lg); letter-spacing: -0.44px; line-height: 1.22; }

/* ---------- Admin ---------- */
.admin { width: min(1100px, 100% - 40px); margin-inline: auto; padding-block: 32px 64px; display: flex; flex-direction: column; gap: 28px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 18px; background: var(--alt); border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--serif); font-weight: 600; font-variation-settings: "SOFT" 0, "WONK" 1; font-size: var(--fs-xl); letter-spacing: -0.6px; }
.stat span { font-size: var(--fs-sm); color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.admin table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.admin th, .admin td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin th { font-weight: 600; font-size: var(--fs-sm); color: var(--muted); background: var(--alt); }
.admin tr:last-child td { border-bottom: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-head a { font-weight: 600; font-size: var(--fs-sm); color: var(--accent); }
.empty { padding: 20px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Public song pages (/songs, /songs/:slug) ---------- */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--fs-sm); color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.song-public-page .song-native-hero {
  font-size: var(--fs-md); color: var(--accent); letter-spacing: -0.01em;
}
.song-native { display: block; font-size: var(--fs-sm); color: var(--muted); }
.song-about { display: flex; flex-direction: column; gap: 12px; }
.song-credits {
  margin: 0; padding: 14px 16px;
  background: var(--alt); border-radius: 12px;
  list-style: none; display: flex; flex-direction: column; gap: 6px;
  font-size: var(--fs-sm); color: var(--muted);
}
.tab-explainer-block {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 18px; background: var(--alt); border-radius: 16px;
}
.song-cta-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg);
}
.song-cta-card .link-accent { font-size: var(--fs-base); }
.song-others { display: flex; flex-direction: column; gap: 12px; }
.song-others-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.song-others-list a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-base);
}
.song-others-list a:hover { color: var(--accent); }
.song-row-public { text-decoration: none; color: inherit; }
.song-row-public:hover .song-title { color: var(--accent); }
.pill.song-vote { background: var(--alt); color: var(--accent); }
.song-faq { display: flex; flex-direction: column; gap: 8px; }
.song-faq .faq-list { display: flex; flex-direction: column; }
.song-group { display: flex; flex-direction: column; gap: 12px; }
.song-row h3.song-title {
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.song-faq .faq-item summary {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-weight: 600; font-size: var(--fs-base); line-height: 1.4; list-style: none;
}
.song-faq .faq-item summary h3 { flex: 1; min-width: 0; font: inherit; font-weight: 600; }
.song-faq .faq-item summary::-webkit-details-marker { display: none; }

@media (min-width: 900px) {
  .page { padding-block: 48px 96px; gap: 28px; }
  .page-title { font-size: var(--fs-hero); letter-spacing: -0.95px; }
  .list-card { padding-inline: 24px; }
  .upsell { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .song-cta-card { padding: 28px 32px; }
}
