/* The lyrics pop-out panel, and the lyrics text it shares with the Writing ▸
   Lyrics pages. Colors fall back to the site plugin's --rd-* tokens. */

.rd73-lyrics-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 99992;
  width: min(420px, 100vw); display: flex; flex-direction: column;
  background: rgba(12, 10, 9, .98); border-left: 1px solid rgba(212, 160, 23, .45);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .55);
  transform: translateX(104%); transition: transform .26s ease, bottom .25s;
}
.rd73-lyrics-panel.is-open { transform: none; }
.rd73-lyrics-panel[hidden] { display: none !important; }
.admin-bar .rd73-lyrics-panel { top: 32px; }

.rd73-lp-head { display: flex; align-items: flex-start; gap: .8rem; padding: 1.1rem 1.2rem .9rem; border-bottom: 1px solid #262220; }
.rd73-lp-names { flex: 1; min-width: 0; }
.rd73-lp-album { margin: 0 0 .2rem !important; font-family: var(--rd-head, Cinzel, serif); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-gold, #d4a017); }
.rd73-lp-title { margin: 0 !important; font-family: var(--rd-head, Cinzel, serif) !important; font-size: 1.25rem !important; line-height: 1.25; color: #e8dcc0 !important; }
.rd73-lyrics-panel .rd73-lp-close {
  -webkit-appearance: none; appearance: none; background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; width: 34px; height: 34px; flex: 0 0 34px; line-height: 1; font-size: 26px; cursor: pointer;
  color: #888 !important; border-radius: 50% !important;
}
.rd73-lyrics-panel .rd73-lp-close:hover { color: var(--rd-gold, #d4a017) !important; }

.rd73-lp-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem 2rem; overscroll-behavior: contain; outline: none; }
.rd73-lp-note { color: #8a7d64; font-style: italic; font-family: var(--rd-body, Lora, serif); }
.rd73-lyrics-panel .rd73-lp-page {
  display: block; padding: .85rem 1.4rem; border-top: 1px solid #262220; text-decoration: none !important;
  font-family: var(--rd-head, Cinzel, serif); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rd-gold, #d4a017) !important;
}
.rd73-lyrics-panel .rd73-lp-page:hover { background: rgba(212, 160, 23, .08); }
.rd73-lyrics-panel .rd73-lp-page[hidden] { display: none !important; }

/* Lyrics text (panel and pages) */
.rd73-lyric-text p, .rd73-lp-body p { margin: 0 0 1.25em; font-family: var(--rd-body, Lora, serif); font-size: 1rem; line-height: 1.75; color: #e6dfcf; }
.rd73-lyric-text p.rd73-lyric-tag, .rd73-lp-body p.rd73-lyric-tag {
  margin: 1.6em 0 .45em; font-family: var(--rd-head, Cinzel, serif); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #8a7d64;
}
.rd73-lyric-text p.rd73-lyric-tag:first-child, .rd73-lp-body p.rd73-lyric-tag:first-child { margin-top: 0; }

/* Notes from the staff (Marvin, bob, LLisa), set like Marvin's sign-off on the
   Contact page. Used across the newer sections; this file loads on every page. */
.rd73-voice { max-width: 600px; margin: 2.5rem auto 1rem !important; text-align: center; font-family: 'Courier Prime', monospace !important; font-size: .8rem !important; line-height: 1.7; color: #666 !important; }

/* Writing ▸ Lyrics: the album index and album pages */
.rd73-lyrics-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.4rem; margin: 1.5rem 0 2rem; }
.rd73-lyrics-card { display: block; text-decoration: none !important; color: inherit !important; }
.rd73-lyrics-card img, .rd73-lyrics-card .rd73-lyrics-blank { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(212, 160, 23, .35); border-radius: 3px; transition: border-color .2s, box-shadow .2s; background: #141110; }
.rd73-lyrics-card:hover img, .rd73-lyrics-card:focus-visible img { border-color: var(--rd-gold, #d4a017); box-shadow: 0 0 22px rgba(212, 160, 23, .18); }
.rd73-lyrics-card strong { display: block; margin-top: .6rem; font-family: var(--rd-head, Cinzel, serif); font-size: .95rem; letter-spacing: .04em; color: #e8dcc0; }
.rd73-lyrics-card span { font-family: var(--rd-ui, Inter, sans-serif); font-size: .75rem; color: #8a7d64; }

/* Album pages use the book pages' poem-list markup; the book renderer styles it
   inline, so the same frame is given here. */
.rd73-lyrics-album .rd73-poem-list > details { border-bottom: 1px solid #262626; padding: .8rem 0; }
.rd73-lyrics-album .rd73-poem-list > details > summary { cursor: pointer; color: var(--rd-gold, #d4a017); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.rd73-lyrics-album .rd73-poem-list > details > summary > span:last-child { color: #555; font-size: .8rem; }
.rd73-lyrics-album .rd73-poem-list > details > .poem-content { margin-top: 1rem; padding: 1.5rem; background: #1a1a1a; border-left: 3px solid var(--rd-gold, #d4a017); border-radius: 2px; }

.rd73-lyrics-album-head { display: flex; gap: 1.2rem; align-items: center; margin: 0 0 1.4rem; }
.rd73-lyrics-album-head img { width: 132px; height: 132px; object-fit: cover; border: 1px solid rgba(212, 160, 23, .45); border-radius: 3px; flex: 0 0 auto; }
.rd73-lyrics-album-head p { margin: 0 0 .35rem; font-family: var(--rd-ui, Inter, sans-serif); font-size: .85rem; color: #9a8f78; }
.rd73-lyrics-album-head a { color: var(--rd-gold, #d4a017) !important; }

@media (max-width: 600px) {
  .rd73-lyrics-panel { width: 100vw; border-left: 0; }
  .admin-bar .rd73-lyrics-panel { top: 46px; }
  .rd73-lyrics-album-head img { width: 96px; height: 96px; }
  .rd73-lyrics-index { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .rd73-lyrics-panel { transition: none; } }
