/* v7 global layout + responsive fixes (session A) */

/* v8 one long scroll: each page in the stream keeps its own accent and heading hue whichever page is current
   (the same values site.css sets on body[data-view], which now follows the page in view) */
#main > .pg { --accent: var(--flower); --hr: 0deg; }
#main > [data-page="listen"] { --accent: var(--violet); --hr: 30deg; }
#main > [data-page="live"], #main > [data-page="band"], #main > [data-page="timeline"] { --accent: var(--garland); }
#main > [data-page="watch"] { --hr: -40deg; }
#main > [data-page="live"] { --hr: 70deg; }
#main > [data-page="library"] { --hr: 160deg; }
#main > [data-page="lyrics"] { --hr: -80deg; }
#main > [data-page="band"] { --hr: 20deg; }
#main > [data-page="radio"] { --hr: 110deg; }
#main > [data-page="studio"] { --hr: 45deg; }
#main > [data-page="timeline"] { --hr: -120deg; }
#main > [data-page="merch"] { --hr: 200deg; }
#main > [data-page="booking"] { --hr: -20deg; }
#main > [data-page="listen"] ::selection { background: var(--violet); color: var(--bone); }
#main > [data-page="live"] ::selection, #main > [data-page="band"] ::selection { background: var(--garland); color: var(--ink); }
/* ---------- v9 (26.11): site-wide ---------- */
/* 1. less empty space between the pages of the long scroll (a page that starts the stream keeps its full top space;
      app.js jump() lands a page just under the top bar) */
#main > .pg + .pg .phead { padding-top: clamp(42px, 5.4vw, 80px); }
#main > .pg + .pg .tv5 { padding-top: 8px; }
#main > .pg:not(:last-child) > :last-child { padding-bottom: clamp(18px, 2.6vw, 44px) !important; margin-bottom: 0; }
#main > .pg:not(:last-child) > :last-child > :last-child:not(.sleeper) { padding-bottom: 0 !important; margin-bottom: 0; }

/* 2. the menu strip: 1.5x larger, in the order of the scroll */
.top__nav { font-size: 25px; letter-spacing: 0.1em; gap: clamp(12px, 1.15vw, 22px); white-space: nowrap; }
.top__menu { font-size: 24px; }
@media (max-width: 1320px) { .top__nav { display: none; } .top__menu { display: block; } }

/* 3. the scroll indicator on the right: a thin melting rail whose thumb drifts through the heading palette */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sbar { position: fixed; z-index: 55; top: calc(env(safe-area-inset-top, 0px) + var(--top-h) + 10px); bottom: 14px; right: 5px; width: 10px; touch-action: none; cursor: pointer; }
.sbar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, rgba(236, 228, 212, 0.16) 0 6px, transparent 6px 10px); filter: url(#meltlite); }
.sbar__t { position: absolute; left: 1px; right: 1px; top: 0; height: 60px; border-radius: 6px; overflow: hidden; will-change: transform; box-shadow: -2px 0 0 rgba(212, 42, 32, 0.75), 2px 0 0 rgba(56, 168, 214, 0.65), 0 0 14px rgba(214, 48, 150, 0.45); transition: width 0.2s, left 0.2s, right 0.2s; animation: sbarj 7s steps(1) infinite; }
.sbar__t::before { content: ""; position: absolute; left: 0; right: 0; top: -100%; height: 300%; background: linear-gradient(180deg, #d42a20, #e08a2e, #d63096, #9a6ad6, #38a8d6, #4ac480, #d42a20, #e08a2e, #d63096); animation: sbarflow 6s linear infinite; will-change: transform; }
.sbar:hover .sbar__t, .sbar.drag .sbar__t { left: -2px; right: -2px; }
@keyframes sbarflow { from { transform: translateY(-33.333%); } to { transform: translateY(0); } }
@keyframes sbarj { 0%, 90%, 100% { translate: 0 0; } 91% { translate: -2px 0; } 93% { translate: 2px 0; } 95% { translate: 0 0; } }
@media (pointer: coarse) { .sbar { width: 6px; right: 2px; pointer-events: none; } .sbar__t { left: 1px; right: 1px; } }
@media (prefers-reduced-motion: reduce) { .sbar__t, .sbar__t::before { animation: none; } }
html.tvfull .sbar { display: none; }

/* 5. 60 fps: pages that are off screen stop all their css animations and drop their svg melt filters
      (app.js marks them with .pg--off through the IntersectionObserver it already has) */
#main > .pg--off *, #main > .pg--off *::before, #main > .pg--off *::after { animation-play-state: paused !important; }
#main > .pg--off .display, #main > .pg--off [data-split], #main > .pg--off .h2, #main > .pg--off .scramble, #main > .pg--off .melted { filter: none !important; }
