/* Artist hub: the /artist/<slug> layout from the MHFR theme's artisttest.php (2012).
   Each page sets --pri (page), --sec (squares) and --txt (text) from the artist's colours.
   Release pages use the same squares, in their main artist's colours. */
#artisthub { --pri: #566A56; --sec: #87A587; --txt: #FFF; }   /* defaults; an artist's own colours are set on the page */
/* the MHFR look (red-face button) uses the 2012 colours on every artist / release page */
html.mhfr #artisthub { --pri: #F3C66F !important; --sec: #F9E3B8 !important; --txt: #000 !important; }
#artisthub { background-color: var(--pri); width: 975px; margin: 0 auto; position: relative; color: var(--txt); box-shadow: 0px 3px 25px 0px black; }
#artisthub > img.banner { display: block; width: 975px; }
#artisthub #allsquares { width: 732px; margin: 0 auto; padding: 30px 0; }
#artisthub a, #artisthub a:visited { color: var(--txt); }
#artisthub h1 { font-size: 45px; margin: 0; padding: 0; font-weight: bold; line-height: 1.1; }
#artisthub h2 { font-size: 22px; margin: 10px 0 4px; padding: 0; }
#artisthub .squarerow { position: relative; height: 233px; padding: 1px 0; }
#artisthub .squarerow:empty { display: none; }
/* a row is an invisible full-width strip; let the wheel and clicks through it so a long box from the row
   above (releases / tracks) scrolls over its whole height */
#artisthub .squarerow { pointer-events: none; }
#artisthub .artistsquare { pointer-events: auto; }
/* scroll bars: thin, in the artist's text colour on a faint track, so they look part of the box */
#artisthub .artistsquare {
  --bar: color-mix(in srgb, var(--txt) 45%, transparent);
  --barhover: color-mix(in srgb, var(--txt) 70%, transparent);
  --bartrack: color-mix(in srgb, var(--txt) 10%, transparent);
  scrollbar-width: thin; scrollbar-color: var(--bar) var(--bartrack);
}
#artisthub .artistsquare:hover { scrollbar-color: var(--barhover) var(--bartrack); }
#artisthub .artistsquare::-webkit-scrollbar { width: 8px; }
#artisthub .artistsquare::-webkit-scrollbar-track { background: var(--bartrack); }
#artisthub .artistsquare::-webkit-scrollbar-thumb { background: var(--bar); border-radius: 4px; }
#artisthub .artistsquare::-webkit-scrollbar-thumb:hover { background: var(--barhover); }
#artisthub .artistsquare {
  background-color: var(--sec); display: inline-block; width: 233px; height: 233px;
  position: absolute; margin-top: 2px; overflow: auto; overflow-x: hidden;
  box-sizing: border-box; padding: 10px 12px;   /* breathing room; the box stays 233px */
}
#artisthub .artistsquare.pic { padding: 0; }
#artisthub .artistsquare { box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, .55); }   /* slight shadow, like the release tiles */   /* picture / cover boxes stay edge to edge */
#artisthub .artistsquare.wide { width: 468px; }
#artisthub .artistsquare.one { left: 0px; }
#artisthub .artistsquare.two { left: 235px; }
#artisthub .artistsquare.three { left: 470px; }
#artisthub .artistsquare.long { height: 468px; }
#artisthub .artistsquare img { display: block; height: 233px; width: 233px; border: 0; object-fit: cover; }
#artisthub .artistsquare p { padding: 0; margin: 0 0 8px; }
#artisthub .artistsquare h1 { margin-bottom: 6px; }
#artisthub .artistsquare ul, #artisthub .artistsquare ol { list-style-type: disc; padding: 0 0 6px 22px; margin: 0; }
#artisthub .artistsquare li { margin-bottom: 2px; }
#artisthub .artistsquare ol { list-style-type: decimal; }
#artisthub .artistsquare li.heading { list-style: none; margin-left: -22px; font-weight: bold; }
#artisthub .small, #artisthub .src, #artisthub .yr, #artisthub .dur { opacity: .75; font-size: 13px; }
#artisthub .src { font-style: italic; }
#artisthub .by { font-size: 20px; }
#artisthub .hubvideos { margin-top: 6px; }
#artisthub .hubvideos iframe { display: block; width: 732px; height: 412px; border: 0; margin-top: 4px; }

/* spacing between the boxes, so their drop shadows have room: 12px gaps (was 2px).
   A square is 233px; wide / long boxes cover two squares plus the gap. */
#artisthub #allsquares { width: 723px; }
#artisthub .squarerow { height: 233px; padding: 0; margin-bottom: 12px; }
#artisthub .squarerow:last-child { margin-bottom: 0; }
#artisthub .artistsquare { margin-top: 0; }
#artisthub .artistsquare.wide { width: 478px; }
#artisthub .artistsquare.long { height: 478px; }
#artisthub .artistsquare.two { left: 245px; }
#artisthub .artistsquare.three { left: 490px; }
#artisthub .hubvideos { margin-top: 12px; }
#artisthub .hubvideos iframe { width: 723px; height: 407px; margin-top: 12px; box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, .55); }
#artisthub .related { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--txt) 35%, transparent); }

/* release pages: newer (left) / older (right) release by catalog number, in small boxes like the squares,
   level with the top of the title box and the cover. The squares are 723px wide in the 975px box (126px margins);
   each arrow box is 90px wide and sits 12px from them, the same gap as between the squares. */
#artisthub a.relstep, #artisthub a.relstep:visited {
  position: absolute; top: 30px; width: 90px; box-sizing: border-box; padding: 14px 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background-color: var(--sec); box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, .55);
  color: var(--txt); text-decoration: none; font-weight: bold; font-size: 15px; letter-spacing: .3px;
  transition: transform .1s ease-out;
}
#artisthub a.relstep.newer { left: 24px; }
#artisthub a.relstep.older { right: 24px; }
#artisthub a.relstep .tri { width: 0; height: 0; border-top: 22px solid transparent; border-bottom: 22px solid transparent; }
#artisthub a.relstep.newer .tri { border-right: 30px solid var(--txt); }
#artisthub a.relstep.older .tri { border-left: 30px solid var(--txt); }
#artisthub a.relstep.newer:hover { transform: translateX(-3px); }
#artisthub a.relstep.older:hover { transform: translateX(3px); }

/* Bandcamp mini player at the foot of a release's Info box */
#artisthub .artistsquare.hasplayer { display: flex; flex-direction: column; }
#artisthub .artistsquare.hasplayer .bcplayer { margin: auto -12px -10px; padding: 6px 12px 10px; flex-shrink: 0; position: sticky; bottom: -10px; background-color: var(--sec); }
#artisthub .bcplayer iframe { display: block; border: 0; width: 100%; height: 42px; }
/* Internet Archive player: back, play/pause, next, track title, archive.org link */
#artisthub .iaplayer { display: flex; align-items: center; gap: 4px; color: var(--txt); position: sticky; }
#artisthub .iaplayer button { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; }
#artisthub .iaplayer button svg { width: 18px; height: 18px; fill: currentColor; }
#artisthub .iaplayer .iaplay { width: 34px; height: 34px; border: 2px solid currentColor; }
#artisthub .iaplayer .iaplay svg { width: 18px; height: 18px; }
#artisthub .iaplayer .i-pause, #artisthub .iaplayer.playing .i-play { display: none; }
#artisthub .iaplayer.playing .i-pause { display: block; }
#artisthub .iaplayer button:hover { background: color-mix(in srgb, var(--txt) 15%, transparent); }
#artisthub .iaplayer button:focus-visible, #artisthub .iaplayer .ialogo:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
#artisthub .iaplayer .iatitle { flex: 1; min-width: 0; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
#artisthub .iaplayer .ialogo, #artisthub .iaplayer .ialogo:visited { flex: none; display: flex; color: inherit; opacity: .8; margin-left: 6px; }
#artisthub .iaplayer .ialogo:hover { opacity: 1; }
#artisthub .iaplayer .ialogo svg { width: 24px; height: 24px; fill: currentColor; }
#artisthub .iaplayer .iabar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: color-mix(in srgb, var(--txt) 20%, transparent); }
#artisthub .iaplayer .iabar i { display: block; height: 100%; width: 0; background: var(--txt); }
/* YouTube version: the video takes the cover's place while it plays */
#artisthub .artistsquare.pic .ytbox { position: absolute; inset: 0; background: #000; }
#artisthub .artistsquare.pic .ytbox iframe { display: block; width: 100%; height: 100%; border: 0; }
