/* /sheets: an album's cover on its row and the cover looked at large (cover.js; SH-73). Only the albums of his rankings
   and his favorites have one (tools/sheets/covers.py). A row with a cover keeps its room from the start, a faint square
   of the page's tint, and the cover fades in over it when it arrives, as the to-hear page's week does (to-hear.css .cv);
   a page with no cover on it changes in nothing */
/* a little larger than the 2.75rem they came at (Sha, Nov 23, 2026, SH-104: "Previews of the album covers need to be a
   little bigger") */
:root{--cvw:3.25rem}
.cv{position:relative;z-index:1;display:block;flex:none;width:var(--cvw);height:var(--cvw);padding:0;margin:0;border:0;background:var(--tint);
  overflow:hidden;cursor:zoom-in;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
/* every cover wears the page's hairline just inside its edge, the line an empty cover's square is drawn with, so a pale
   cover keeps its edge on the white page (Sha, Nov 24, 2026: "Need a little square black line or something around the
   album covers to give them a bit more definition ... I don't want to over-design it"); to-hear.css does the same, and
   so does the cover looked at large */
.cv img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s var(--ease);outline:1px solid var(--hair);outline-offset:-1px}
.cv img.ok{opacity:1}
.cv:focus-visible{outline:none;box-shadow:0 0 0 3px var(--wall),0 0 0 4px var(--ink)}
/* the row's cover steps aside while its copy is on the stage or on its way back */
.cv.is-looking img{visibility:hidden}

/* a year's sheet: the cover in the sheet's first column, under the date (the year, where every year is shown), and a row
   with no cover keeps its layout (Sha, Nov 23, 2026, SH-104: "Move the album covers to the left column, the leftmost
   column"; it stood under the title). The cover and the cell's padding take 61.6 px, so the column is never narrower:
   on all (#all) the years' column widens from 54.4 px to 61.6 at 1024 and 1440, and from 46.8 at 720, moving the columns
   after it, and at 720 a year's dates widen by up to 2.5 px (measured Nov 23, 2026). On a phone that column isn't drawn:
   its cell gives up its box, its words are hidden (the row's bar says the date), and the cover stands at the left
   of the row's words, which step in to make room for it (only on a row with a cover), from the top of its title */
.sheet:not(.ranks) td:is(.c-date,.c-year) .cv{margin:.5rem 0 .1rem}
/* under the month heads the day stands on the bar, so the cover stands where the words start */
.sheet.days:not(.ranks) td.c-date .cv{margin-top:.15rem}
@media (max-width:719.98px){
  .sheet:not(.ranks) tr:has(> td .cv){padding-left:calc(var(--cvw) + 1rem);min-height:calc(var(--cvw) + 1.4rem)}
  .sheet:not(.ranks) td:is(.c-date,.c-year):has(> .cv){display:contents}
  .sheet:not(.ranks) td:is(.c-date,.c-year) > .cvd{display:none}
  .sheet:not(.ranks) td:is(.c-date,.c-year) .cv{position:absolute;left:0;top:.75rem;margin:0}
  .sheet:not(.ranks) tr:has(.c-meta .gbar) td:is(.c-date,.c-year) .cv{top:calc(var(--bt) + var(--gbh) + .35rem)}
}

/* the rankings: a list with covers gives them a column of their own after the rank, every row keeping its room, so the
   titles start on one edge (aoty.js) */
.ao .sheet.cvs :is(td,th).c-cover{width:var(--cvw);padding-right:1rem;vertical-align:top}
.ao .sheet.cvs td.c-cover .cv{margin:.1rem 0 .1rem}
/* a row whose album has no cover keeps the column's width, so its title starts on the list's edge, but not a cover's
   height: a critics' list, where most albums have none, grew by a quarter for empty squares (review of the merge,
   Nov 23, 2026) */
@media (max-width:719.98px){
  .ao .sheet.cvs tr{grid-template-columns:var(--rkw,2.6em) var(--cvw) minmax(0,1fr) auto}
  .ao .sheet.cvs td.c-cover{display:block;grid-column:2;grid-row:1 / span 2;align-self:start;width:auto;padding:.15rem 0 0}
  .ao .sheet.cvs :is(.c-title,.c-artist){grid-column:3}
  .ao .sheet.cvs .c-score{grid-column:4}
  .ao .sheet.cvs .c-meta{grid-column:3 / -1}
  .ao .sheet.cvs tr{column-gap:1rem}
  .ao.edit .sheet.cvs tr{grid-template-columns:calc(var(--rkw,2.6em) + 1.35em) var(--cvw) minmax(0,1fr) auto}
  /* a row with no cover keeps its words where a list with no covers sets them, across the covers' column too, so on a
     phone it doesn't grow a line (the critic, Nov 23, 2026) */
  .ao .sheet.cvs tbody tr:not(:has(.cv)) td.c-cover{display:none}
  .ao .sheet.cvs tbody tr:not(:has(.cv)) :is(.c-title,.c-artist){grid-column:2 / 4}
  .ao .sheet.cvs tbody tr:not(:has(.cv)) .c-meta{grid-column:2 / -1}
  /* the cover larger, 80 px where it was 52, standing from the row's top down beside its title, artist and genres (Sha,
     Nov 25, 2026, SH-213, a red square drawn from just after the rank to past the cover: "I think we have room to make
     the album art a bit bigger, right? ... I feel like the album art feels awkwardly small"). The room comes from the
     family dot's place after the rank, which no row on a phone shows (a row with a genre bar keeps it unseen, .sw.nil;
     measured on every list, Nov 25): on a list where none shows, the rank's column is its figures alone and the cover
     starts a gap after them, so the titles move about 10 px. A computer's row is as tall as its cover already, so there
     it stays; so does a list being arranged, whose rows are only title and artist and keep their compact step. A fifth
     of the screen's width, so a narrow phone keeps room for its titles: 80 px from 400 px wide, 76 at 382, 64 at 320 */
  .ao:not(.edit) .sheet.cvs{--cvw:clamp(3.25rem,20vw,5rem)}
  .ao:not(.edit) .sheet.cvs td.c-cover{grid-row:1 / span 3}
  /* where the words are shorter than the cover (an album on no sheet: no genres), the room it asks for goes under them,
     to the genres' line, so the title and artist keep their step and never stand apart */
  .ao:not(.edit) .sheet.cvs tr{grid-template-rows:auto auto 1fr}
  .ao:not(.edit) .sheet.cvs:not(:has(.c-rank .sw:not(.nil))) tr{grid-template-columns:calc(var(--rkw,2.6em) - 1.25em) var(--cvw) minmax(0,1fr) auto}
  .ao:not(.edit) .sheet.cvs:not(:has(.c-rank .sw:not(.nil))) .c-rank .sw{display:none}
}

/* ── the look: white, the whole screen, the cover fitted whole in it; it grows from the row and goes back there
   (cover.js, after rhapsode's objectLook) ── */
.cvlook{position:fixed;inset:0;z-index:60;background:#fff;cursor:zoom-out;touch-action:none;visibility:hidden;pointer-events:none;outline:none}
/* the zoom's own (museum/zoom.js marks its picture mz-print and its stage mz-area), as rhapsode sets them */
.cvlook.on{visibility:visible;pointer-events:auto}
.cvlook.leaving{pointer-events:none}
.cvlook .stage{position:relative;width:100%;height:100%;overflow:hidden;transform-origin:0 0}
.cvlook img{position:absolute;display:block;max-width:none;margin:0;-webkit-user-select:none;user-select:none;outline:1px solid var(--hair);outline-offset:-1px}
.cvlook .mz-print{-webkit-user-drag:none;-webkit-touch-callout:none}
.cvlook .mz-area{touch-action:none;user-select:none;-webkit-user-select:none}
@media (hover:hover) and (pointer:fine){.cvlook .mz-print{cursor:zoom-in}}
.cvlook .mz-zoomed .mz-area,.cvlook .mz-zoomed.mz-area,.cvlook .mz-zoomed .mz-print{cursor:grab}
.cvlook .mz-dragging .mz-area,.cvlook .mz-dragging.mz-area,.cvlook .mz-dragging .mz-print{cursor:grabbing}

@media (prefers-reduced-motion:reduce){
  .cv img{transition:opacity .2s linear}
}
