
@font-face {
  font-family: 'HitMePunk';
  /* El nombre que tú quieras darle */
  src: url('/fonts/HitMePunk.ttf') format('truetype');
  /* Ruta hacia el archivo */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BADGRUNGE';
  /* El nombre que tú quieras darle */
  src: url('/fonts/BADGRUNGE.ttf') format('truetype');
  /* Ruta hacia el archivo */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Leander';
  /* El nombre que tú quieras darle */
  src: url('/fonts/Leander.ttf') format('truetype');
  /* Ruta hacia el archivo */
  font-weight: normal;
  font-style: normal;
}


/* ============================================================
   CRUZ-IFIED — shared stylesheet
   Nu-metal / Y2K poster / vinyl-sleeve art direction
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&family=Bebas+Neue&family=Special+Elite&family=Permanent+Marker&display=swap');

:root {
  --red: #c20e0e;
  --red-deep: #8c0808;
  --red-black: #4a0505;
  --black: #0a0908;
  --black-soft: #171312;
  --purple: #9b3ff0;
  --purple-deep: #5c1aa3;
  --purple-glow: #b876ff;
  --paper: #ece5d3;
  --paper-dim: #d8cfb8;
  --ink: #100d0c;

  --f-display: 'HitMePunk', sans-serif;
  --f-label: 'BADGRUNGE', sans-serif;
  --f-body: 'Leander', 'sans-serif';

  --edge: 2px solid var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--red);
  color: var(--paper);
  font-family: var(--f-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: normal;
  font-family: 'HitMePunk', sans-serif;
}

.clase-especial {
  font-family: 'HitMePunk';
  font-size: 2rem;
  color: #333;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--purple);
  color: var(--black);
}

/* ---------- focus ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px dashed var(--purple-glow);
  outline-offset: 3px;
}

/* ============================================================
   TEXTURE LAYERS — grain / scratches / vignette, fixed on top
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.scratch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: .22;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(102deg, transparent 20%, rgba(0, 0, 0, .5) 20.3%, transparent 20.6%),
    linear-gradient(96deg, transparent 45%, rgba(0, 0, 0, .35) 45.2%, transparent 45.5%),
    linear-gradient(88deg, transparent 68%, rgba(255, 255, 255, .25) 68.15%, transparent 68.4%),
    linear-gradient(110deg, transparent 78%, rgba(0, 0, 0, .4) 78.2%, transparent 78.5%);
  background-size: 100% 100%;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 997;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .55) 100%);
}

/* splatter blobs, used sparingly */
.splat {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  background: var(--black);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  filter: blur(.3px);
  opacity: .85;
}

/* ============================================================
   HEADER / MAIN NAV
   ============================================================ */
.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px 10px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: 1px;
  color: var(--black);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .15);
}

.logo .cross {
  font-size: 1.2em;
  transform: rotate(0deg);
}

.logo:hover {
  color: var(--black-soft);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.main-nav a {
  font-family: var(--f-label);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--purple);
  transition: right .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.main-nav a.active {
  color: var(--purple-deep);
}

.nav-mark {
  font-size: 22px;
  color: var(--black);
  opacity: .8;
}

.menu-toggle {
  display: none;
  background: none;
  border: var(--edge);
  color: var(--black);
  font-family: var(--f-label);
  letter-spacing: 2px;
  font-size: 16px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ============================================================
   FOOTER / CREDITS STRIP
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 20;
  margin-top: 60px;
  padding: 26px 48px 34px;
  border-top: 2px solid rgba(10, 9, 8, .35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--f-label);
  letter-spacing: 1.5px;
  font-size: 14px;
  color: var(--black);
  opacity: .85;
}

.site-footer a:hover {
  color: var(--purple-deep);
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
body {
  animation: page-in .55s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.leaving {
  animation: page-out .38s ease forwards;
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(1.02);
  }
}

/* ============================================================
   HOME — ALBUM + VINYL COMPOSITION
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  padding: 20px 40px 70px;
}

.album-rig {
  position: relative;
  width: min(1200px, 92vw);
  height: min(640px, 72vw);
  display: flex;
  align-items: center;
}

.vinyl {
  position: absolute;
  right: 16%;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 45vw);
  height: min(480px, 45vw);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      #050505 0 2px,
      #121010 2px 4px);
  box-shadow:
    0 0 0 2px #000,
    0 30px 80px rgba(0, 0, 0, .65),
    inset 0 0 60px rgba(0, 0, 0, .8);
  transition: transform .5s ease;
}

.vinyl::before {
  /* subtle sheen */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
      rgba(255, 255, 255, .08), transparent 30%, transparent 60%, rgba(255, 255, 255, .05));
  pointer-events: none;
}

.vinyl-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 34%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d81c1c, var(--red-deep) 70%, var(--red-black) 100%);
  box-shadow: 0 0 0 3px #1a1a1a, inset 0 0 25px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-label .cross-mark {
  font-family: var(--f-display);
  font-size: 2.4rem;
  color: var(--black);
  opacity: .9;
}

.vinyl-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5%;
  height: 3.5%;
  transform: translate(-50%, -50%);
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #000;
}

.vinyl-nav {
  position: absolute;
  inset: 0;
}

.vinyl-nav a {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  font-family: var(--f-label);
  letter-spacing: 2px;
  color: var(--paper);
  font-size: clamp(18px, 2.2vw, 30px);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  transition: color .2s ease, text-shadow .2s ease, letter-spacing .2s ease;
}

.vinyl-nav a:hover,
.vinyl-nav a:focus-visible {
  color: var(--purple-glow);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(184, 118, 255, .8);
}

.vinyl-nav a span {
  display: inline-block;
  transform: translate(-2px, -50%);
}

.sleeve {
  position: relative;
  z-index: 5;
  width: min(540px, 55vw);
  aspect-ratio: 1/1.08;
  background:
    radial-gradient(circle at 30% 20%, #1c1816, var(--black) 60%);
  border: 2px solid #000;
  box-shadow:
    10px 18px 0 rgba(0, 0, 0, .35),
    0 40px 90px rgba(0, 0, 0, .6);
  transform: rotate(-1.2deg);
  transition: transform .4s ease, box-shadow .4s ease;
  overflow: hidden;
}

.sleeve:hover {
  transform: rotate(-1.2deg) translateY(-6px) scale(1.01);
  box-shadow: 14px 26px 0 rgba(0, 0, 0, .4), 0 55px 110px rgba(0, 0, 0, .7);
}

.sleeve-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pull-badge {
  position: absolute;
  left: -60px;
  bottom: -50px;
  width: 130px;
  height: 130px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  animation: spin-badge 14s linear infinite;
}

.pull-badge svg {
  width: 100%;
  height: 100%;
}

.pull-badge .badge-center {
  position: absolute;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--paper);
}

@keyframes spin-badge {
  to {
    transform: rotate(360deg);
  }
}

.hero-tagline {
  position: absolute;
  left: 48px;
  bottom: 10px;
  z-index: 6;
  font-family: var(--f-body);
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .9);
  max-width: none;
}

/* ============================================================
   GENERIC PAGE SHELL
   ============================================================ */
.page-main {
  position: relative;
  z-index: 10;
  padding: 20px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--f-display);
  font-size: clamp(46px, 8vw, 100px);
  color: var(--black);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .15);
  line-height: .9;
  margin: 10px 0 8px;
}

.page-kicker {
  font-family: var(--f-label);
  letter-spacing: 4px;
  font-size: 14px;
  color: var(--purple-deep);
  background: var(--black);
  display: inline-block;
  padding: 4px 10px;
}

.page-sub {
  font-family: var(--f-body);
  color: rgba(10, 9, 8, .75);
  max-width: 640px;
  margin-top: 14px;
}

.divider {
  height: 2px;
  margin: 34px 0;
  background: repeating-linear-gradient(90deg, var(--black) 0 14px, transparent 14px 22px);
  opacity: .5;
}

/* ============================================================
   ABOUT PAGE — BOOKLET
   ============================================================ */
.booklet {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
  background: var(--black);
  border: 2px solid #000;
  box-shadow: 14px 20px 0 rgba(0, 0, 0, .35);
  padding: 40px;
  position: relative;
  transform: rotate(-.4deg);
}

.portrait-frame {
  position: relative;
  border: 3px solid var(--paper);
  background: linear-gradient(160deg, #241d1a, #0c0a09);
  aspect-ratio: 3/4;
  overflow: hidden;
}

.portrait-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.portrait-frame svg {
  width: 100%;
  height: 100%;
}

.portrait-caption {
  font-family: var(--f-label);
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--paper-dim);
  margin-top: 10px;
  text-align: center;
}

.about-copy h2 {
  font-family: var(--f-label);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--purple-glow);
  margin-bottom: 14px;
}

.about-copy p {
  color: var(--paper-dim);
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.tag {
  font-family: var(--f-label);
  letter-spacing: 1.5px;
  font-size: 13px;
  border: 1px solid var(--purple);
  color: var(--purple-glow);
  padding: 5px 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.info-block h3 {
  font-family: var(--f-label);
  letter-spacing: 2px;
  color: var(--paper);
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(236, 229, 211, .25);
  padding-bottom: 6px;
}

.info-block ul li {
  color: var(--paper-dim);
  font-size: 14px;
  padding: 3px 0;
}

.info-block ul li::before {
  content: "— ";
  color: var(--purple);
}

/* ============================================================
   GALLERY — CONTACT SHEET
   ============================================================ */
.contact-sheet {
  columns: 4 220px;
  column-gap: 18px;
}

.contact-sheet figure {
  break-inside: avoid;
  margin: 0 0 18px;
  border: 2px solid var(--black);
  background: var(--black-soft);
  padding: 8px 8px 30px;
  position: relative;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}

.contact-sheet figure:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.contact-sheet figure:nth-child(even) {
  transform: rotate(1.1deg);
}

.contact-sheet figure:hover {
  transform: scale(1.03) rotate(0deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  z-index: 3;
}

.contact-sheet .frame-art {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.contact-sheet .frame-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-sheet figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  right: 8px;
  font-family: var(--f-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--paper-dim);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 3, 3, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: min(720px, 88vw);
  max-height: 82vh;
  border: 2px solid var(--paper);
  background: var(--black);
  padding: 16px;
}

.lightbox-inner svg {
  width: 100%;
  height: auto;
  max-height: 62vh;
}

.lightbox-cap {
  font-family: var(--f-label);
  letter-spacing: 2px;
  color: var(--paper);
  margin-top: 12px;
  font-size: 13px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  font-family: var(--f-label);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--paper);
  background: none;
  border: 1px solid var(--paper);
  padding: 8px 14px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--paper);
  color: var(--black);
}

/* ============================================================
   PROJECTS — TRACKLIST
   ============================================================ */
.tracklist {
  border-top: 2px solid var(--black);
}

.track {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 10px;
  border-bottom: 2px solid var(--black);
  position: relative;
  transition: background .2s ease, padding-left .2s ease;
}

.track:hover {
  background: rgba(10, 9, 8, .06);
  padding-left: 22px;
}

.track-num {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--purple-deep);
}

.track-info h3 {
  font-family: var(--f-label);
  letter-spacing: 1px;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--black);
}

.track-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(10, 9, 8, .7);
}

.track-meta {
  font-family: var(--f-label);
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--black);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.track:hover .track-play {
  background: var(--black);
  color: var(--paper);
}

/* ============================================================
   MUSIC — ARCHIVE
   ============================================================ */
.shelf-title {
  font-family: var(--f-label);
  letter-spacing: 3px;
  font-size: 16px;
  color: var(--black);
  margin: 44px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.shelf-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--black);
  opacity: .3;
}

.disc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.disc {
  width: 150px;
  text-align: center;
  font-family: var(--f-label);
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--black);
}

.disc-art {
  width: 150px;
  height: 150px;
  border: 2px solid var(--black);
  background: var(--black-soft);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}

.disc:hover .disc-art {
  transform: translateY(-6px) rotate(-2deg);
}

.disc-art svg {
  width: 100%;
  height: 100%;
}

.artist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.artist-chip {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 8px 14px;
  background: rgba(10, 9, 8, .04);
}

.now-playing {
  border: 2px dashed var(--black);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--black);
}

.eq {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
}

.eq span {
  width: 4px;
  background: var(--purple-deep);
  animation: eq 1s ease-in-out infinite;
}

.eq span:nth-child(2) {
  animation-delay: .2s;
}

.eq span:nth-child(3) {
  animation-delay: .4s;
}

.eq span:nth-child(4) {
  animation-delay: .1s;
}

@keyframes eq {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 22px;
  }
}

/* ============================================================
   JOURNAL — NOTEBOOK
   ============================================================ */
.notebook {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 760px;
  margin: 0 auto;
}

.note-page {
  background: var(--paper);
  color: var(--ink);
  padding: 34px 38px;
  position: relative;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .35);
  transform: rotate(var(--tilt, 0deg));
  background-image: repeating-linear-gradient(var(--paper) 0 33px, rgba(10, 9, 8, .08) 33px 34px);
}

.note-page::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(194, 14, 14, .4);
}

.note-date {
  font-family: var(--f-label);
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--red-deep);
  margin-bottom: 6px;
}

.note-title {
  font-family: var(--f-hand);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 10px;
}

.note-body {
  font-family: var(--f-hand);
  font-size: 17px;
  line-height: 1.8;
  color: #221c19;
}

.note-pin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6666, var(--red-deep));
  box-shadow: 0 4px 6px rgba(0, 0, 0, .4);
}

/* ============================================================
   CONTACT — CREDITS
   ============================================================ */
.credits {
  max-width: 560px;
  margin: 40px auto 0;
  border: 2px solid var(--black);
  padding: 40px;
  background: rgba(10, 9, 8, .03);
}

.credits-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(10, 9, 8, .25);
  font-family: var(--f-label);
  letter-spacing: 2px;
  font-size: 15px;
}

.credits-row:last-child {
  border-bottom: none;
}

.credits-role {
  color: rgba(10, 9, 8, .55);
  font-size: 12px;
}

.credits-row a:hover {
  color: var(--purple-deep);
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.archive-item {
  border: 2px solid var(--black);
  padding: 16px;
  background: rgba(10, 9, 8, .04);
  font-family: var(--f-body);
  font-size: 13px;
}

.archive-item h4 {
  font-family: var(--f-label);
  letter-spacing: 1.5px;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--black);
}

.archive-item span {
  color: var(--purple-deep);
  font-family: var(--f-label);
  letter-spacing: 1px;
  font-size: 11px;
}

/* ============================================================
   STUFF — RECOMMENDATIONS GRID (Reusable)
   ============================================================ */
.stuff-section {
  margin-bottom: 70px;
}

.stuff-category-title-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.stuff-category-title-bg {
  position: absolute;
  top: 50%;
  left: -5%;
  right: -5%;
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-size: clamp(60px, 12vw, 110px);
  color: var(--black);
  opacity: 0.12;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.stuff-category-title {
  position: relative;
  z-index: 2;
  font-family: var(--f-display);
  font-size: clamp(38px, 6vw, 54px);
  color: var(--black);
  text-shadow: 2px 2px 0 var(--purple);
  text-align: center;
  margin: 0;
  letter-spacing: 2px;
}

.stuff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  justify-items: center;
}

.stuff-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, z-index 0s;
  width: 100%;
}

.stuff-item:hover {
  transform: scale(1.1) rotate(-3deg);
  z-index: 10;
}

.stuff-cover {
  width: 100%;
  background: var(--black);
  box-shadow: 6px 8px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.stuff-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stuff-cover.box {
  aspect-ratio: 3/4;
}

.stuff-cover.cd {
  aspect-ratio: 1/1;
}

.stuff-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   SPOTIFY PLAYER (Integrated)
   ============================================================ */
.spotify-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.spotify-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: block;
}

.player {
  width: min(340px, 92vw);
  background: var(--black-soft);
  border: 2px solid var(--black);
  box-shadow: 10px 14px 0 rgba(0, 0, 0, .35);
  position: relative;
  transform: rotate(-1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  min-width: 280px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}


.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 2px solid var(--black);
  background: rgba(10, 9, 8, 0.4);
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}

.topbar:active {
  cursor: grabbing;
}

.system-title {
  font-family: var(--f-body);
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--paper-dim);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-label);
  letter-spacing: 2px;
  color: var(--paper);
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 15px var(--red);
  }

  50% {
    opacity: 0.4;
    box-shadow: 0 0 5px var(--red);
  }
}

.player-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  overflow: hidden;
  min-height: 0;
}

.cover-wrapper {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1;
  min-width: 60px;
  max-width: 120px;
}

.cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--black);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.meta {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.meta .label {
  font-family: var(--f-label);
  color: var(--purple-glow);
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

#title {
  font-family: var(--f-label);
  font-size: clamp(18px, 4vw, 24px);
  color: var(--paper);
  margin: 0 0 4px 0;
  line-height: 1.1;
  text-shadow: 2px 2px 0 var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#artist {
  font-family: var(--f-body);
  font-size: 0.95rem;
  color: var(--paper-dim);
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#album {
  font-family: var(--f-body);
  font-size: 0.8rem;
  color: rgba(236, 229, 211, .5);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress {
  margin: 0 16px;
  height: 6px;
  background: rgba(10, 9, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

#progress-fill {
  width: 0%;
  height: 100%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple-glow);
  transition: width .25s linear;
}

.times {
  display: flex;
  justify-content: space-between;
  margin: 8px 16px 0;
  font-family: var(--f-body);
  color: var(--paper-dim);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.spotify-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 16px;
  padding: 8px 12px;
  border: 2px solid var(--purple);
  background: transparent;
  color: var(--purple-glow);
  font-family: var(--f-label);
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: .2s ease;
  cursor: pointer;
  width: calc(100% - 32px);
  flex-shrink: 0;
}

.spotify-button:hover {
  background: var(--purple);
  color: var(--black);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}

/* ============================================================
   WIDGET RESPONSIVE CLASSES (JS Driven)
   ============================================================ */

/* 1. MINI: very short (< 320px height) - hide button, album, labels */
.player.mini .spotify-button {
  display: none;
}

.player.mini .meta .label,
.player.mini #album {
  display: none;
}

.player.mini .player-content {
  flex-direction: row;
  padding: 10px 12px;
  gap: 12px;
}

.player.mini .cover-wrapper {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
}

.player.mini .meta {
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 0;
}

/* 2. TALL: narrow+tall (width < 400px, height >= 320px) - stacked layout */
.player.tall .player-content {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  gap: 16px;
}

.player.tall .cover-wrapper {
  flex: 0 0 auto;
  width: min(180px, 70%);
  aspect-ratio: 1 / 1;
  max-width: 200px;
  height: auto;
}

.player.tall .meta {
  align-items: center;
  width: 100%;
}

.player.tall #title,
.player.tall #artist,
.player.tall #album {
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  width: 100%;
}

/* 3. LARGE: wide+tall - centered square cover, text overlay bottom-left */
.player.large .player-content {
  position: relative;
  flex-direction: row;
  padding: 0;
  align-items: stretch;
  background: #0a0908;
}

.player.large .cover-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-width: none;
  max-height: none;
  z-index: 1;
  opacity: 0.75;
}

.player.large .cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
}

.player.large .meta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  align-items: flex-start;
  text-align: left;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(6px);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: auto;
  max-width: 65%;
}

.player.large .meta .label {
  display: block;
}

.player.large #title {
  font-size: clamp(20px, 3.5vw, 32px);
  margin-bottom: 4px;
  white-space: normal;
}

.player.large #artist {
  font-size: clamp(13px, 2.2vw, 18px);
  white-space: normal;
}

/* ============================================================
   WIDGET RESIZE HANDLES
   ============================================================ */
.resizer {
  position: absolute;
}

.resizer.n {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: n-resize;
  z-index: 10;
}

.resizer.s {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: s-resize;
  z-index: 10;
}

.resizer.e {
  top: 0;
  bottom: 0;
  right: 0;
  width: 6px;
  cursor: e-resize;
  z-index: 10;
}

.resizer.w {
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  cursor: w-resize;
  z-index: 10;
}

.resizer.ne {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: ne-resize;
  z-index: 11;
}

.resizer.nw {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nw-resize;
  z-index: 11;
}

.resizer.se {
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  z-index: 11;
}

.resizer.sw {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: sw-resize;
  z-index: 11;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1000px)
   ============================================================ */
@media (max-width: 1000px) {

  /* ── Hero / Home ── */
  .hero {
    min-height: auto;
    padding: 20px 16px 50px;
    justify-content: center;
  }

  .album-rig {
    flex-direction: column;
    height: auto;
    width: 100%;
    align-items: center;
    gap: 30px;
  }

  .vinyl {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(420px, 80vw);
    height: min(420px, 80vw);
    margin-top: 0;
  }

  .vinyl:hover {
    transform: scale(1.02);
  }

  .sleeve {
    position: relative;
    width: min(420px, 80vw);
    margin: 0 auto;
    transform: rotate(0deg);
  }

  .sleeve:hover {
    transform: translateY(-4px);
  }

  /* ── Inner pages ── */
  .page-main {
    padding: 20px 24px 60px;
  }

  .booklet {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-sheet {
    columns: 3 180px;
  }

  /* ── Stuff page ── */
  .stuff-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 16px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE + TABLET (max 1100px)
   ============================================================ */
@media (max-width: 1100px) {

  /* ── Hero / Home ── */
  .hero {
    padding: 16px 12px 40px;
    align-items: flex-start;
    flex-direction: column;
  }

  .album-rig {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .vinyl {
    width: min(320px, 88vw);
    height: min(320px, 88vw);
  }

  .vinyl-nav a {
    font-size: clamp(14px, 4.5vw, 20px);
  }

  .sleeve {
    width: min(320px, 88vw);
  }

  /* ── Floating widget on mobile: bottom bar fixed ── */
  .spotify-widget {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    z-index: 9999;
    cursor: default !important;
  }

  .player {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    transform: none !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 2px solid var(--purple);
  }

  /* Force mini mode on mobile */
  .player .player-content {
    flex-direction: row !important;
    padding: 10px 14px !important;
    gap: 12px !important;
  }

  .player .cover-wrapper {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    max-width: none !important;
    aspect-ratio: 1/1 !important;
  }

  .player .meta {
    position: static !important;
    flex: 1 1 0 !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  .player .meta .label,
  .player #album {
    display: none !important;
  }

  .player .spotify-button {
    display: none !important;
  }

  #title {
    font-size: 1rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #artist {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .player .progress {
    margin: 0 14px 4px;
  }

  .player .times {
    margin: 4px 14px 8px;
    font-size: 0.7rem;
  }

  /* Padding at bottom of pages so the fixed widget doesn't cover content */
  body {
    padding-bottom: 90px;
  }

  /* ── Typography ── */
  .page-title {
    font-size: clamp(36px, 12vw, 60px);
  }

  .page-sub {
    font-size: 0.9rem;
  }

  .sleeve-title {
    font-size: 14vw;
  }

  /* ── Inner pages ── */
  .page-main {
    padding: 16px 16px 50px;
  }

  .booklet {
    gap: 24px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-sheet {
    columns: 2 140px;
    gap: 10px;
  }

  .portrait-frame {
    max-width: 260px;
    margin: 0 auto;
  }

  .tag-row {
    gap: 6px;
  }

  .tag {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  /* ── Stuff page ── */
  .stuff-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 12px;
  }

  .stuff-category-title {
    font-size: clamp(28px, 10vw, 52px);
  }

  .stuff-category-title-bg {
    font-size: 14vw;
  }

  /* ── Gallery ── */
  .contact-sheet figure {
    break-inside: avoid;
  }

  /* ── Footer ── */
  .site-footer {
    padding: 14px 16px;
    font-size: 12px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 400px)
   ============================================================ */
@media (max-width: 400px) {
  .vinyl {
    width: 92vw;
    height: 92vw;
  }

  .sleeve {
    width: 92vw;
  }

  .vinyl-nav a {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .page-title {
    font-size: 11vw;
  }

  .stuff-grid {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  }

  .contact-sheet {
    columns: 2 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}