/* Keep the bar and the reading position fixed while the album is open. */
:is(.mast,.album-reader) #soundpane.album-strip {
  position:absolute;
  inset:calc(100% + 6px) max(12px,calc((100% - 1280px)/2)) auto auto;
  z-index:2;
  box-sizing:border-box;
  width:min(45rem,calc(100% - 24px));
  max-height:calc(100vh - 6.5rem);
  max-height:calc(100dvh - 6.5rem - env(safe-area-inset-bottom,0px));
  min-width:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:0;
  color:#f8e9d7;
  background:rgba(37,29,24,.88);
  border:1px solid rgba(229,200,162,.24);
  border-radius:12px;
  box-shadow:0 8px 30px rgba(17,12,9,.28);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
#soundpane .album-console.wrap {width:auto;margin:0;padding-inline:clamp(12px,2vw,20px);}
:is(.mast,.album-reader) #soundpane[hidden],#soundpane [hidden] {display:none;}
.album-console {display:grid;grid-template-columns:minmax(13rem,1fr) auto minmax(85px,.3fr) auto;align-items:center;gap:8px clamp(12px,2vw,30px);padding-block:12px;}
.album-heading {min-width:0;display:flex;align-items:center;gap:14px;}
.album-heading img {flex:none;width:62px;height:62px;border-radius:var(--photo-radius);object-fit:cover;object-position:68% center;}
.album-caption {min-width:0;display:grid;align-content:center;gap:3px;color:#f8e9d7;}
.album-caption #albumcontext,.album-caption #albumposition {font:500 .78rem/1.2 var(--sans,sans-serif);letter-spacing:.015em;color:#d7b997;}
.album-caption #soundtrack {font:550 clamp(1.1rem,1.4vw,1.42rem)/1.15 var(--sans,sans-serif);margin:0;overflow-wrap:anywhere;letter-spacing:-.02em;display:block;}
.album-console button,.album-queue [role=option] {border:0;background:none;border-radius:5px;cursor:pointer;color:#ead6bf;font:500 15px/1.3 var(--sans,sans-serif);}
.album-console button:hover,.album-queue [role=option]:hover {background:#493629;color:#fff1db;}
.album-console :is(button,input,[role=option]):focus-visible {outline:2px solid #ffce8f;outline-offset:2px;}
.album-transport {display:flex;align-items:center;gap:2px;}
.album-transport button {min-width:44px;min-height:44px;display:grid;place-items:center;padding:8px;border-radius:50%;}
.album-transport #albumpause {width:48px;height:48px;background:#efc999;color:#271c14;}
.album-transport #albumpause:hover {background:#ffe0b2;}
.album-transport #albumpause[aria-pressed=false] .album-glyph-pause,.album-transport #albumpause[aria-pressed=true] .album-glyph-play {display:none;}
#soundpane .album-volume {display:flex;align-items:center;min-height:44px;gap:7px;margin:0;padding:0;color:#cfb69a;}
.album-volume svg,.album-queue-toggle svg {flex:none;}
.album-volume input {min-width:0;width:100%;min-height:44px;accent-color:#edc891;}
.album-queue-toggle {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:5px 8px;white-space:nowrap;}
.album-queue-toggle[aria-expanded=true] {color:#ffdbab;}
.album-queue {grid-column:1/-1;max-height:min(19rem,37dvh);overflow:auto;overscroll-behavior:contain;scrollbar-color:#8b6949 #241b15;background:rgba(21,16,13,.54);padding:5px 8px;border-radius:6px;}
.album-queue [role=option] {display:grid;grid-template-columns:2.4rem minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:44px;text-align:left;padding:7px 12px;}
.album-queue [aria-selected=true] {color:#ffdcaa;background:#3d2d21;}
.album-queue .album-number,.album-queue .album-length {color:#d0b495;font-variant-numeric:lining-nums tabular-nums;}
.album-queue .album-number {font-size:1rem;font-weight:600;}
.album-queue .album-length {font-size:.82rem;}
.reader-mast.album-reader {display:block;padding:0;}
.reader-bar {display:flex;align-items:center;gap:12px;padding:6px max(16px,4.5vw);}
.reader-bar .legal-brand {margin-right:auto;}
.reader-bar .soundgroup > button {border:0;color:#e8ccb0;border-radius:0;}
.reader-bar .soundgroup #soundtoggle {min-height:44px;padding:5px 6px;}
html:not(.age-open) .album-reader .soundgroup {display:none;}
html:not(.age-open) [data-standalone-menu] .soundgroup {visibility:hidden;}
@media(max-width:1020px) and (min-width:701px) {
 .album-console {grid-template-columns:minmax(13rem,1fr) auto auto;gap:4px 20px;}
 .album-heading {grid-row:1/3;}
 .album-volume {grid-column:2;grid-row:2;max-width:136px;}
 .album-queue-toggle {grid-column:3;grid-row:1/3;justify-self:start;}
}
@media(max-width:700px) {
 .album-console {grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;padding-block:9px;}
 .album-heading {grid-column:1/-1;gap:10px;}
 .album-heading img {width:48px;height:48px;}
 .album-caption {grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:3px 9px;}
 .album-caption #soundtrack {grid-column:1/-1;grid-row:2;font-size:1.05rem;}
 .album-caption #albumposition {grid-column:2;grid-row:1;}
 .album-transport {grid-column:1;grid-row:2;justify-self:start;}
 .album-volume {grid-column:2;grid-row:2;max-width:132px;width:100%;}
 .album-queue-toggle {font-size:.88rem;}
 .album-queue-toggle {grid-row:3;grid-column:2;padding:4px 0;gap:5px;justify-self:end;}
 .album-queue-toggle svg {width:17px;}
 .reader-bar {gap:5px;padding:5px 10px;} .reader-bar .soundgroup #soundtoggle span {display:none;} .reader-bar .legal-brand {min-width:0;line-height:1.12;}
}

@media(max-width:420px) {
 .album-queue-toggle { grid-column:1/-1;grid-row:3;justify-self:start; }
}
@media(max-width:360px){
 .mast .headerwrap {column-gap:3px;}
 .mast .headerwrap .brand {gap:4px;}
 .mast .headerwrap .brand img.atlas-mark {width:19px;height:19px;}
 .mast .headerwrap .brand > span {font-size:15.5px;}
}
#soundpane [data-sound-full-album] {grid-column:1/-1;grid-row:auto;justify-self:start;min-height:44px;}

:is(.mast,.album-reader) .soundgroup {border:0;}
:is(.mast,.album-reader) .soundgroup #soundoptions {
  display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;
  border:0;border-radius:50%;background:transparent;color:#ead9bc;
}
:is(.mast,.album-reader) .soundgroup #soundoptions:is(:hover,[aria-expanded=true]) {background:#ffffff10;}
:is(.mast,.album-reader) #soundoptions.ison {color:#efbf80;}
