/* (the night of 2026-11-28) the drafted pages brought up to the home page's language: music, one album, videos.
   night.css is not edited; everything here overrides it, scoped to these pages. Colors only through the settings
   (white is the text white, 255 253 252, at a strength). The three pages' own sky tints were already taken off in
   up-a.css. */

/* a script word that writes itself in (views.js penWrite) needs a box of its own to be written into */
.rec__meta .script,.alb-head__y span{display:inline-block;position:relative}

/* ==========================================================================
   MUSIC
   ========================================================================== */
/* THE GLOW BEHIND EACH RECORD. It was the full-size cover, blurred live by 70 px, nine times over: by far the most
   expensive thing on the page to draw. It is now one small ready-made picture per album (the same cover, blurred and
   darkened once, fading to nothing at its edge: assets/img/pages/glow-<album>.webp), simply stretched. No live blur. */
.rec::before{left:-16%;right:-16%;top:2%;height:100%;border-radius:0;background:var(--glow) center / 100% 100% no-repeat;filter:none;opacity:.8}
/* a photo seen through letters never wears a dark shadow (guide 2.4); it keeps the one wash, through the setting */
.rec__title{filter:none;pointer-events:none}   /* (and the title overlaps the top of its sleeve: a pointer there belongs to the sleeve) */
/* the record turns and slides as one ready piece (it only ever moves and turns, so it is kept as its own layer) */
.rec .vinyl__disc{will-change:transform}
/* the sleeve tilts toward the pointer or finger: it must not pick up a text selection or a drag while it does */
.rec__deck{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.rec__deck .vinyl__sleeve{will-change:transform}
.music-head .sub{max-width:30ch}
@media (min-width:900px){
  .rec::before{left:-8%;right:-8%;top:8%;height:96%}
  /* "listen" is as wide as its words (as a grid piece it used to stretch, and its line ran the width of the column) */
  .rec--l > .more{justify-self:start}
}

/* ==========================================================================
   ONE ALBUM   (everything is kept inside .alb: another page has a turntable of its own)
   ========================================================================== */
/* the album no longer lays a cast of its own over the sky (it was the cover blurred 60 px across the whole top of the
   page). Its color now glows softly behind the turntable only, from the same small ready-made picture as on the
   music page. */
.alb__bg{display:none}
.alb .deck::before{content:"";position:absolute;inset:-24%;z-index:-1;background:var(--glow) center / 100% 100% no-repeat;opacity:.85;pointer-events:none}
/* the turntable's own parts take their colors from the settings (they were typed greys with a violet cast) */
.alb .deck__platter{background:radial-gradient(circle,rgb(var(--sky-plum)) 0 62%,rgb(var(--sky-ink)) 63% 100%);box-shadow:0 0 0 1px rgb(255 253 252 / .06),0 50px 90px -30px rgb(0 0 0 / .9)}
.alb .deck__track{stroke:rgb(255 253 252 / .1)}
.alb .arm__base{fill:rgb(var(--sky-plum));stroke:rgb(255 253 252 / .22)}
.alb .arm__rod{stroke:var(--soft)}
/* the arm's soft shadow: far and wide while the arm is held up (--lift 1), close under it once it is lowered (--lift 0) */
.alb .deck__arm{--lift:1;filter:drop-shadow(calc(2px + 9px * var(--lift)) calc(3px + 13px * var(--lift)) calc(3px + 5px * var(--lift)) rgb(0 0 0 / .5))}
/* the ring of song names turns as one ready piece */
.alb .deck .orbit{will-change:transform}
/* a song row answers the pointer without touching the row itself (the row is flown in by script) */
.alb .track{transition:color .3s}
.alb .track:hover{transform:none}
.alb .track__t{transition:translate .4s}
.alb .track:hover .track__t{translate:8px 0}
.alb .track.is-on .track__n{color:var(--text)}
.alb .player__skip button{cursor:pointer}
.alb .player__skip button:hover{color:var(--text)}
/* "more records" sits on the sky: no ground of its own and no wave edge above it (the edge is no longer drawn) */
.more-albums{background:none;padding:44px 0 40px}
.more-albums .hl .lw{padding-bottom:.12em}
/* a very long title (over thirty letters) steps down once more, so the turntable is not pushed off the first screen */
/* (2026-12-01) the album title's three fixed sizes are gone: one box, fitted by views.js (albumFit); see night.css */
@media (min-width:900px){
  .alb .deck::before{inset:-30%}
}

/* ==========================================================================
   VIDEOS
   ========================================================================== */
/* THE LEAD: a wide picture with soft corners (it had a flat top and a curved lower edge, which is not one of the
   allowed shapes and read as an edge between sections) */
.vlead{margin:0 var(--g);-webkit-tap-highlight-color:transparent}
.vlead__img{position:relative;border-radius:28px}
.vlead__img::after{border-radius:0;pointer-events:none}
.vlead figcaption{left:20px;right:20px;bottom:22px;transition:opacity .3s}
.vlead__name{text-shadow:0 2px 14px rgb(0 0 0 / .6)}
/* the play disc is the house play button: it swaps its colors when the lead is pointed at or pressed */
.vlead__play{width:64px;height:64px;border:1.5px solid var(--cream)}
.vlead__play svg{width:24px;height:24px}
.vlead:hover .vlead__play,.vlead:active .vlead__play,.vlead:focus-visible .vlead__play{background:transparent;color:var(--cream)}
/* THE TILES: a tall rounded rectangle, a circle, a pebble. None is an arch. */
.still{-webkit-tap-highlight-color:transparent}
.still__img{position:relative}
.still--tall .still__img{aspect-ratio:3 / 4;border-radius:28px}
.still__img img{transition:none}
.still figcaption{transition:color .3s}
.still:hover figcaption,.still:focus-visible figcaption{color:var(--text)}
/* the one real clip playing silently inside its own tile (as the home page's highlight plays in its frame) */
.still__img iframe{position:absolute;top:50%;left:50%;translate:-50% -50%;border:0;pointer-events:none;opacity:0;transition:opacity 1s}
.still__img iframe.is-on{opacity:1}
/* while a tile's picture is out in the viewer, the tile is empty */
.is-out .still__img,.is-out .vlead__img{visibility:hidden}
.vlead.is-out figcaption{opacity:0}
/* the two columns and the two rows of names only ever slide, so each is kept as one ready piece */
.vcol,.vticker__row{will-change:transform}

/* THE VIEWER (it uses the home page's viewer, .cinema--spot; these are the differences). The frame is placed by script:
   it starts as the tile and ends in the middle of the screen. */
.cinema--tile{background:none;touch-action:none}
.cinema--tile .cinema__night{position:absolute;inset:0;background:rgb(var(--sky-ink) / .94);opacity:0}
.cinema--tile .cinema__slot{flex:none;position:relative;visibility:hidden}
.cinema--tile .cinema__frame{position:fixed;left:0;top:0;width:0;height:0;aspect-ratio:auto;border-radius:18px;background:rgb(var(--sky-ink));box-shadow:0 50px 120px -30px rgb(0 0 0 / .9);will-change:left,top,width,height}
.cinema--tile .cinema__frame > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cinema--tile .cinema__player{position:absolute;left:50%;top:50%;translate:-50% -50%}
.cinema--tile .cinema__player iframe{opacity:0;transition:opacity .5s}
.cinema--tile.is-open .cinema__player iframe.is-loaded{opacity:1}
.cinema--tile .cinema__cap{position:relative;text-align:center;max-width:34ch;padding-left:0;padding-right:0}
.cinema--tile .cinema__cap b{font-size:22px;line-height:1.25}
.cinema--tile .cinema__cap span[hidden]{display:none}
.cinema--tile .cinema__close{top:max(16px,env(safe-area-inset-top))}

@media (min-width:900px){
  .vlead__img{border-radius:32px}
  /* the lead's picture is a little taller than its frame on computers, so it has room to drift as the page scrolls */
  .vlead__img img{position:absolute;left:0;top:-7%;height:114%}
  .vlead figcaption{left:34px;right:34px;bottom:32px;font-size:26px}
  .still--tall .still__img{border-radius:32px}
  .still__img{transition:scale .45s}
  .still:hover .still__img{scale:1.02}
  .cinema--tile .cinema__cap b{font-size:26px}
}

/* still pages (less motion, or a picture being taken): nothing waits to be shown */
.calm .cinema--tile .cinema__cap > *,.calm .cinema--tile .cinema__close{opacity:1}
