/* flickr — the audio pane (audiobooks, albums) and the artist's shelf. Both
   are DRAWN by web/renderers.js now — the work renderer for a record's pane,
   the artist renderer for a shelf — and web/audio.js, which used to group the
   library into albums and artists by hand, is gone: the grouping is the
   server's (internal/works, cmd/server/library.go) and the drawing is a pure
   function of the document. What is left here is the look of it. */
#audio-pane { margin-top: 14px; }
#audio-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
#audio-cover { width: 200px; height: 200px; border-radius: 10px; object-fit: cover; background: #1e2026;
  flex: 0 0 auto; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
#audio-title { font-size: 20px; font-weight: 600; }
#audio-author { font-size: 14px; color: var(--muted); margin-top: 4px; }
#audio-part { font-size: 13px; color: var(--accent); margin-top: 8px; }
#audio-list-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 4px; }
#audio-list { border: 1px solid #2a2c33; border-radius: 8px; overflow: auto; max-height: 40vh; }
#audio-list .item.current { background: #1e2c42; }
#audio-list .item.current .title::before { content: '▶ '; color: var(--accent); }
/* the detail pane already shows the cover and title: the head is for playback */
#detail-info:not([hidden]) ~ #audio-pane #audio-head { display: none; }
/* audio mode: the media element plays but has no picture to show */
body.audio-mode video, body.audio-mode #thumb { display: none !important; }
/* the artist's shelf (#/artist/<name>): cover and name, then album tiles on
   the library grid's own measure */
#artist-head { display: flex; gap: 18px; align-items: center; margin: 14px 20px 6px; }
#artist-cover { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; background: #1e2026;
  flex: 0 0 auto; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
#artist-name { margin: 0; font-size: 22px; }
#artist-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
#artist-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 16px 20px 30px; }

/* a phone: the record's head and the shelf are one column, and the album
   tiles take the grid's narrow measure (see the breakpoint in index.html) */
@media (max-width: 640px) {
  #audio-head { flex-direction: column; gap: 12px; }
  #audio-cover { width: 40vw; height: 40vw; max-width: 220px; align-self: center; }
  #artist-head { gap: 12px; }
  #artist-cover { width: 84px; height: 84px; }
  #artist-name { font-size: 18px; }
  #artist-albums { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
}
/* an audiobook or a record has no picture to fill: the fullscreen and
   picture-in-picture buttons hide with the video */
body.audio-mode #btn-fs, body.audio-mode #pip { display: none !important; }
