/* ============================================================
   MIKORNINCSTEMPO — ARCHÍVUM / NOCTURNE
   Editorial archive design system
   ============================================================ */

:root {
  --ink: #070b14;
  --ink-raised: #0d1424;
  --ink-panel: #121c30;
  --bone: #f0f6ff;
  --bone-dim: #c7d6ee;
  --ash: #8aa2c8;
  --ash-dark: #4f6488;
  --oxblood: #00f0ff;
  --oxblood-deep: #0b5d7a;
  --cyan: #00f0ff;
  --cyan-soft: rgba(0, 240, 255, 0.22);
  --blue: #2d7dff;
  --violet: #a855f7;
  --violet-soft: rgba(168, 85, 247, 0.22);
  --magenta: #ff2a85;
  --magenta-soft: rgba(255, 42, 133, 0.2);

  --line: rgba(0, 240, 255, 0.16);
  --line-strong: rgba(0, 240, 255, 0.38);
  --line-faint: rgba(168, 85, 247, 0.11);

  --font-display: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;

  --frame: 1440px;
  --gutter: 32px;
  --header-h: 78px;
  --player-h: 98px;

  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--player-h);
  background:
    radial-gradient(90% 55% at 50% -12%, rgba(0, 240, 255, 0.24), transparent 62%),
    radial-gradient(70% 45% at 88% 18%, rgba(255, 42, 133, 0.16), transparent 60%),
    linear-gradient(170deg, #091229 0%, #050814 48%, #0a0718 100%);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Moving cyber grid, CRT scanlines & digital interference */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.055) 0px,
      rgba(0, 240, 255, 0.055) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(to right, rgba(0, 240, 255, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 85, 247, 0.075) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='0.075' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100% 3px, 44px 44px, 44px 44px, 180px 180px;
  animation: gridScroll 10s linear infinite;
}

/* Dramatic multi-source neon ambient lighting + floating cyber particles */
body::after {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 82% 16%, rgba(0, 240, 255, 0.34), transparent 68%),
    radial-gradient(40% 36% at 14% 34%, rgba(168, 85, 247, 0.34), transparent 70%),
    radial-gradient(34% 28% at 76% 78%, rgba(255, 42, 133, 0.28), transparent 70%),
    radial-gradient(36% 28% at 22% 84%, rgba(45, 125, 255, 0.28), transparent 70%),
    radial-gradient(2px 2px at 14% 22%, rgba(0, 240, 255, 0.85), transparent 100%),
    radial-gradient(2px 2px at 67% 41%, rgba(168, 85, 247, 0.82), transparent 100%),
    radial-gradient(2px 2px at 38% 79%, rgba(255, 42, 133, 0.8), transparent 100%),
    radial-gradient(2px 2px at 86% 15%, rgba(45, 125, 255, 0.82), transparent 100%),
    radial-gradient(2px 2px at 52% 58%, rgba(0, 240, 255, 0.78), transparent 100%),
    radial-gradient(2px 2px at 23% 88%, rgba(168, 85, 247, 0.8), transparent 100%),
    radial-gradient(2px 2px at 79% 72%, rgba(255, 42, 133, 0.78), transparent 100%),
    radial-gradient(2px 2px at 44% 12%, rgba(0, 240, 255, 0.84), transparent 100%),
    radial-gradient(2px 2px at 19% 47%, rgba(168, 85, 247, 0.82), transparent 100%),
    radial-gradient(2px 2px at 74% 18%, rgba(0, 240, 255, 0.82), transparent 100%),
    radial-gradient(2px 2px at 33% 63%, rgba(255, 42, 133, 0.78), transparent 100%),
    radial-gradient(2px 2px at 88% 84%, rgba(45, 125, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 59% 29%, rgba(0, 240, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 11% 76%, rgba(255, 42, 133, 0.76), transparent 100%),
    radial-gradient(2px 2px at 48% 91%, rgba(168, 85, 247, 0.82), transparent 100%),
    radial-gradient(2px 2px at 93% 52%, rgba(0, 240, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 27% 19%, rgba(45, 125, 255, 0.82), transparent 100%),
    radial-gradient(2px 2px at 63% 66%, rgba(255, 42, 133, 0.8), transparent 100%),
    radial-gradient(2px 2px at 81% 39%, rgba(0, 240, 255, 0.84), transparent 100%),
    radial-gradient(2px 2px at 16% 82%, rgba(168, 85, 247, 0.8), transparent 100%),
    radial-gradient(2px 2px at 42% 44%, rgba(0, 240, 255, 0.78), transparent 100%),
    radial-gradient(2px 2px at 91% 11%, rgba(255, 42, 133, 0.8), transparent 100%),
    radial-gradient(2px 2px at 35% 27%, rgba(168, 85, 247, 0.82), transparent 100%),
    radial-gradient(2px 2px at 72% 88%, rgba(0, 240, 255, 0.82), transparent 100%),
    radial-gradient(2px 2px at 55% 14%, rgba(255, 42, 133, 0.78), transparent 100%),
    radial-gradient(2px 2px at 8% 36%, rgba(45, 125, 255, 0.8), transparent 100%),
    radial-gradient(2px 2px at 66% 53%, rgba(0, 240, 255, 0.82), transparent 100%),
    radial-gradient(2px 2px at 21% 71%, rgba(168, 85, 247, 0.8), transparent 100%);
  background-size:
    100% 100%, 100% 100%, 100% 100%, 100% 100%,
    240px 240px, 240px 240px, 240px 240px, 240px 240px, 240px 240px, 240px 240px, 240px 240px, 240px 240px,
    310px 310px, 310px 310px, 310px 310px, 310px 310px, 310px 310px, 310px 310px, 310px 310px, 310px 310px,
    370px 370px, 370px 370px, 370px 370px, 370px 370px, 370px 370px, 370px 370px,
    430px 430px, 430px 430px, 430px 430px, 430px 430px, 430px 430px, 430px 430px;
  animation: cyberNebula 12s ease-in-out infinite alternate;
}

@keyframes gridScroll {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 36px, 0 44px, 0 44px, 0 0;
  }
}

@keyframes cyberNebula {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }
  50% {
    transform: translate3d(-2%, 2%, 0) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate3d(2%, -1.5%, 0) scale(1.02);
    opacity: 0.95;
  }
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
  flex: 0 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--oxblood);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.frame {
  position: relative;
  z-index: 1;
  width: min(var(--frame), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* ============================================================
   Shared typography
   ============================================================ */

.kicker {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  padding: 5px 12px 5px 8px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(168, 85, 247, 0.08), transparent);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--bone);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 12px var(--cyan), 0 0 20px rgba(255, 42, 133, 0.6);
}

.kicker--plain::before {
  display: none;
}

.section {
  padding: clamp(64px, 9vw, 132px) 0 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* Discography is the first section — clear the fixed header */
#diszkografia {
  padding-top: calc(var(--header-h) + clamp(12px, 1.4vw, 22px));
}

#diszkografia .section-head {
  padding-top: 14px;
}

.section-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 240, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(0, 240, 255, 0.2);
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section-head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(460px, 78%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue) 32%, var(--violet) 65%, var(--magenta) 88%, transparent);
  box-shadow: 0 0 16px var(--cyan), 0 0 28px rgba(168, 85, 247, 0.55);
}

.section-head::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, var(--cyan), transparent);
  box-shadow: 0 0 14px var(--cyan);
  animation: sectionSweep 5.5s var(--ease) infinite;
}

@keyframes sectionSweep {
  0% {
    left: -35%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  55% {
    left: 105%;
    opacity: 0.9;
  }
  100% {
    left: 105%;
    opacity: 0;
  }
}

#diszkografia .section-head,
#mozgokep .section-head {
  grid-template-columns: minmax(0, 1fr);
}

.section-head__aside {
  padding-bottom: 6px;
}

.section-intro {
  max-width: 46ch;
  color: var(--ash);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.section-index {
  display: inline-block;
  margin-right: 10px;
  color: var(--oxblood);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  background: rgba(5, 8, 20, 0.55);
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 20, 0.9);
  border-bottom-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.6), 0 2px 24px rgba(0, 240, 255, 0.22), 0 1px 16px rgba(255, 42, 133, 0.14);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 36px rgba(168, 85, 247, 0.25);
  animation: wordmarkIdleGlitch 8s steps(2, end) infinite;
  transition: text-shadow 0.22s var(--ease);
}

.wordmark span {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease);
}

.wordmark:hover {
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
}

.wordmark:hover span {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 42, 133, 0.75);
}

@keyframes wordmarkIdleGlitch {
  0%, 94%, 100% {
    transform: translate(0, 0);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 36px rgba(168, 85, 247, 0.25);
  }
  95% {
    transform: translate(-1px, 0);
    text-shadow: -2px 0 rgba(0, 240, 255, 0.85), 2px 0 rgba(255, 42, 133, 0.85);
  }
  96% {
    transform: translate(2px, -1px);
  }
  97% {
    transform: translate(0, 0);
  }
}

@keyframes textGlitch {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}

.primary-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.primary-nav a i {
  color: var(--ash-dark);
  font-style: normal;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--magenta);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
}

.primary-nav a:hover i,
.primary-nav a:focus-visible i {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 42, 133, 0.75);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.header-meta:hover {
  color: var(--bone);
  border-bottom-color: var(--magenta);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
}

.header-meta:hover .header-count {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 42, 133, 0.75);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 18px rgba(0, 240, 255, 0.7);
  animation: beaconPulse 2.4s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0, 240, 255, 0.65);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.25);
    box-shadow: 0 0 12px var(--magenta), 0 0 22px rgba(255, 42, 133, 0.65);
  }
}

.header-count {
  color: var(--bone);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--magenta);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 46% at 82% 30%, rgba(56, 228, 255, 0.14), transparent 72%),
    radial-gradient(40% 32% at 8% 82%, rgba(157, 108, 255, 0.1), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(14px, 2vh, 24px);
  padding-bottom: clamp(6px, 1vh, 12px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.24em;
  margin: 0;
  font-size: clamp(1.6rem, 7vw, 4.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title span {
  display: block;
}

.hero-title .is-outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--bone-dim);
  text-stroke: 1px var(--bone-dim);
}

.hero-lede {
  max-width: 47ch;
  margin-top: clamp(20px, 3vh, 32px);
  color: var(--ash);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(14px, 2vh, 20px);
}

.hero-actions .action {
  min-height: 40px;
  padding: 0 18px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.action svg {
  width: 13px;
  height: 13px;
}

.action--primary {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
  font-weight: 700;
}

.action--primary:hover {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--bone);
}

.action--ghost:hover {
  background: rgba(232, 228, 218, 0.05);
  border-color: var(--bone);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(26px, 3.6vh, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.stat dt {
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat dd {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-art {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: clamp(150px, 15vw, 210px);
  max-width: 100%;
}

.hero-art-frame {
  position: relative;
  padding: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(232, 228, 218, 0.025);
}

.hero-art-frame::before {
  content: "";
  position: absolute;
  inset: -8px 8px 8px -8px;
  z-index: -1;
  border: 1px solid rgba(179, 32, 47, 0.55);
  pointer-events: none;
}

.hero-art-frame img {
  width: 100%;
  height: auto;
  filter: saturate(0.94) contrast(1.04);
}

.hero-art-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-art-caption strong {
  color: var(--bone);
  font-weight: 500;
}

.hero-vertical {
  position: absolute;
  top: 2px;
  right: -18px;
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-footer strong {
  color: var(--bone);
  font-weight: 500;
}

/* ============================================================
   Catalogue
   ============================================================ */

.catalogue-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 14px 14px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.06), rgba(168, 85, 247, 0.05), rgba(255, 42, 133, 0.04));
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-bottom: 2px solid var(--cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(0, 240, 255, 0.12);
}

.search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ash);
}

.search-field svg {
  width: 15px;
  height: 15px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  outline: none;
}

.search-field input::placeholder {
  color: var(--ash);
  opacity: 0.85;
}

.search-field input::-webkit-search-cancel-button {
  filter: invert(0.7);
}

.search-count {
  flex: 0 0 auto;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.tool-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 240, 255, 0.04);
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.tool-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(0, 240, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease);
  pointer-events: none;
}

.tool-button:hover::before {
  transform: translateX(120%);
}

.tool-button svg {
  width: 13px;
  height: 13px;
}

.tool-button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
  transform: translateY(-1px);
}

.tool-button:active {
  transform: translateY(0);
}

.tool-button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(255, 42, 133, 0.28));
  border-color: var(--magenta);
  color: var(--bone);
  box-shadow: 0 0 22px rgba(255, 42, 133, 0.3), inset 0 0 12px rgba(0, 240, 255, 0.18);
}

.tool-state {
  padding-left: 8px;
  border-left: 1px solid currentColor;
  opacity: 0.8;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.catalogue-columns {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr) 76px 22px;
  gap: 16px;
  padding: 13px 52px 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalogue-columns span:last-child {
  justify-self: end;
}

.album {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 240, 255, 0.16);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.album::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(0, 240, 255, 0.16) 45%, rgba(255, 42, 133, 0.12) 55%, transparent 100%);
  transform: translateX(-140%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}

.album:hover::after {
  transform: translateX(260%);
}

.album:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.14), rgba(45, 125, 255, 0.09) 45%, rgba(168, 85, 247, 0.08) 75%, transparent);
  border-bottom-color: var(--cyan);
  box-shadow: inset 4px 0 0 var(--cyan), 0 6px 28px rgba(0, 240, 255, 0.14);
}

.album.is-open,
.album.is-current {
  background: linear-gradient(90deg, rgba(255, 42, 133, 0.12), rgba(168, 85, 247, 0.1) 45%, rgba(0, 240, 255, 0.06));
  border-bottom-color: rgba(255, 42, 133, 0.45);
  box-shadow: inset 4px 0 0 var(--magenta), 0 0 30px rgba(255, 42, 133, 0.16);
}

.album-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: stretch;
}

.album-main {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr) 76px 22px;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.album-number,
.album-year,
.album-count {
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.album-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.album.is-current .album-number::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--oxblood);
}

.album-title {
  min-width: 0;
  font-size: clamp(1.38rem, 2.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), transform 0.24s var(--ease);
}

.album-main:hover .album-title {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(0, 240, 255, 0.55), -1px 0 rgba(0, 240, 255, 0.6), 1px 0 rgba(255, 42, 133, 0.55);
  transform: translateX(6px);
}

.album.is-current .album-title {
  color: var(--bone);
}

.album.is-current .album-main:hover .album-title {
  color: var(--bone);
}

.album-count {
  justify-self: end;
  text-align: right;
}

.album-chevron {
  position: relative;
  justify-self: end;
  width: 14px;
  height: 14px;
  color: var(--ash);
}

.album-chevron::before,
.album-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.album-chevron::after {
  transform: rotate(90deg);
}

.album.is-open .album-chevron {
  color: var(--oxblood);
}

.album.is-open .album-chevron::after {
  transform: rotate(0deg);
}

.album-play {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  border: 0;
  border-left: 1px solid var(--line);
  background: none;
  color: var(--ash);
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.18s var(--ease);
}

.album-play svg {
  width: 15px;
  height: 15px;
  transition: transform 0.22s var(--ease);
}

.album-play:hover {
  background: linear-gradient(135deg, var(--cyan), var(--violet) 65%, var(--magenta));
  color: var(--ink);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.45);
}

.album-play:hover svg {
  transform: scale(1.1);
}

.album-play:active {
  transform: scale(0.96);
}

.album.is-current .album-play {
  color: var(--oxblood);
}

.album.is-current .album-play:hover {
  color: var(--bone);
}

.album-tracks {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}

.album.is-open .album-tracks {
  grid-template-rows: 1fr;
}

.album-tracks-inner {
  overflow: hidden;
}

.tracklist {
  padding: 0 52px 16px 48px;
  border-top: 1px solid var(--line-faint);
}

.track {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line-faint);
  background: none;
  color: var(--ash);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.track:last-child {
  border-bottom: 0;
}

.track-no {
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.track-title {
  min-width: 0;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-state {
  display: flex;
  justify-content: flex-end;
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-state svg {
  width: 11px;
  height: 11px;
}

.track:hover {
  color: var(--bone);
  background: rgba(56, 228, 255, 0.045);
}

.track.is-active {
  color: var(--bone);
}

.track.is-active .track-no,
.track.is-active .track-state {
  color: var(--oxblood);
}

.track.is-active .track-title {
  font-weight: 700;
}

.catalogue-preview {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding-top: 10px;
}

.preview-frame {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(0, 240, 255, 0.68);
  background: linear-gradient(145deg, rgba(0, 240, 255, 0.22), rgba(168, 85, 247, 0.16) 50%, rgba(255, 42, 133, 0.14));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 42px rgba(0, 240, 255, 0.34),
    0 0 72px rgba(168, 85, 247, 0.22),
    inset 0 0 18px rgba(0, 240, 255, 0.14);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.35s var(--ease);
  animation: frameAura 4.5s ease-in-out infinite alternate;
}

.preview-frame::before,
.preview-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.preview-frame::before {
  top: 3px;
  left: 3px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  box-shadow: -2px -2px 14px var(--cyan);
}

.preview-frame::after {
  right: 3px;
  bottom: 3px;
  border-right: 2px solid var(--magenta);
  border-bottom: 2px solid var(--magenta);
  box-shadow: 2px 2px 14px var(--magenta);
}

.preview-frame:hover {
  border-color: var(--magenta);
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 0 54px rgba(0, 240, 255, 0.52),
    0 0 88px rgba(255, 42, 133, 0.34);
}

.preview-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ink-panel);
  filter: saturate(1.1) contrast(1.08) brightness(1.04);
  transition: transform 0.48s var(--ease), filter 0.48s var(--ease);
}

.preview-frame:hover img {
  transform: scale(1.07);
  filter: saturate(1.28) contrast(1.12) brightness(1.12);
}

.preview-frame.is-updating img {
  animation: previewShift 0.42s var(--ease);
}

@keyframes frameAura {
  0% {
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.65),
      0 0 38px rgba(0, 240, 255, 0.32),
      0 0 68px rgba(168, 85, 247, 0.2);
  }
  100% {
    border-color: rgba(255, 42, 133, 0.65);
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.65),
      0 0 46px rgba(168, 85, 247, 0.36),
      0 0 78px rgba(255, 42, 133, 0.28);
  }
}

@keyframes previewShift {
  0% {
    opacity: 0.45;
    transform: scale(0.96) translateX(-3px);
    filter: saturate(1.45) brightness(1.25) hue-rotate(8deg);
  }
  45% {
    transform: scale(1.02) translateX(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
    filter: saturate(1.1) contrast(1.08) brightness(1.04);
  }
}

.preview-index {
  margin-top: 14px;
  color: var(--oxblood);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-title {
  margin-top: 4px;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.preview-meta {
  margin-top: 6px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalogue-empty {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ash);
  text-align: center;
}

.catalogue-empty strong {
  display: block;
  margin-bottom: 10px;
  color: var(--bone);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.catalogue-empty button {
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   Films
   ============================================================ */

.films {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 38px) clamp(18px, 2.4vw, 32px);
}

.film {
  position: relative;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.film-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.film-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: var(--ink-panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 240, 255, 0.16);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.film-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 240, 255, 0.04) 0px,
    rgba(0, 240, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.55;
  transition: opacity 0.3s var(--ease);
}

.film-trigger:hover .film-frame,
.film-trigger:focus-visible .film-frame {
  border-color: var(--magenta);
  transform: translateY(-3px);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.65),
    0 0 38px rgba(0, 240, 255, 0.42),
    0 0 56px rgba(255, 42, 133, 0.26);
}

.film-trigger:hover .film-frame::after {
  opacity: 0.2;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.1) brightness(0.84) saturate(1.08);
  transform: scale(1.001);
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}

.film-trigger:hover .film-frame img,
.film-trigger:focus-visible .film-frame img {
  filter: grayscale(0) contrast(1.08) brightness(1.02) saturate(1.2);
  transform: scale(1.045);
}

.film-index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid rgba(56, 228, 255, 0.25);
  background: rgba(22, 27, 36, 0.78);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}

.film-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.film-play span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(238, 242, 247, 0.65);
  border-radius: 50%;
  background: rgba(22, 27, 36, 0.45);
  color: var(--bone);
  backdrop-filter: blur(4px);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.film-play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.film-trigger:hover .film-play span {
  background: linear-gradient(135deg, var(--cyan), var(--violet) 65%, var(--magenta));
  border-color: var(--cyan);
  color: var(--ink);
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.55), 0 0 44px rgba(255, 42, 133, 0.3);
}

.film-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.film-caption strong {
  color: var(--bone);
  font-weight: 500;
}

.film-embed {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.film-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.film.is-loaded .film-frame {
  background: #000;
}

.film.is-missing .film-frame {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(232, 228, 218, 0.03) 0,
      rgba(232, 228, 218, 0.03) 1px,
      transparent 1px,
      transparent 10px
    ),
    var(--ink-panel);
}

.film.is-missing .film-frame img {
  display: none;
}

.film.is-missing .film-frame::after {
  content: "Nincs előnézet";
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.film.is-loaded .film-frame img,
.film.is-loaded .film-play,
.film.is-loaded .film-index {
  display: none;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(72px, 10vw, 144px);
  padding-top: clamp(48px, 6vw, 76px);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}

.footer-title {
  margin-top: 14px;
  font-size: clamp(1.4rem, 3.7vw, 3.7rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.footer-mail {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 36px);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--oxblood);
  font-size: clamp(1.05rem, 1.9vw, 1.6rem);
  letter-spacing: -0.02em;
}

.footer-mail:hover {
  color: var(--oxblood);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--magenta);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
}

.footer-links svg {
  width: 12px;
  height: 12px;
  transition: color 0.22s var(--ease), filter 0.22s var(--ease), transform 0.22s var(--ease);
}

.footer-links a:hover svg,
.footer-links a:focus-visible svg {
  color: var(--magenta);
  filter: drop-shadow(0 0 12px rgba(255, 42, 133, 0.75));
  transform: translate(2px, -2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-mark {
  overflow: hidden;
  padding-bottom: 0.04em;
  color: transparent;
  font-size: clamp(5.4rem, 19vw, 18rem);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.07em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(232, 228, 218, 0.13);
  text-stroke: 1px rgba(232, 228, 218, 0.13);
  user-select: none;
}

/* ============================================================
   Player
   ============================================================ */

.player {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  overflow: hidden;
  background:
    radial-gradient(60% 140% at 50% 100%, rgba(0, 240, 255, 0.18), transparent 65%),
    radial-gradient(45% 120% at 15% 50%, rgba(45, 125, 255, 0.16), transparent 65%),
    radial-gradient(45% 120% at 85% 50%, rgba(255, 42, 133, 0.18), transparent 65%),
    linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(45, 125, 255, 0.1) 30%, rgba(168, 85, 247, 0.14) 68%, rgba(255, 42, 133, 0.14)),
    rgba(4, 8, 22, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.65);
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid rgba(255, 42, 133, 0.55);
  box-shadow:
    0 -22px 72px rgba(0, 240, 255, 0.3),
    0 -10px 44px rgba(168, 85, 247, 0.28),
    0 -4px 28px rgba(255, 42, 133, 0.24),
    inset 0 0 28px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 240, 255, 0.04) 0px,
      rgba(0, 240, 255, 0.04) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.12) 50%, transparent);
  background-size: 100% 3px, 200% 100%;
  animation: consolePerimeter 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.player.is-track-flash {
  animation: trackChangeFlash 0.65s var(--ease);
}

.player-progress,
.player-main {
  position: relative;
  z-index: 2;
}

body.is-playing .player {
  border-color: rgba(0, 240, 255, 0.9);
  border-bottom-color: rgba(255, 42, 133, 0.85);
  animation: playerPulse 2.4s ease-in-out infinite alternate;
}

@keyframes consolePerimeter {
  0% {
    background-position: 0 0, 200% 0;
  }
  100% {
    background-position: 0 0, -200% 0;
  }
}

@keyframes trackChangeFlash {
  0% {
    box-shadow:
      0 -28px 95px rgba(0, 240, 255, 0.78),
      0 -14px 65px rgba(255, 42, 133, 0.65),
      inset 0 0 42px rgba(0, 240, 255, 0.35);
    border-top-color: #fff;
  }
  100% {
    box-shadow:
      0 -22px 72px rgba(0, 240, 255, 0.3),
      0 -10px 44px rgba(168, 85, 247, 0.28),
      0 -4px 28px rgba(255, 42, 133, 0.24),
      inset 0 0 28px rgba(0, 240, 255, 0.12);
    border-top-color: var(--cyan);
  }
}

@keyframes playerPulse {
  0% {
    box-shadow:
      0 -22px 78px rgba(0, 240, 255, 0.42),
      0 -10px 48px rgba(45, 125, 255, 0.34),
      0 -4px 32px rgba(168, 85, 247, 0.3),
      inset 0 0 32px rgba(0, 240, 255, 0.18);
  }
  100% {
    box-shadow:
      0 -26px 96px rgba(255, 42, 133, 0.48),
      0 -12px 58px rgba(0, 240, 255, 0.42),
      0 -4px 36px rgba(168, 85, 247, 0.38),
      inset 0 0 38px rgba(255, 42, 133, 0.18);
  }
}

.player-progress {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  height: 23px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-faint);
}

.player-time {
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.player-time:last-child {
  text-align: right;
}

input[type="range"] {
  width: 100%;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: transparent;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 2px;
  background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -6.5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 12px #fff,
    0 0 22px var(--cyan),
    0 0 34px var(--magenta);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow:
    0 0 12px #fff,
    0 0 22px var(--cyan),
    0 0 34px var(--magenta);
}

.seek {
  height: 18px;
  background-image:
    linear-gradient(
      to right,
      var(--cyan) 0,
      var(--blue) calc(var(--progress, 0%) * 0.35),
      var(--violet) calc(var(--progress, 0%) * 0.7),
      var(--magenta) var(--progress, 0%),
      rgba(0, 240, 255, 0.18) var(--progress, 0%),
      rgba(168, 85, 247, 0.18) 100%
    );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 6px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.65)) drop-shadow(0 0 16px rgba(255, 42, 133, 0.4));
  transition: background-size 0.18s var(--ease);
}

.seek:hover {
  background-size: 100% 8px;
}

.volume {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.volume svg {
  width: 14px;
  height: 14px;
}

.volume input {
  width: 86px;
  background-image: linear-gradient(
    to right,
    var(--cyan) 0,
    var(--violet) var(--volume, 50%),
    rgba(168, 85, 247, 0.22) var(--volume, 50%),
    rgba(168, 85, 247, 0.22) 100%
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 2px;
}

.volume input::-webkit-slider-thumb {
  width: 6px;
  height: 6px;
  margin-top: -2px;
}

.volume input::-moz-range-thumb {
  width: 6px;
  height: 6px;
}

.player-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px 18px;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-cover {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.42);
  background: var(--ink-panel);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

body.is-playing .player-cover {
  border-color: var(--magenta);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.38), 0 0 16px rgba(255, 42, 133, 0.28);
}

body.is-playing .player-cover img {
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.06);
}

.player-text {
  min-width: 0;
}

.player-title {
  overflow: hidden;
  color: var(--bone);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}

body.is-playing .player-title {
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

.player-album {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Energetic 10-bar neon spectrum visualizer */
.player-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-left: 10px;
  padding: 3px 6px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.12);
  flex: 0 0 auto;
  opacity: 0.65;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.player-eq i {
  display: block;
  width: 3px;
  height: 4px;
  border-radius: 1px;
  background: linear-gradient(to top, var(--cyan), var(--blue) 40%, var(--violet) 72%, var(--magenta));
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.7), 0 0 14px rgba(255, 42, 133, 0.35);
  transform-origin: bottom;
  transition: height 0.18s var(--ease);
}

body.is-playing .player-eq {
  opacity: 1;
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.28), inset 0 0 12px rgba(255, 42, 133, 0.18);
}

body.is-playing .player-eq i {
  animation: eqBar 0.56s ease-in-out infinite alternate;
}

body.is-playing .player-eq i:nth-child(2) { animation-duration: 0.42s; animation-delay: 0.08s; }
body.is-playing .player-eq i:nth-child(3) { animation-duration: 0.64s; animation-delay: 0.18s; }
body.is-playing .player-eq i:nth-child(4) { animation-duration: 0.48s; animation-delay: 0.04s; }
body.is-playing .player-eq i:nth-child(5) { animation-duration: 0.58s; animation-delay: 0.22s; }
body.is-playing .player-eq i:nth-child(6) { animation-duration: 0.44s; animation-delay: 0.14s; }
body.is-playing .player-eq i:nth-child(7) { animation-duration: 0.62s; animation-delay: 0.06s; }
body.is-playing .player-eq i:nth-child(8) { animation-duration: 0.5s; animation-delay: 0.26s; }
body.is-playing .player-eq i:nth-child(9) { animation-duration: 0.46s; animation-delay: 0.11s; }
body.is-playing .player-eq i:nth-child(10) { animation-duration: 0.6s; animation-delay: 0.19s; }

@keyframes eqBar {
  0% {
    height: 4px;
    filter: brightness(0.9);
  }
  100% {
    height: 22px;
    filter: brightness(1.3);
  }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ctrl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(0, 240, 255, 0.16);
  background: rgba(0, 240, 255, 0.03);
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), text-shadow 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.18s var(--ease);
}

.ctrl svg {
  width: 15px;
  height: 15px;
}

.ctrl:hover,
.ctrl:focus-visible {
  color: var(--bone);
  border-color: var(--magenta);
  background: rgba(255, 42, 133, 0.12);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.32), 0 0 22px rgba(255, 42, 133, 0.22);
}

.ctrl[aria-pressed="true"] {
  color: var(--magenta);
  border-color: rgba(255, 42, 133, 0.72);
  background: rgba(255, 42, 133, 0.14);
  box-shadow: 0 0 18px rgba(255, 42, 133, 0.3);
}

.ctrl.play {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 240, 255, 0.75);
  background: radial-gradient(circle at 35% 30%, rgba(0, 210, 240, 0.72) 0%, rgba(26, 96, 206, 0.88) 40%, rgba(112, 46, 198, 0.9) 74%, rgba(190, 26, 116, 0.92) 100%);
  color: var(--bone);
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.42),
    0 0 30px rgba(168, 85, 247, 0.28),
    0 0 42px rgba(255, 42, 133, 0.2),
    inset 0 0 10px rgba(0, 240, 255, 0.25);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.2s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.ctrl.play::before,
.ctrl.play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.55);
  pointer-events: none;
  opacity: 0;
}

.ctrl.play::after {
  inset: -11px;
  border-color: rgba(255, 42, 133, 0.48);
}

.ctrl.play:hover,
.ctrl.play:focus-visible {
  border-color: var(--cyan);
  color: #fff;
  animation: none;
  transform: scale(1.1);
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.65),
    0 0 42px rgba(255, 42, 133, 0.42),
    inset 0 0 12px rgba(0, 240, 255, 0.35);
}

body.is-playing .ctrl.play {
  animation: playCorePulse 1.8s ease-in-out infinite alternate;
}

body.is-playing .ctrl.play::before {
  animation: playRingOut 1.8s ease-out infinite;
}

body.is-playing .ctrl.play::after {
  animation: playRingOut 1.8s ease-out 0.9s infinite;
}

@keyframes playCorePulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 18px rgba(0, 240, 255, 0.48),
      0 0 34px rgba(168, 85, 247, 0.34);
  }
  100% {
    transform: scale(1.05);
    box-shadow:
      0 0 26px rgba(255, 42, 133, 0.55),
      0 0 44px rgba(0, 240, 255, 0.45);
  }
}

@keyframes playRingOut {
  0% {
    opacity: 0.9;
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

.ctrl.play svg {
  width: 17px;
  height: 17px;
}

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.queue-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.03);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.queue-button svg {
  width: 14px;
  height: 14px;
}

.queue-button:hover,
.queue-button:focus-visible,
.queue-button[aria-expanded="true"] {
  color: var(--bone);
  border-color: var(--magenta);
  background: rgba(255, 42, 133, 0.12);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.26), 0 0 22px rgba(255, 42, 133, 0.2);
}

.queue-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  background: rgba(232, 228, 218, 0.08);
  color: var(--bone-dim);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.queue-button[aria-expanded="true"] .queue-count {
  background: var(--oxblood);
  color: var(--bone);
}

/* ============================================================
   Queue panel
   ============================================================ */

.queue-backdrop {
  position: fixed;
  inset: 0 0 var(--player-h);
  z-index: 110;
  background: rgba(12, 16, 24, 0.64);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.queue-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.queue {
  position: fixed;
  top: 0;
  right: 0;
  bottom: var(--player-h);
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  border-left: 1px solid var(--line-strong);
  background: var(--ink-raised);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}

.queue.is-open {
  transform: none;
  visibility: visible;
}

.queue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.queue-head h2 {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.queue-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  color: var(--ash);
  cursor: pointer;
}

.queue-close:hover {
  color: var(--bone);
  border-color: var(--bone);
}

.queue-close svg {
  width: 13px;
  height: 13px;
}

.queue-now {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(179, 32, 47, 0.06);
}

.queue-now-label {
  color: var(--oxblood);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.queue-now-title {
  overflow: hidden;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.queue-now-album {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.queue-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--ash-dark) transparent;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-faint);
}

.queue-item.is-current {
  background: rgba(232, 228, 218, 0.03);
}

.queue-play {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: none;
  color: var(--ash);
  text-align: left;
  cursor: pointer;
}

.queue-play:hover {
  color: var(--bone);
}

.queue-no {
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.queue-text {
  min-width: 0;
}

.queue-title {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-album {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ash-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.queue-item.is-current .queue-no,
.queue-item.is-current .queue-title {
  color: var(--oxblood);
}

.queue-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ash-dark);
  cursor: pointer;
  opacity: 0.6;
}

.queue-remove svg {
  width: 11px;
  height: 11px;
}

.queue-remove:hover {
  color: var(--oxblood);
  opacity: 1;
}

.queue-empty {
  padding: 48px 0;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
  text-transform: uppercase;
}

.queue-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.queue-clear {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--ash);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.queue-clear:hover {
  color: var(--oxblood);
  border-color: var(--oxblood);
}

.queue-clear:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ============================================================
   Mobile navigation
   ============================================================ */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.mobile-nav a i {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
  transition: color 0.22s var(--ease), text-shadow 0.22s var(--ease);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--bone);
  border-bottom-color: var(--magenta);
  animation: textGlitch 0.32s steps(2, end) infinite;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.9), 2px 0 rgba(255, 42, 133, 0.9);
}

.mobile-nav a:hover i,
.mobile-nav a:focus-visible i {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 42, 133, 0.75);
}

.mobile-nav__foot {
  margin-top: 36px;
  color: var(--ash);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  line-height: 2;
  text-transform: uppercase;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .catalogue-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
  }

  .header-meta .header-date {
    display: none;
  }
}

@media (max-width: 1020px) {
  :root {
    --gutter: 26px;
  }

  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .header-meta .header-date {
    display: none;
  }

  .catalogue-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalogue-preview {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 12px;
  }

  .hero-art {
    justify-self: start;
    width: clamp(150px, 22vw, 190px);
  }

  .hero-vertical {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --header-h: 66px;
    --player-h: 150px;
  }

  .header-inner {
    gap: 14px;
  }

  .header-meta {
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-head__aside {
    max-width: 52ch;
    padding-bottom: 0;
  }

  .hero-grid {
    padding-top: 22px;
    padding-bottom: 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .hero-art {
    max-width: 100%;
  }

  .hero-footer {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .hero-footer span:nth-child(2) {
    display: none;
  }

  .catalogue-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .search-field {
    padding-bottom: 0;
  }

  .tool-button {
    justify-content: space-between;
    width: 100%;
  }

  .catalogue-columns {
    display: none;
  }

  .album-main {
    grid-template-columns: 30px 48px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 62px;
    padding: 9px 0;
  }

  .album-count {
    display: none;
  }

  .album-title {
    font-size: clamp(1.05rem, 5.2vw, 1.4rem);
    line-height: 1.02;
    overflow: visible;
    white-space: normal;
  }

  .album-number,
  .album-year {
    font-size: 9px;
  }

  .album-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .album-play {
    width: 44px;
    min-height: 44px;
  }

  .tracklist {
    padding: 0 0 12px 30px;
  }

  .track {
    grid-template-columns: 28px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 8px 0;
  }

  .track-title {
    font-size: 0.82rem;
  }

  .films {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .footer-links {
    width: 100%;
  }

  .footer-bottom {
    justify-content: flex-start;
  }

  .footer-mark {
    font-size: 10.5vw;
  }

  .player-progress {
    padding: 0 12px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .player-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 104px;
    padding: 9px 12px 8px;
  }

  .player-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 2px;
    padding-top: 6px;
    border-top: 1px solid var(--line-faint);
  }

  .player-right {
    display: none;
  }

  .player-cover {
    width: 44px;
    height: 44px;
  }

  .ctrl {
    width: 34px;
    height: 34px;
  }

  .ctrl.play {
    width: 42px;
    height: 42px;
  }

  .queue {
    bottom: 0;
    width: 100%;
    border-left: 0;
  }

  .queue-backdrop {
    display: none;
  }

  .queue-close {
    width: 40px;
    height: 40px;
  }

  .hero-art-frame::before {
    inset: -9px 9px 9px -9px;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    gap: 8px;
  }

  .stat dd {
    font-size: 1.1rem;
  }

  .player-album {
    letter-spacing: 0.06em;
  }

  .queue-button span:last-child {
    display: inline-grid;
  }

  .queue-button #queueButtonLabel {
    display: none;
  }
}

/* ============================================================
   Scroll Reveal
   ============================================================ */

.has-reveal .section,
.has-reveal .site-footer,
.has-reveal .film {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), filter 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-reveal .section.is-revealed,
.has-reveal .site-footer.is-revealed,
.has-reveal .film.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body::before,
  body::after,
  .section-head::after,
  .wordmark,
  .header-status::before,
  .preview-frame,
  .player::before,
  .player.is-track-flash,
  body.is-playing .player,
  body.is-playing .ctrl.play,
  body.is-playing .ctrl.play::before,
  body.is-playing .ctrl.play::after,
  body.is-playing .player-eq i {
    animation: none !important;
  }

  .has-reveal .section,
  .has-reveal .site-footer,
  .has-reveal .film {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .film-trigger:hover .film-frame img,
  .film-trigger:focus-visible .film-frame img,
  .preview-frame:hover img {
    transform: none;
  }
}

/* ============================================================
   Print / fallback
   ============================================================ */

@media print {
  .site-header,
  .player,
  .queue,
  .queue-backdrop,
  .mobile-nav,
  .hero-actions,
  .catalogue-tools,
  .hero-art {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    background: #fff;
    color: #000;
  }

  .album {
    break-inside: avoid;
  }
}
