/* Discografia / Underground Zine
   Scoped exclusively to discografia.html. Deliberately does not change the mechanics
   of cover-flow transforms, shelf layout calculation, CD opening or booklet paging.
   Uses the same palette and vocabulary as the approved grunge home. */

html.grunge-site body.discography-page {
  --dg-paper: var(--gr-paper, #e8e0cf);
  --dg-paper-light: var(--gr-paper-light, #f3ecd9);
  --dg-ink: var(--gr-ink, #171915);
  --dg-coal: var(--gr-coal, #111310);
  --dg-red: var(--gr-red, #ba342c);
  --dg-green: var(--gr-green, #32553b);
  --dg-sand: #af8e77;
  --dg-heavy: 9px 11px 0 #050605, 15px 23px 32px #0007;
  background:
    radial-gradient(ellipse at 10% 14%, #374d3929, transparent 34%),
    radial-gradient(ellipse at 92% 35%, #b9322d1c, transparent 29%),
    repeating-linear-gradient(96deg, #ffffff03 0 1px, transparent 1px 67px),
    #111310;
  color: var(--dg-paper-light);
  font-family: 'Roboto', Arial, sans-serif;
}
html.grunge-site body.discography-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .075;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 170 170' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

html.grunge-site body.discography-page #discography {
  max-width: 1460px;
  padding: 0 clamp(16px, 3.4vw, 54px) 130px;
}

/* Reveal the existing accessible page title as a pasted zine masthead. */
html.grunge-site body.discography-page #discography > h1.visually-hidden {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: clamp(22px, 3vw, 43px) 0 32px;
  padding: clamp(19px, 2.6vw, 33px) clamp(21px, 3vw, 43px);
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
  line-height: .99;
  font: 900 clamp(2.1rem, 4.7vw, 4.65rem)/.99 var(--gr-condensed, Impact, sans-serif);
  letter-spacing: -.057em;
  text-transform: uppercase;
  color: var(--dg-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, #4d432d09 27px 28px),
    linear-gradient(125deg, #f1e8d7, #dfd0b6);
  border: 3px solid var(--dg-ink);
  box-shadow: var(--dg-heavy);
  transform: rotate(-.5deg);
  isolation: isolate;
}
html.grunge-site body.discography-page #discography > h1.visually-hidden::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 14%;
  width: 110px;
  height: 31px;
  transform: rotate(-5deg);
  background: #bfb398bb;
  box-shadow: 0 1px 4px #0005;
  clip-path: polygon(0 5%,100% 0,98% 100%,2% 95%);
  pointer-events: none;
}
html.grunge-site body.discography-page #discography > h1.visually-hidden::after {
  content: '';
  display: block;
  margin: 14px 0 -6px;
  width: min(55%, 470px);
  height: 12px;
  background: var(--dg-red);
  clip-path: polygon(0 15%, 100% 0, 97% 80%, 1% 100%);
  transform: rotate(-1deg);
  pointer-events: none;
}

/* Featured artwork stays untouched; only the surrounding frame is reworked. */
html.grunge-site body.discography-page .cover-flow {
  position: relative;
  margin: 18px 0 clamp(45px, 6vw, 75px);
  padding: clamp(26px, 3.2vw, 45px) clamp(12px, 3vw, 42px) 28px;
  color: var(--dg-paper-light);
  background:
    radial-gradient(ellipse at 50% 30%, #4b372c75, transparent 65%),
    repeating-linear-gradient(-35deg, transparent 0 30px, #ffffff06 31px 32px, transparent 33px 67px),
    linear-gradient(140deg, #262d24, #111714 73%);
  border: 3px solid #080a08;
  border-top: 9px solid var(--dg-red);
  border-radius: 0;
  box-shadow: 12px 13px 0 #050605, 17px 26px 32px #0005;
  isolation: isolate;
  overflow: hidden;
}
html.grunge-site body.discography-page .cover-flow::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #080a08 0 25px, #b8a88b 25px 39px, #080a08 39px 60px);
  opacity: .68;
  pointer-events: none;
}
html.grunge-site body.discography-page .cover-flow::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 14px;
  width: 130px;
  height: 6px;
  background: var(--dg-red);
  transform: rotate(-3deg);
  clip-path: polygon(0 10%,100% 0,97% 100%,2% 88%);
  pointer-events: none;
}
html.grunge-site body.discography-page .flow-covers {
  height: clamp(260px, 25vw, 350px);
}
html.grunge-site body.discography-page .flow-cover {
  border: 5px solid #e7dec9 !important;
  border-bottom-width: 9px !important;
  border-radius: 0 !important;
  background: #141713 !important;
  box-shadow: 5px 7px 0 #080a08, 13px 20px 33px #000a !important;
  /* JS controls transforms and stacking; intentionally not overridden. */
}
html.grunge-site body.discography-page .flow-cover:is(:hover,:focus-visible) {
  border-color: #f6efe0 !important;
  outline-color: var(--dg-red);
}
html.grunge-site body.discography-page .flow-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at center, #0002 0 1px, transparent 1.7px 6px);
  mix-blend-mode: multiply;
  opacity: .32;
  pointer-events: none;
}
html.grunge-site body.discography-page .flow-cover img { display: block; object-fit: cover; }
html.grunge-site body.discography-page .flow-navigation {
  position: relative;
  width: min(760px, 100%);
  margin: 12px auto 8px;
  padding: 10px 12px;
  background: linear-gradient(125deg,#eee5d3,#d9cbb2);
  color: var(--dg-ink);
  border: 2px solid var(--dg-ink);
  box-shadow: 5px 6px 0 #080a08;
  transform: rotate(.4deg);
}
html.grunge-site body.discography-page .flow-navigation p {
  color: var(--dg-ink);
  font: 900 clamp(.93rem,1.5vw,1.2rem)/1.22 var(--gr-condensed, Impact, sans-serif);
  text-transform: uppercase;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
html.grunge-site body.discography-page .flow-navigation small {
  margin-top: 4px;
  color: #535346;
  font: 700 .68rem/1.25 var(--gr-mono, monospace);
  text-transform: none;
  letter-spacing: .01em;
}
html.grunge-site body.discography-page .flow-navigation button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 2px solid var(--dg-ink);
  border-radius: 0;
  color: var(--dg-paper-light);
  background: var(--dg-ink);
  font-weight: 900;
  box-shadow: 3px 4px 0 #9f9281;
}
html.grunge-site body.discography-page .flow-navigation #flow-rotation {
  background: var(--dg-red);
  border-color: #6d241e;
}
html.grunge-site body.discography-page .flow-navigation button:hover {
  background: var(--dg-green);
}
html.grunge-site body.discography-page .flow-navigation #flow-rotation:hover {
  background: #982b25;
}

/* Shelf heading is a printed headline, the count a contrasting archive label. */
html.grunge-site body.discography-page .collection-heading {
  position: relative;
  border-top: 0;
  border-bottom: 3px solid #b9322d;
  align-items: end;
  padding: 0 0 21px;
  margin: 0 0 14px;
}
html.grunge-site body.discography-page .collection-heading h2,
html.grunge-site body.discography-page #remix-title {
  margin: 0;
  padding: 0;
  color: var(--dg-paper-light);
  font: 900 clamp(2.1rem, 4.2vw, 4.2rem)/1.02 var(--gr-condensed, Impact, sans-serif);
  text-transform: uppercase;
  letter-spacing: -.045em;
  text-wrap: balance;
}
html.grunge-site body.discography-page #catalog-status {
  display: inline-block;
  width: fit-content;
  padding: 9px 14px;
  margin: 0 0 23px;
  color: var(--dg-ink);
  background: var(--dg-paper);
  border: 2px solid var(--dg-ink);
  box-shadow: 4px 5px 0 #050605;
  font: 800 .77rem/1.1 var(--gr-mono, monospace);
  text-transform: uppercase;
  transform: rotate(-1deg);
}

/* Frame each group as a battered cardboard record box.
   The shelf script determines the number of spines; sizes and mechanics unchanged. */
html.grunge-site body.discography-page #release-shelves,
html.grunge-site body.discography-page #remix-shelves {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 29px 25px;
  margin-top: 14px;
}
html.grunge-site body.discography-page .cd-year-group .media-shelf-frame {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 22px 20px 20px;
  overflow: visible;
  border: 3px solid #080a08;
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, #4d432d0a 28px 29px),
    linear-gradient(128deg,#e8e0cf,#d4c8b5);
  box-shadow: 8px 9px 0 #050605, 13px 18px 24px #0005;
}
html.grunge-site body.discography-page .cd-year-group .media-shelf-frame:nth-child(2n) {
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, #5f513b0a 31px 32px),
    linear-gradient(135deg,#d4ccba,#eee3d1);
}
html.grunge-site body.discography-page .cd-year-group .media-shelf-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 14%;
  width: 82px;
  height: 25px;
  transform: rotate(4deg);
  background: #b5ad92c7;
  clip-path: polygon(0 6%,100% 0,98% 95%,3% 100%);
  box-shadow: 0 1px 3px #0004;
  pointer-events: none;
  z-index: 1;
}
html.grunge-site body.discography-page .cd-year-group .year-heading {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: -3px 0 15px;
  padding: 6px 11px;
  border: 2px solid var(--dg-ink);
  color: var(--dg-paper-light);
  background: var(--dg-red);
  font: 900 1.22rem/1.12 var(--gr-condensed, Impact, sans-serif);
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: rotate(-1.3deg);
}
html.grunge-site body.discography-page .cd-year-group .media-shelf-frame:nth-child(2n) .year-heading {
  background: var(--dg-green);
  transform: rotate(1.1deg);
}
html.grunge-site body.discography-page .cd-year-group .media-shelf-continuation {
  font: 700 .62rem/1.1 var(--gr-mono, monospace);
  letter-spacing: 0;
  color: #f0e6d4;
  text-transform: none;
}
html.grunge-site body.discography-page .cd-year-group .cd-shelf {
  width: 100%;
  max-width: 100%;
  min-height: 253px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 19px 11px 18px;
  gap: 3px;
  border: 2px solid #171915;
  border-bottom: 15px solid #4b372c;
  border-radius: 0;
  background:
    linear-gradient(180deg,#02040299,#0e120f5e 58%,#080907d9),
    repeating-linear-gradient(87deg,#2c3028 0 7px,#30372d 7px 13px);
  box-shadow: inset 0 10px 16px #0005, 0 7px 9px #0005;
  scrollbar-color: #af8e77 #111310;
}
html.grunge-site body.discography-page .cd-year-group .cd-spine {
  border-radius: 0 !important;
  border: 2px solid var(--accent,#8f9c89) !important;
  border-left: 4px solid #d1c4ac !important;
  border-right: 2px solid #0e100d !important;
  background:
    linear-gradient(90deg,#f3edd633,#03050377 19%,#030503aa 75%,#e9e0c82a),
    var(--cover) center/cover !important;
  box-shadow: 3px 0 4px #0009, inset 1px 0 1px #ffffff4a;
  color: #fff8e8;
}
html.grunge-site body.discography-page .cd-year-group .cd-spine:is(:hover,:focus-visible) {
  border-color: var(--dg-red) !important;
  box-shadow: 4px 10px 12px #000a, inset 1px 0 1px #ffffff50;
  /* Keep the original translateY interaction. */
}
html.grunge-site body.discography-page .cd-year-group .cd-spine.is-selected {
  border-color: #e7d9c0 !important;
}
html.grunge-site body.discography-page .cd-year-group .cd-spine span {
  font: 800 12px/1.18 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #000,0 0 6px #000;
}
html.grunge-site body.discography-page .cd-year-group .cd-spine small {
  font: 700 9px/1.15 var(--gr-mono, monospace);
  color: #dfddcd;
}
html.grunge-site body.discography-page #remix-section {
  margin-top: 75px;
  border-top: 4px solid var(--dg-red);
  padding-top: 32px;
}
html.grunge-site body.discography-page #remix-title { margin-bottom: 26px; }

/* Fixed audio player: black printed control strip with crimson edge. */
html.grunge-site body.discography-page .player-dock {
  color: var(--dg-paper-light);
  background:
    repeating-linear-gradient(90deg,#ffffff04 0 1px,transparent 1px 35px),
    linear-gradient(170deg,#212820,#0a0d0b 80%);
  border-top: 5px solid var(--dg-red);
  box-shadow: 0 -6px 0 #050605, 0 -14px 26px #0008;
  backdrop-filter: none;
}
html.grunge-site body.discography-page .player-dock h2 {
  color: var(--dg-paper-light);
  font: 900 14px/1.18 var(--gr-condensed, Impact, sans-serif);
  text-transform: uppercase;
  letter-spacing: .025em;
}
html.grunge-site body.discography-page .player-dock #now-playing-artist {
  color: #cbbda5;
  font: 700 10px/1.3 var(--gr-mono, monospace);
}
html.grunge-site body.discography-page .player-dock .playback-controls input[type='range'] {
  accent-color: var(--dg-red);
}
html.grunge-site body.discography-page .player-dock button {
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--dg-paper-light);
}
html.grunge-site body.discography-page .player-dock button:hover:not(:disabled) {
  background: #eee0c52b;
  border-color: #af8e7766;
}
html.grunge-site body.discography-page .player-dock #dock-play {
  color: var(--dg-paper-light);
  background: var(--dg-red);
  border: 1px solid #e0c2a580;
  box-shadow: 2px 2px 0 #060806;
}
html.grunge-site body.discography-page .player-dock #dock-play:hover:not(:disabled) {
  background: #a42e28;
}
html.grunge-site body.discography-page .player-dock #video-version {
  color: var(--dg-ink);
  background: #f1e7d2;
  border: 1px solid #af8e77;
  border-radius: 0;
}
html.grunge-site body.discography-page .player-dock .mini-progress p { color: #c4b9a7; }
html.grunge-site body.discography-page .player-dock .youtube-frame {
  border: 3px solid var(--dg-paper-light);
  border-radius: 0;
  box-shadow: 6px 7px 0 #050605, 0 16px 28px #0009;
}

/* Search stays in its original floating position, above the player. */
html.grunge-site body.discography-page .music-search-toggle {
  background: var(--dg-red);
  color: var(--dg-paper-light);
  border: 3px solid #0b0d0b;
  border-radius: 0;
  box-shadow: 5px 6px 0 #050605;
}
html.grunge-site body.discography-page .music-search-toggle:hover {
  background: #a42e28;
}
html.grunge-site body.discography-page .music-search-panel {
  color: var(--dg-ink);
  background:
    repeating-linear-gradient(0deg,transparent 0 30px,#4d432d09 30px 31px),
    linear-gradient(125deg,#f1e8d7,#d9cbb3);
  border: 3px solid var(--dg-ink);
  border-radius: 0;
  box-shadow: 9px 11px 0 #050605;
  font-family: 'Roboto', Arial, sans-serif;
}
html.grunge-site body.discography-page .music-search-panel h2 {
  color: var(--dg-ink);
  font: 900 1.4rem/1.13 var(--gr-condensed, Impact, sans-serif);
  text-transform: uppercase;
}
html.grunge-site body.discography-page .music-search-panel label { color: #353b30; }
html.grunge-site body.discography-page .music-search-panel input {
  background: #fffaf0;
  color: var(--dg-ink);
  border: 2px solid #575446;
  border-radius: 0;
}
html.grunge-site body.discography-page .music-search-close { color: var(--dg-ink); }

/* CD jewel case retains 100% of opening / closing / paging geometry. */
html.grunge-site body.discography-page .case-overlay {
  background: #080a08de;
  backdrop-filter: blur(3px);
}
html.grunge-site body.discography-page .jewel-case,
html.grunge-site body.discography-page .jewel-case.is-open {
  color: var(--dg-paper-light);
  background:
    repeating-linear-gradient(96deg,#ffffff03 0 1px,transparent 1px 35px),
    linear-gradient(145deg,#313b30,#131a14 80%);
  border: 3px solid #0a0c0a;
  border-radius: 0;
  box-shadow: 12px 14px 0 #050605, 0 30px 80px #000c;
}
html.grunge-site body.discography-page .jewel-case .case-close {
  color: var(--dg-paper-light);
  background: var(--dg-red) !important;
  border: 2px solid var(--dg-ink);
  border-radius: 0;
  box-shadow: 4px 5px 0 #050605;
}
html.grunge-site body.discography-page .jewel-case .case-front {
  background: #1b231a !important;
  border: 7px ridge #b5a48b !important;
  border-radius: 0;
}
html.grunge-site body.discography-page .jewel-case .case-front span {
  color: var(--dg-paper-light);
  background: #171915dd;
  font: 900 .86rem/1.3 var(--gr-condensed, Impact, sans-serif);
  letter-spacing: .035em;
  text-transform: uppercase;
}
html.grunge-site body.discography-page .jewel-case.is-open .case-interior {
  background: #1d2920;
  border: 2px ridge #7a8774;
  border-radius: 0;
}
html.grunge-site body.discography-page .jewel-case.is-open .disc-tray {
  background: radial-gradient(ellipse at center,#52644d71,#101812 72%);
}
html.grunge-site body.discography-page .jewel-case.is-open .case-back {
  background:
    repeating-linear-gradient(0deg,transparent 0 26px,#ffffff05 26px 27px),
    linear-gradient(125deg,#344335,#18251d);
  color: var(--dg-paper-light);
  border-left-color: #af8e77;
}
html.grunge-site body.discography-page .jewel-case.is-open .case-pages {
  color: var(--dg-paper-light);
}
html.grunge-site body.discography-page .booklet-page h2 {
  color: var(--dg-paper-light);
  font: 900 1.12rem/1.2 var(--gr-condensed, Impact, sans-serif);
  text-transform: uppercase;
}
html.grunge-site body.discography-page .booklet-page h3 {
  color: #d8be91;
  font-family: var(--gr-mono, monospace);
  font-size: 11px;
}
html.grunge-site body.discography-page .booklet-page p,
html.grunge-site body.discography-page .booklet-page .media-detail-meta {
  color: #e4e0ce;
}
html.grunge-site body.discography-page .booklet-link {
  color: #e1d1ae;
  text-decoration: underline;
  text-decoration-color: var(--dg-red);
  text-underline-offset: 3px;
}
html.grunge-site body.discography-page .booklet-track {
  color: var(--dg-paper-light);
  border-bottom-color: #af8e7755;
}
html.grunge-site body.discography-page .booklet-track:is(:hover,:focus-visible) {
  background: #ffffff1b;
}
html.grunge-site body.discography-page .booklet-track.is-playing {
  color: #fff7df !important;
  background: #ba342c55 !important;
  border-left-color: var(--dg-red) !important;
}
html.grunge-site body.discography-page .booklet-navigation,
html.grunge-site body.discography-page .case-context {
  border-top-color: #af8e7766;
}
html.grunge-site body.discography-page .booklet-navigation span {
  color: #e0d2b8;
  font-family: var(--gr-mono, monospace);
}
html.grunge-site body.discography-page .booklet-navigation button,
html.grunge-site body.discography-page .case-context button {
  background: #e8e0cf;
  color: var(--dg-ink);
  border: 1px solid #171915;
  border-radius: 0;
}
html.grunge-site body.discography-page .booklet-navigation button:hover:not(:disabled),
html.grunge-site body.discography-page .case-context button:hover:not(:disabled) {
  background: #cfbca2;
}

@media (max-width: 920px) {
  html.grunge-site body.discography-page #release-shelves,
  html.grunge-site body.discography-page #remix-shelves { grid-template-columns: 1fr; }
  html.grunge-site body.discography-page .cd-year-group .media-shelf-frame { width: 100%; }
}
@media (max-width: 640px) {
  html.grunge-site body.discography-page #discography { padding-inline: 12px; }
  html.grunge-site body.discography-page #discography > h1.visually-hidden {
    margin: 21px 7px 30px;
    padding: 17px 15px;
    font-size: clamp(1.85rem, 8.1vw, 3.2rem);
    box-shadow: 6px 7px 0 #050605;
  }
  html.grunge-site body.discography-page #discography > h1.visually-hidden::before { width: 74px; height: 25px; top: -13px; }
  html.grunge-site body.discography-page .cover-flow {
    padding: 20px 6px 19px;
    margin: 13px 3px 47px;
    box-shadow: 7px 8px 0 #050605;
  }
  html.grunge-site body.discography-page .flow-navigation {
    width: calc(100% - 12px);
    gap: 5px;
    padding: 7px 5px;
    transform: none;
  }
  html.grunge-site body.discography-page .flow-navigation button {
    flex-basis: 34px;
    width: 34px;
    height: 38px;
    min-height: 38px;
  }
  html.grunge-site body.discography-page .flow-navigation p { width: 54%; font-size: .85rem; }
  html.grunge-site body.discography-page .flow-navigation small { font-size: .6rem; }
  html.grunge-site body.discography-page .collection-heading h2,
  html.grunge-site body.discography-page #remix-title { font-size: clamp(2.05rem, 9vw, 3rem); }
  html.grunge-site body.discography-page .cd-year-group .media-shelf-frame {
    padding: 17px 10px 14px;
    box-shadow: 6px 7px 0 #050605;
  }
  html.grunge-site body.discography-page .cd-year-group .cd-shelf { padding: 18px 9px 13px; }
  html.grunge-site body.discography-page .cd-year-group .year-heading { margin-bottom: 12px; }
  html.grunge-site body.discography-page .player-dock { padding-inline: 10px; }
  html.grunge-site body.discography-page .jewel-case,
  html.grunge-site body.discography-page .jewel-case.is-open { box-shadow: 5px 6px 0 #050605, 0 20px 40px #000b; }
}
@media (prefers-reduced-motion: reduce) {
  html.grunge-site body.discography-page #discography > h1.visually-hidden,
  html.grunge-site body.discography-page .flow-navigation,
  html.grunge-site body.discography-page .cd-year-group .year-heading { transform: none; }
}
