/* /music · The Holy Voltage Catalog — layered on /assets/voltage-core/css/site.css */
:root { --mood: #22e6ff; }

/* ---------- Hero ---------- */
.m-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-content: end; gap: 40px; padding: calc(var(--top-h) + 40px) var(--pad) clamp(40px, 7vh, 80px); }
.m-hero-copy { max-width: 1100px; }
.m-hero .mega { font-size: clamp(60px, 9.4vw, 170px); max-width: 8em; }
.m-hero .lede { max-width: 50ch; }
.m-feat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; max-width: 720px; padding: 16px; border-radius: 22px; background: rgba(2,2,6,.62); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; overflow: hidden; }
.m-feat::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--spectrum); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .8; pointer-events: none; }
.m-feat-art { width: 148px; height: 148px; border-radius: 14px; object-fit: cover; box-shadow: 0 20px 60px -20px rgba(34,230,255,.6); }
.m-feat-title { margin: 4px 0 0; font: 900 clamp(38px, 4.4vw, 64px)/.9 var(--display); text-transform: uppercase; }
.m-feat-line { margin: 8px 0 14px; color: #dfe2fb; }
.m-feat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.m-feat .btn { padding: 14px 20px; font-size: 15px; }

.m-proof { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0; padding: 0; list-style: none; }
.m-proof li { display: flex; align-items: baseline; gap: 10px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-proof b { font: 900 clamp(34px, 3.4vw, 52px)/1 var(--display); letter-spacing: 0; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

/* ---------- Section shell ---------- */
.m-sec { position: relative; z-index: 3; padding: clamp(90px, 13vh, 150px) var(--pad); background: rgba(2,2,6,.9); border-top: 1px solid var(--line); }
.m-sec::before { content: ''; position: absolute; left: var(--pad); right: var(--pad); top: -1px; height: 1px; background: var(--spectrum); opacity: .6; }
.m-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 40px; margin-bottom: 44px; }
.m-head .sub { margin-top: 14px; }
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in, .motion-off [data-reveal] { opacity: 1; transform: none; }

/* ---------- Moods ---------- */
.m-moods { display: flex; flex-wrap: wrap; gap: 10px; }
.m-mood { --c: var(--cyan); position: relative; padding: 16px 24px; min-height: 54px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); cursor: pointer; font: 900 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .25s, border-color .25s, background .25s, box-shadow .25s, transform .25s var(--ease); }
.m-mood:hover { color: #fff; border-color: var(--c); transform: translateY(-2px); }
.m-mood[aria-selected="true"] { color: #02030a; background: var(--c); border-color: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 12px 44px -8px var(--c); }
.m-mood-line { margin: 22px 0 0; font: 800 clamp(26px, 2.8vw, 40px)/1.1 var(--display); text-transform: uppercase; color: var(--mood); text-shadow: 0 0 30px color-mix(in srgb, var(--mood) 45%, transparent); transition: color .4s; }

/* ---------- Tiles ---------- */
.m-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 20px; margin-top: 36px; }
.m-tile { --rx: 0deg; --ry: 0deg; --gx: 50%; position: relative; perspective: 900px; }
.m-grid .m-tile { opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.m-grid.is-in .m-tile, .motion-off .m-grid .m-tile { opacity: 1; transform: none; }
.m-tile-art { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(0,0,0,.9); }
.m-tile-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at var(--gx) 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(180deg, transparent 55%, rgba(2,2,6,.7)); opacity: .0; transition: opacity .3s; pointer-events: none; }
.m-tile:hover .m-tile-art { box-shadow: 0 0 0 1px var(--mood), 0 30px 70px -26px var(--mood); }
.m-tile:hover .m-tile-art::after, .m-tile.is-playing .m-tile-art::after { opacity: 1; }
.m-tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.m-tile:hover .m-tile-art img { transform: scale(1.06); }
.m-tile-play { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; background: #fff; color: #02030a; font: 700 14px/1 var(--body); box-shadow: 0 10px 30px -8px rgba(0,0,0,.7); transform: translateY(6px); opacity: .92; transition: transform .25s var(--ease), opacity .25s, background .25s; }
.m-tile:hover .m-tile-play, .m-tile-play:focus-visible, .m-tile.is-playing .m-tile-play { transform: none; opacity: 1; }
.m-tile.is-playing .m-tile-play { background: var(--cyan); }
.m-tile-play .play-icon { border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.m-eq { position: absolute; left: 14px; bottom: 16px; z-index: 2; display: flex; gap: 4px; align-items: end; height: 22px; opacity: 0; transition: opacity .3s; }
.m-eq i { width: 4px; height: 30%; border-radius: 2px; background: #fff; box-shadow: 0 0 10px var(--cyan); animation: eq .9s ease-in-out infinite; }
.m-eq i:nth-child(2) { animation-delay: -.3s; } .m-eq i:nth-child(3) { animation-delay: -.6s; } .m-eq i:nth-child(4) { animation-delay: -.15s; }
.m-tile.is-playing .m-eq { opacity: 1; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.m-tile-meta { padding: 14px 2px 0; }
.m-tile-title { margin: 0; font: 900 24px/1 var(--display); text-transform: uppercase; }
.m-tile-title a { text-decoration: none; }
.m-tile-title a:hover { color: var(--cyan); }
.m-tile-kind { margin: 6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.3; }
.m-tile-actions { display: flex; gap: 10px; align-items: center; }
.m-buy { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; font: 700 13px/1 var(--mono); letter-spacing: .04em; color: var(--text); border: 1px solid var(--line-strong); transition: border-color .2s, background .2s, color .2s; white-space: nowrap; }
.m-buy:hover { border-color: var(--cyan); background: rgba(34,230,255,.1); color: #fff; }
.m-buy-sm { min-height: 34px; padding: 0 12px; font-size: 12px; }
.m-nopreview { font: 600 12px/1 var(--mono); color: var(--dim); }

/* ---------- Album coverflow ---------- */
.m-albums { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.m-flow-wrap { position: sticky; top: calc(var(--top-h) + 30px); }
.m-flow { position: relative; height: clamp(340px, 34vw, 520px); perspective: 1400px; transform-style: preserve-3d; touch-action: pan-y; outline: none; }
.m-cover { position: absolute; left: 50%; top: 50%; width: clamp(220px, 22vw, 340px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #000; transition: transform .8s var(--ease), opacity .6s, box-shadow .6s; box-shadow: 0 30px 80px -30px rgba(0,0,0,.95); -webkit-box-reflect: below 8px linear-gradient(transparent 70%, rgba(255,255,255,.18)); }
.m-cover img { width: 100%; height: 100%; object-fit: cover; }
.m-cover.is-active { box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 0 70px -10px rgba(34,230,255,.55), 0 0 120px -20px rgba(255,43,214,.45); }
.m-flow-nav { display: flex; justify-content: center; gap: 14px; margin-top: 50px; }
.m-flow-nav .round { width: 54px; height: 54px; font-size: 20px; }
.m-album { opacity: 0; transform: translateX(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.m-album.is-in { opacity: 1; transform: none; }
.m-album-title { margin: 6px 0 0; font: 900 clamp(48px, 5.4vw, 96px)/.88 var(--display); text-transform: uppercase; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-album-desc { max-width: 52ch; color: #dfe2fb; }
.m-album-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.m-album-links { display: flex; gap: 22px; margin: 18px 0 0; }
.m-tracks { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); columns: 1; }
.m-tracks li { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.m-tracks .n { font: 700 12px/1 var(--mono); color: var(--dim); }
.m-tracks .t { font-weight: 600; }

/* ---------- Singles rail ---------- */
.m-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 19vw, 290px); gap: 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 6px 2px 26px; margin: 0 calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--violet) transparent; }
.m-rail .m-tile { scroll-snap-align: start; }

/* ---------- Every song index ---------- */
.m-search { display: flex; align-items: center; gap: 14px; }
.m-search input { width: min(420px, 100%); height: 56px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); font: 500 17px var(--body); }
.m-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,230,255,.15); }
.m-index { columns: 2; column-gap: clamp(30px, 4vw, 70px); }
.m-group { break-inside: avoid; margin: 0 0 40px; }
.m-group[hidden], [data-row][hidden] { display: none; }
.m-group-title { margin: 0 0 8px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.m-group-title span { color: var(--dim); }
.m-group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.m-group li { display: grid; grid-template-columns: 48px minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-group li img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.m-row-t { min-width: 0; font-weight: 600; line-height: 1.25; }
.m-row-t a { text-decoration: none; } .m-row-t a:hover { color: var(--cyan); }
.m-row-t small { display: block; color: var(--dim); font-size: 13px; font-weight: 500; }
.m-row-play { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font: 700 12px/1 var(--mono); color: var(--muted); }
.m-row-play:hover, .m-row-play.is-playing { color: #02030a; background: var(--cyan); border-color: var(--cyan); }
.m-row-play .play-icon { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }

/* ---------- Own vs stream ---------- */
.m-ways { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid var(--line); }
.m-ways > div { padding: 34px 30px 10px 0; border-right: 1px solid var(--line); }
.m-ways > div + div { padding-left: 30px; }
.m-ways > div:last-child { border-right: 0; }
.m-ways h3 { margin: 0 0 10px; font: 900 34px/1 var(--display); text-transform: uppercase; }
.m-ways p { margin: 0 0 18px; color: var(--muted); max-width: 40ch; }

/* ---------- Dock buy ---------- */
.dock .dock-get { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .m-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 1080px) {
  .m-albums { grid-template-columns: 1fr; }
  .m-flow-wrap { position: relative; top: 0; }
  .m-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .m-index { columns: 1; }
}
@media (max-width: 760px) {
  .m-hero { min-height: auto; padding-top: calc(var(--top-h) + 22px); gap: 26px; align-content: start; }
  .m-hero .mega { font-size: clamp(50px, 15vw, 72px); }
  .m-hero .lede { font-size: 17px; margin-top: 14px; }
  .m-feat { grid-template-columns: 96px minmax(0,1fr); gap: 14px; padding: 12px; }
  .m-feat-art { width: 96px; height: 96px; }
  .m-feat-title { font-size: 36px; }
  .m-feat-line { display: none; }
  .m-feat .kicker { font-size: 10.5px; }
  .m-feat-actions { grid-column: 1 / -1; }
  .m-feat-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 50px; }
  .m-proof { gap: 8px 22px; }
  .m-proof b { font-size: 32px; }
  .m-sec { padding: 80px var(--pad); }
  .m-head { margin-bottom: 28px; }
  .m-moods { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 10px; scrollbar-width: none; }
  .m-moods::-webkit-scrollbar { display: none; }
  .m-mood { flex: 0 0 auto; font-size: 19px; padding: 14px 20px; }
  .m-mood-line { font-size: 24px; }
  .m-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .m-grid .m-tile { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 16px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .m-grid .m-tile-art { border-radius: 12px; }
  .m-grid .m-tile-meta { padding: 0; }
  .m-grid .m-tile-title { font-size: 22px; }
  .m-grid .m-tile-kind { margin: 4px 0 10px; }
  .m-tile-play { right: auto; left: 50%; top: 50%; bottom: auto; width: 50px; height: 50px; min-height: 0; padding: 0; justify-content: center; transform: translate(-50%, -50%); opacity: .95; border-radius: 50%; }
  .m-tile:hover .m-tile-play, .m-tile.is-playing .m-tile-play { transform: translate(-50%, -50%); }
  .m-tile-play [data-play-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .m-eq { display: none; }
  .m-flow { height: 300px; }
  .m-cover { width: 200px; -webkit-box-reflect: unset; }
  .m-flow-nav { margin-top: 10px; }
  .m-album-title { font-size: 52px; }
  .m-album-actions .btn { flex: 1 1 100%; justify-content: center; }
  .m-rail { grid-auto-columns: 62%; gap: 14px; }
  .m-rail .m-tile-title { font-size: 20px; }
  .m-search { width: 100%; } .m-search input { width: 100%; }
  .m-group li { grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; }
  .m-group li img { width: 44px; height: 44px; }
  .m-group li .m-row-play { grid-column: 2; justify-self: start; min-height: 36px; }
  .m-group li .m-buy { grid-column: 3; grid-row: 1 / span 2; }
  .m-ways { grid-template-columns: 1fr; }
  .m-ways > div, .m-ways > div + div { padding: 26px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .m-tracks li { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .m-eq i { animation: none; height: 60%; } .m-cover { transition: none; } }
.motion-off .m-eq i { animation: none; height: 60%; }

/* Containment: horizontal rails and the 3D album wall must never widen the page */
.m-sec, .m-hero { overflow-x: clip; }
.m-flow-wrap { overflow: clip; overflow-clip-margin: 0; padding-block: 20px 0; }
@supports not (overflow: clip) { .m-sec, .m-hero, .m-flow-wrap { overflow-x: hidden; } }
/* Comfortable tap targets for text links */
.m-tile-title a, .m-row-t a { display: inline-block; padding: 6px 0; }
.m-feat-actions .link, .m-album-links .link { display: inline-flex; align-items: center; min-height: 40px; border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }

/* ---- critique pass 1 ---- */
.m-hero .mega { max-width: 6.4em; }
.m-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(2,2,6,.78) 0%, rgba(2,2,6,.5) 38%, transparent 62%); }
.m-hero { isolation: isolate; }
.m-hero-copy, .m-feat, .m-proof { position: relative; z-index: 1; }
.m-mood { color: #d4d8f2; border-color: rgba(190,200,255,.34); }
.m-mood-line { font-size: clamp(20px, 1.9vw, 28px); color: #e8ebff; text-shadow: none; }
.m-mood-line::before { content: ''; display: inline-block; width: 26px; height: 3px; margin: 0 12px 6px 0; border-radius: 2px; background: var(--mood); box-shadow: 0 0 14px var(--mood); vertical-align: middle; }
.m-tile { display: flex; flex-direction: column; }
.m-tile-meta { display: flex; flex-direction: column; flex: 1; }
.m-tile-title { line-height: 1.02; }
.m-tile-actions { margin-top: auto; }
.m-tile-play { right: 12px; bottom: 12px; width: 50px; height: 50px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; transform: scale(.92); }
.m-tile-play [data-play-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.m-tile:hover .m-tile-play, .m-tile-play:focus-visible, .m-tile.is-playing .m-tile-play { transform: scale(1); }
.m-tile-play .play-icon { margin-left: 3px; }
.m-tile.is-playing .m-tile-play .play-icon { margin-left: 0; }
.m-flow-wrap { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.m-cover { transition: transform .8s var(--ease), opacity .6s, box-shadow .6s, filter .6s; }
.m-tracks .n { color: var(--muted); }
.m-tracks.is-collapsed li:nth-child(n+7) { display: none; }
.m-more { margin-top: 14px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; font: 700 13px/1 var(--mono); letter-spacing: .04em; }
.m-more:hover { border-color: var(--cyan); }
.m-proof li { color: #c3c8e6; }
@media (max-width: 760px) {
  .m-hero::before { background: linear-gradient(180deg, rgba(2,2,6,.55) 0%, rgba(2,2,6,.35) 40%, rgba(2,2,6,.7) 100%); }
  .m-hero .mega { max-width: none; }
  .m-grid .m-tile { flex-direction: row; }
  .m-grid .m-tile-art { flex: 0 0 104px; }
  .m-tile-play { right: auto; bottom: auto; }
  .m-proof { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 30px; }
  .m-flow-wrap { -webkit-mask-image: none; mask-image: none; }
}

.m-buy { min-height: 44px; }
.m-buy-sm { min-height: 38px; }
.m-tile-kind, .m-row-t small { color: #aab0d0; }
@media (max-width: 760px) { .m-moods { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
