/* r80: native-feeling motion. transform/opacity only. */
:root{--spring:cubic-bezier(.22,1,.36,1)}
html.r80 main.enter,html.r80 #view.r20in>*{animation:none!important}
#r80old{position:fixed;left:0;right:0;margin:0 auto;z-index:1;pointer-events:none;will-change:transform;contain:layout paint;overflow:hidden}
/* polish: the outgoing copy is opaque, so Back never shows two pages through each other */
#r80old{background:var(--bg)}
#r80dim{position:fixed;inset:0;z-index:1;pointer-events:none;background:#000;opacity:0;will-change:opacity}
html.r80run #view{position:relative;z-index:2;will-change:transform,opacity}
html.r80pop #r80old{z-index:3;box-shadow:-10px 0 30px rgba(0,0,0,.18)}
html.r80push #view{box-shadow:-10px 0 30px rgba(0,0,0,.18);background:var(--bg)}
html.r80pop #view{background:var(--bg)}
/* drawer: spring slide, backdrop fades */
html.r80 .dpanel{transition:transform .42s var(--spring)!important}
html.r80 .drawer{transition-duration:.3s!important}
html.r80 .drawer.gdrag .dpanel{transition:none!important}
/* sheets & player */
html.r80 .sheetbox{animation-duration:.32s!important;animation-timing-function:var(--spring)!important}
html.r80 .fp{transition-duration:.36s!important;transition-timing-function:var(--spring)!important}
/* pressed states */
html.r80 :is(.tile,.chip,.btn,.cbtn,.subcard,.lx,.banner,.pill){transition:transform .18s var(--spring),opacity .18s}
html.r80 :is(.tile,.chip,.btn,.cbtn,.subcard,.lx,.banner,.pill):is(:active,.r80p){transform:scale(.96);opacity:.85;transition-duration:.06s}
html.r80 .item{transition:opacity .15s}html.r80 .item:is(:active,.r80p){opacity:.6;transition-duration:0s}
html.r80 .tabs a{transition:transform .2s var(--spring)}html.r80 .tabs a:active{transform:scale(.9)}
html.r80 .vpyr>summary:active{opacity:.7}
html.r80 .vpyr>summary .ic{transition:transform .28s var(--spring)}
html.r80 .vpyr[open]>.vpyb2{animation:r80acc .3s var(--spring) both}
@keyframes r80acc{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.vyears{display:flex;flex-direction:column;gap:10px;margin-top:10px}.vyears .vpyb2{padding:0 10px 6px}
@media (prefers-reduced-motion:reduce){html.r80 *{animation:none!important;transition-duration:0s!important}}
/* long lists: rows off-screen skip layout/paint until scrolled near (keeps taps and pushes to one frame) */
.list>.item{content-visibility:auto;contain-intrinsic-size:auto 76px}
.vyears>.vpyr:not([open]){content-visibility:auto;contain-intrinsic-size:auto 58px}
/* sliding pages must never widen the page (that made phones zoom out / hide the tab bar mid-transition) */
html.r80,html.r80 body{overflow-x:clip}
/* queue history above now-playing */
.qhh{margin:6px 4px 4px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;font-weight:600}
.qhist li{opacity:.62;transition:opacity .25s ease,transform .2s cubic-bezier(.2,.8,.2,1)}
.qhist li:active{transform:scale(.98);opacity:.85}
#qNow{scroll-margin-top:8px}

/* playback history date groups */
.hgrp{margin:6px 0 2px}.hgrp>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:12px 2px 6px;cursor:pointer;position:sticky;top:0;z-index:2;background:var(--bg);font-weight:700;font-size:1.02rem;letter-spacing:-.01em}
.hgrp>summary::-webkit-details-marker{display:none}.hgrp .hgn{color:var(--mut,#999);font-weight:500;font-size:.85rem}.hgrp>summary .ic{margin-left:auto;opacity:.6;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.hgrp[open]>summary .ic{transform:rotate(90deg)}.hgrp[open]>ul{animation:hgIn .28s cubic-bezier(.2,.8,.2,1)}@keyframes hgIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hgrp[open]>ul{animation:none}.hgrp>summary .ic{transition:none}}

/* while scrolling or swiping, don't keep the press-scale — that was a visible hitch at the start of a move */
html.dg-moving :is(.tile,.chip,.btn,.cbtn,.subcard,.lx,.banner,.pill,.item,.hcard,.opt,a):is(:active,.r80p){transform:none!important;opacity:inherit!important}
