/* Responsive navigation and music links. Loaded after the original theme. */
:root { --accent: #05539f; --page-bg: rgb(255,255,255); --scroll-progress: 0; }
html { scroll-behavior: smooth; }
body {
 background-color: var(--page-bg);
 background-image: url('../textures/grain.svg?v=12');
 background-repeat: repeat; background-size: 180px 180px;
 color: #243440;
}
a { color: #b8defb; }
a:hover { color: #73c6ff !important; }
img { max-width: 100%; }
.link-disclosure, .link-disclosure * { box-sizing: border-box; }
/* A standalone reading indicator, without a navigation bar. */
.scroll-progress {
 position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 100;
 background: linear-gradient(90deg, #ee761e, #bf3bb9, #5b45d2);
 transform-origin: left; transform: scaleX(var(--scroll-progress));
 pointer-events: none;
}
#live, #shows, #specials, #tracks, #footer, #who { scroll-margin-top: 1rem; }
#live, #shows, #specials, #tracks {
 position: relative; overflow: hidden; isolation: isolate; clip-path: inset(0);
 background-color: #05539f; padding: clamp(3rem, 6vw, 6rem) 0;
}
/* The browser keeps these layers fixed; no scroll-time JS positioning.
   The section's clip-path crops them without creating a fixed containing block. */
.band-background {
 position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh;
 background-position: center; background-size: cover; background-repeat: no-repeat;
 background-color: #05539f; pointer-events: none; z-index: -1;
}
.band-background::after {
 content: ''; position: absolute; inset: 0;
 background: url('../textures/grain.svg?v=12') repeat;
}
#live > h2, #shows > .inner, #specials > .inner, #tracks > .inner { position: relative; }
#live h2, #shows h2, #specials h2, #tracks h2 {
 position: relative; display: inline-block; color: #fff;
 margin: 0; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: .16em;
}
.category-glitch::before, .category-glitch::after {
 content: attr(data-glitch); position: absolute; inset: 0; color: #fff;
 pointer-events: none; opacity: 0; text-shadow: 2px 0 #e85a37;
 animation: category-slice 2s steps(1, end) infinite;
}
.category-glitch::after { text-shadow: -2px 0 #b280ff; animation-delay: .13s; }
#shows .category-glitch::before, #shows .category-glitch::after { animation-delay: -.7s; }
#specials .category-glitch::before, #specials .category-glitch::after { animation-delay: -1.4s; }
#tracks .category-glitch::before, #tracks .category-glitch::after { animation-delay: -2.1s; }
@keyframes category-slice {
 0%, 81%, 87%, 100% { opacity: 0; transform: none; }
 82% { opacity: .75; transform: translateX(3px); clip-path: inset(18% 0 57%); }
 84% { opacity: .65; transform: translateX(-3px); clip-path: inset(54% 0 22%); }
 86% { opacity: .55; transform: translateX(2px); clip-path: inset(35% 0 46%); }
}
.content-section { padding: 0 0 5rem; }
#main {
 background: #fff url('../textures/grain.svg?v=12') repeat;
}
#livecont a { color: #05539f; }
.music-item {
 display: flow-root; min-width: 0; padding: 1.75rem; margin-bottom: 1.25rem;
 border: 1px solid rgba(255,255,255,.16); border-radius: 1rem;
 background: rgba(255,255,255,.94); color: #243440;
 box-shadow: 0 5px 24px rgba(0,0,0,.12);
 overflow-wrap: anywhere;
}
.music-item:last-child { margin-bottom: 0; }
.music-item > p > strong { font-size: 1.12em; letter-spacing: -.025em; }
#footer { background: rgba(255,255,255,.94); color: #243440; }
.music-item a, #footer a { color: #05539f; }
.music-item a:hover, #footer a:hover { color: #007ab9 !important; }
.music-item > p { display: flow-root; margin-bottom: 1rem; }
.music-item .image.left { width: 180px; max-width: 35%; }
.music-item .image img { aspect-ratio: 1; object-fit: cover; background: #152b3e; }
.music-item blockquote { clear: both; margin: 1.5rem 0 0; font-size: .9em; }
/* Existing TXT credits use *source name* inside the italic quotation. */
[data-music-category="releases"] .music-item blockquote > em { font-style: normal; }
.link-disclosure { clear: both; border: 1px solid rgba(5,83,159,.2); border-radius: .6rem; }
.link-disclosure summary {
 display: flex; align-items: center; gap: .7rem; cursor: pointer;
 list-style: none; padding: .85rem 1rem; color: #05539f;
 font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
 border-radius: .6rem; transition: background-color .2s;
}
.link-disclosure summary::-webkit-details-marker { display: none; }
.link-disclosure summary::after {
 content: ''; width: .5rem; height: .5rem; margin-left: auto;
 border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
 transform: rotate(45deg); transition: transform .2s;
}
.link-disclosure[open] summary::after { transform: rotate(225deg); }
.link-disclosure summary:hover, .link-disclosure[open] summary { background: rgba(5,83,159,.06); }
.link-count {
 border-radius: 1rem; background: rgba(115,198,255,.18); padding: .1rem .5rem;
 font-size: .7rem; letter-spacing: 0;
}
/* Wrap the actual links: collapsing alone would not fix their overflow. */
ul.actions, .link-disclosure ul.actions:not(.fixed) {
 display: flex; flex-wrap: wrap; flex-direction: row; gap: .65rem;
 width: auto; margin: 0; padding: 1rem; align-items: stretch;
}
ul.actions li, .link-disclosure ul.actions:not(.fixed) li {
 min-width: 0; max-width: 100%; width: auto; padding: 0; margin: 0;
}
.link-disclosure .actions li { flex: 0 1 auto; }
ul.actions li .button, .link-disclosure ul.actions:not(.fixed) li .button {
 display: flex; justify-content: center; align-items: center;
 min-height: 44px; height: auto; line-height: 1.5; white-space: normal;
 overflow-wrap: anywhere; padding: .85rem 1.1rem; max-width: 100%;
 letter-spacing: .08em; font-size: .72rem;
 transition: transform .2s, background-color .2s, box-shadow .2s;
}
.link-disclosure[open] ul.actions { animation: links-in .22s ease-out; }
@keyframes links-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.music-item.reveal-pending { opacity: 0; transform: translateY(28px); }
.music-item.reveal-enabled { transition: opacity .32s ease, transform .38s cubic-bezier(.16,1,.3,1); }
.music-item.is-revealing, .music-item.reveal-enabled:focus-within { opacity: 1; transform: none; }
a:focus-visible, summary:focus-visible, .artwork-toggle:focus-visible { outline: 3px solid #1484c5; outline-offset: 4px; }
.table-wrapper { max-width: 100%; }
table td, table th { overflow-wrap: anywhere; }
@media (hover: hover) {
 ul.actions li .button:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(5,53,95,.14); }
 .music-item .image img { transition: transform .3s; }
 .music-item:hover .image img { transform: translateY(-3px); }
}
@media (max-width: 736px) {
 .content-section { padding-bottom: 3rem; }
}
@media (max-width: 480px) {
 .music-item { padding: 1rem; border-radius: .75rem; }
 .music-item .image.left { width: 110px; padding-right: 1rem; }
 .link-disclosure ul.actions:not(.fixed) li { flex: 1 1 100%; }
 .link-disclosure ul.actions:not(.fixed) li .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
 .music-item.reveal-pending { opacity: 1; transform: none; }
}

.artwork-toggle {
 display: block; width: 100%; height: auto; padding: 0; margin: 0;
 border: 0; border-radius: 4px; box-shadow: none; background: transparent;
 font: inherit; line-height: inherit; letter-spacing: normal; text-transform: none;
 cursor: pointer; overflow: visible; white-space: normal;
}
.artwork-toggle:hover, .artwork-toggle:active { background: transparent; box-shadow: none; }
.link-disclosure .button.primary { background: #000; }
.link-disclosure .button.primary:hover { background: #1683cd; }
.music-item .button.primary:hover { color: #fff !important; }

/* Compact branding. One cached PNG, two clipped copies, one tiny canvas
   drawn once; the animation itself uses only CSS. No layout collapse. */
.brand-header {
 box-sizing: border-box;
 height: 150px; padding-top: 24px;
 display: flex; align-items: center; justify-content: center;
 overflow: hidden; background: transparent;
}
.glitch-logo {
 position: relative; width: 340px; max-width: calc(100% - 32px); filter: invert(1);
 opacity: var(--logo-opacity, 1); transform: translateY(var(--logo-shift, 0px));
}
.glitch-logo > img { display: block; width: 100%; height: auto; }
.glitch-logo::before, .glitch-logo::after, .logo-pixels {
 position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
 opacity: 0;
}
.glitch-logo::before, .glitch-logo::after {
 content: ''; background: url('../images/zenitlogo_bg.png') center / 100% 100% no-repeat;
 animation: logo-slice 6.2s steps(1, end) infinite;
}
.glitch-logo::before { filter: drop-shadow(-1px 0 #39dcf5); }
.glitch-logo::after {
 filter: drop-shadow(1px 0 #ff5faf); animation-delay: .12s;
 animation-direction: reverse;
}
.logo-pixels { image-rendering: pixelated; animation: logo-blocks 6.2s steps(1, end) infinite; }
@keyframes logo-slice {
 0%, 71%, 78%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
 72% { opacity: .9; transform: translateX(7px); clip-path: inset(22% 0 53%); }
 74% { opacity: .8; transform: translateX(-8px); clip-path: inset(56% 0 21%); }
 76% { opacity: .9; transform: translateX(5px); clip-path: inset(35% 0 42%); }
}
@keyframes logo-blocks {
 0%, 73%, 80%, 100% { opacity: 0; }
 74% { opacity: .85; transform: translateX(-5px);
  clip-path: polygon(8% 30%, 28% 30%, 28% 45%, 8% 45%, 8% 30%, 55% 42%, 78% 42%, 78% 58%, 55% 58%, 55% 42%); }
 77% { opacity: .8; transform: translateX(4px);
  clip-path: polygon(15% 64%, 34% 64%, 34% 80%, 15% 80%, 15% 64%, 72% 30%, 96% 30%, 96% 44%, 72% 44%, 72% 30%); }
}
.brand-header.is-away .glitch-logo::before,
.brand-header.is-away .glitch-logo::after,
.brand-header.is-away .logo-pixels { animation-play-state: paused; }
@media (max-width: 736px) {
 .brand-header { height: 150px; padding-top: 8px; padding-bottom: 40px; }
 .glitch-logo { width: 270px; }
}
/* One slower burst on pointer entry, then the periodic animation resumes. */
.glitch-logo { display: block; border: 0; cursor: pointer; }
.glitch-logo:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; }
@media (hover: hover) and (pointer: fine) {
 .glitch-logo.is-hover-glitch::before, .glitch-logo.is-hover-glitch::after { animation: logo-hover-slice 1.4s steps(1, end) 1; }
 .glitch-logo.is-hover-glitch::after { animation-delay: .12s; animation-direction: reverse; }
 .glitch-logo.is-hover-glitch .logo-pixels { animation: logo-blocks 1.4s steps(1, end) 1; }
}
@keyframes logo-hover-slice {
 0%, 40%, 80%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
 12%, 55% { opacity: .9; transform: translateX(7px); clip-path: inset(22% 0 53%); }
 24%, 66% { opacity: .8; transform: translateX(-8px); clip-path: inset(56% 0 21%); }
 34%, 74% { opacity: .9; transform: translateX(5px); clip-path: inset(35% 0 42%); }
}
.music-item.reveal-pending { opacity: 0; transform: translateY(56px); pointer-events: none; }
.music-item.is-revealing, .music-item.reveal-enabled:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.music-item.reveal-enabled { transition: opacity .36s ease, transform .42s cubic-bezier(.22,.68,0,1); }
.back-to-top {
 position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
 z-index: 100; width: 46px; height: 46px; display: grid; place-items: center;
 border: 1px solid #ffffff70; border-radius: 50%; background: #22212de8; color: white !important;
 box-shadow: 0 3px 15px #0003; opacity: 0; visibility: hidden; transform: translateY(12px);
 transition: opacity .2s, transform .2s, visibility .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:focus-visible { outline: 3px solid #ff9800; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
 .music-item.reveal-enabled, .back-to-top { transition: none; }
 .music-item.reveal-pending { opacity: 1; transform: none; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
 .glitch-logo { transform: none; opacity: 1; }
 .glitch-logo::before, .glitch-logo::after, .logo-pixels { display: none; }
}

/* Generated sections share the original full-width category treatment. */
.category-band {
 position: relative; overflow: hidden; isolation: isolate; clip-path: inset(0);
 background-color: #05539f; background-position: center; background-size: cover;
 background-repeat: no-repeat; background-attachment: fixed;
 padding: clamp(3rem, 6vw, 6rem) 0; margin-bottom: 50px;
 text-align: center; text-shadow: 2px 2px 5px #000; scroll-margin-top: 1rem;
}
.category-band > .inner { position: relative; }
.category-band h2 { position: relative; display: inline-block; color: #fff; margin: 0;
 font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: .16em; overflow-wrap: anywhere; }
.category-band .category-glitch::before { animation-delay: var(--glitch-delay, 0s); }
.category-band .category-glitch::after { animation-delay: calc(var(--glitch-delay, 0s) + .13s); }
.shows-content { padding: 2rem 0 5rem; }
.shows-content a { color: #05539f; }
.music-item blockquote > em { font-style: normal; }
