:root{
  --ink: #0a0e1c;
  --ink-soft: #121933;
  --ink-line: #263257;
  --paper: #f3eee2;
  --paper-dark: #e6dcc4;
  --accent: #5b9df0;
  --accent-deep: #3d6fc4;
  --teal: #3e7c7b;
  --teal-deep: #2e5f5e;
  --text-on-ink: #eaeefb;
  --text-muted-on-ink: #8b96b8;
  --text-on-paper: #1e2027;
  --text-muted-on-paper: #6b6e76;

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*{ box-sizing: border-box; }

html, body{
  margin:0;
  padding:0;
  background: var(--ink);
  color: var(--text-on-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body{
  min-height: 100vh;
  padding: 64px 24px 140px;
  position: relative;
  overflow-x: hidden;
background: linear-gradient(180deg, #2f3a20 0%, #212a15 30%, #141a0d 60%, #0a0d07 85%, #000000 100%);
}

/* ---------- HERO ---------- */
.hero{
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.title{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--text-on-ink);
  margin: 0 0 0px;
}

.subtitle{
  font-family: var(--font-mono);
  font-weight: 430;
  font-size: clamp(18px, 2.4vw, 15px);
  color: var(--text-muted-on-ink);
  margin: 1px 0 0;
  text-transform: uppercase;
}

.contrib-section{
  max-width: 640px;
  margin: 88px auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---------- FICHAS (botón único + panel con PDFs) ---------- */
.composer-note{
  max-width: 520px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-muted-on-ink);
  line-height: 1.5;
}

.fichas-unit{
  display: flex;
  justify-content: center;
  position: relative;
  margin: 14px 0 0;
  z-index: 2;
}

.fichas-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-line);
  background: var(--ink-soft);
  color: var(--text-muted-on-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .15s ease;
}

.fichas-btn:hover{
  color: var(--text-on-ink);
  border-color: var(--accent);
}

.fichas-btn:active{ transform: scale(0.96); }

.fichas-unit.expanded .fichas-btn{
  color: var(--accent);
  border-color: var(--accent);
}

.fichas-panel{
  display: none;
  position: absolute;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, 90vw);
  max-height: 340px;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.fichas-unit.expanded .fichas-panel{ display: block; }
.fichas-panel-title{
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-on-paper);
  margin: 4px 12px 8px;
}

.fichas-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.fichas-row:hover{ background: rgba(0,0,0,0.06); }

.fichas-row + .fichas-row{
  border-top: 1px solid rgba(0,0,0,0.08);
}

.fichas-row-title{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fichas-row-cta{
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted-on-paper);
}

.fichas-empty{
  padding: 14px;
  font-size: 14px;
  color: var(--text-muted-on-paper);
  text-align: center;
}

.contrib-heading{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 12px;
  color: var(--text-on-ink);
}

.contrib-intro{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted-on-ink);
  margin: 0 0 28px;
}

.contrib-row{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contrib-unit{
  min-width: 220px;
  flex: 0 1 260px;
}

.contrib-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  width: 100%;
  min-width: 220px;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--ink-line);
  border-radius: 10px;
  color: var(--text-on-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}

.contrib-btn:hover{
  border-color: var(--accent);
  background: rgba(91,157,240,0.08);
}

.contrib-btn:active{ transform: scale(0.98); }

.contrib-unit.expanded .contrib-btn{
  border-color: var(--teal);
  background: rgba(62,124,123,0.1);
}

.contrib-btn .info-dot{
  width: 18px; height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  display: flex; align-items:center; justify-content:center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  opacity: 0.9;
  cursor: help;
}

/* ---------- CONTRIB PAYMENT PANEL (hover info stays on the dot only;
   clicking the button reveals the ways to actually contribute, same
   expand pattern as an album tracklist) ---------- */
.contrib-panel{
  max-height: 0;
  overflow: hidden;
  background: var(--ink-soft);
  border-radius: 14px;
  margin-top: 0;
  text-align: left;
  transition: max-height .3s ease, padding .3s ease, margin .3s ease;
}

.contrib-unit.expanded .contrib-panel{
  max-height: 600px;
  padding: 6px;
  margin-top: 10px;
}

.contrib-pay-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
}

.contrib-pay-row:hover{ background: rgba(255,255,255,0.04); }

.contrib-pay-row + .contrib-pay-row{
  border-top: 1px solid var(--ink-line);
}

.contrib-pay-info{
  flex: 1 1 auto;
  min-width: 0;
}

.contrib-pay-label{
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-on-ink);
}

.contrib-pay-value{
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted-on-ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contrib-pay-action{
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.3px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .15s ease, color .15s ease;
}

.contrib-pay-action:hover{
  background: var(--teal);
  color: var(--ink);
}

.contrib-tx-empty{
  padding: 12px 10px;
  font-size: 13px;
  color: var(--text-muted-on-ink);
}

/* ---------- ALBUMS ---------- */
.albums-heading{
  max-width: 720px;
  margin: 0 auto 24px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 15px);
  color: var(--text-muted-on-ink);
  position: relative;
  z-index: 1;
}

.albums-wrap{
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.album-col{
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

@media (max-width: 640px){
  .albums-wrap{ display: block; }
  .album-col{ display: contents; }
}

.album-unit{ position: relative; }

.album-card{
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transition: box-shadow .2s ease, transform .2s ease;
}

.album-card:hover{
  box-shadow: 0 14px 30px rgba(0,0,0,0.36);
  transform: translateY(-2px);
}

.album-card.has-cover{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.album-cover-inner{
  position: absolute;
  inset: 0;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--text-on-paper);
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.5), transparent 55%);
}

/* darker gradient + light text so titles stay readable over a photo cover */
.album-card.has-cover .album-cover-inner{
  color: #fff;
  background:
    linear-gradient(to top, rgba(10,10,14,0.85) 0%, rgba(10,10,14,0.35) 45%, rgba(10,10,14,0.05) 75%);
}

.album-card.has-cover .album-meta{
  color: rgba(255,255,255,0.75);
}

.album-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.05;
}

.album-meta{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted-on-paper);
  margin-top: 4px;
}

/* the "vinyl" that peeks from the corner and slides out on hover */
.vinyl{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2f3a, var(--ink) 70%);
  border: 2px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .25s ease, height .25s ease, top .25s ease, right .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 2;
}

.vinyl::before{
  content:"";
  width: 40%;
  height: 40%;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
}

.vinyl .play-icon{
  position: absolute;
  width: 14px; height: 14px;
  color: var(--accent);
}

.album-card:hover .vinyl,
.album-unit.expanded .vinyl{
  width: 88px;
  height: 88px;
  top: -18px;
  right: -18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

.vinyl.spinning{
  animation: spin 3s linear infinite;
}

@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------- TRACKLIST PANEL ---------- */
.tracklist{
  max-height: 0;
  overflow: hidden;
  background: var(--ink-soft);
  border-radius: 16px;
  margin-top: 10px;
  transition: max-height .3s ease, padding .3s ease, margin .3s ease;
}

.album-unit.expanded .tracklist{
  max-height: 520px;
  overflow-y: auto;
  padding: 8px 6px;
  margin-top: 12px;
}

/* barra de scroll angosta, con los colores del sitio (solo álbumes largos) */
.album-unit.expanded .tracklist::-webkit-scrollbar{
  width: 8px;
}
.album-unit.expanded .tracklist::-webkit-scrollbar-track{
  background: transparent;
}
.album-unit.expanded .tracklist::-webkit-scrollbar-thumb{
  background: var(--ink-line);
  border-radius: 8px;
}
.album-unit.expanded .tracklist::-webkit-scrollbar-thumb:hover{
  background: var(--accent);
}
.album-unit.expanded .tracklist{
  scrollbar-width: thin;
  scrollbar-color: var(--ink-line) transparent;
}

.track-row{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background .15s ease;
}

.track-row:hover{ background: rgba(255,255,255,0.04); }
.track-row.playing{ background: rgba(217,164,65,0.09); }

.track-index{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted-on-ink);
  width: 18px;
  flex: 0 0 auto;
}

.track-play{
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.4px solid var(--ink-line);
  background: transparent;
  color: var(--text-on-ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .15s ease, background .15s ease;
}

.track-row.playing .track-play{
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.track-title{
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted-on-ink);
  flex: 0 0 auto;
}

.track-info-btn{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.2px solid var(--ink-line);
  background: transparent;
  color: var(--text-muted-on-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex; align-items:center; justify-content:center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .15s ease, color .15s ease;
}

.track-info-btn:hover{
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- POPOVER / TOOLTIP ---------- */
.popover{
  position: fixed;
  max-width: 280px;
  background: var(--paper);
  color: var(--text-on-paper);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  z-index: 50;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}

.popover.visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.popover-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--teal-deep);
}

/* ---------- SHUFFLE FAB (turntable) ---------- */
.shuffle-fab{
  position: fixed;
  right: 22px;
  bottom: 18px;
  width: 96px;
  height: 96px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  display: block;
  padding: 0;
  z-index: 40;
  overflow: visible;
}

.turntable-svg{
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5));
}

.disc-body{
  fill: #0d0f16;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1.5;
}

.disc-ring{
  fill: none;
  stroke: rgba(255,255,255,0.09);
  stroke-width: 1;
}

.disc-label{ fill: #c23b2e; }
.disc-label-rim{
  fill: none;
  stroke: rgba(0,0,0,0.35);
  stroke-width: 1;
}
.disc-hole{ fill: var(--ink); }

.disc-group{
  transform-origin: 46px 54px;
  animation: spin 3.1s linear infinite;
  animation-play-state: paused;
}

.shuffle-fab.active .disc-group{
  animation-play-state: running;
}

.tonearm-group{
  transform-origin: 86px 16px;
  transform: rotate(-24deg);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}

.shuffle-fab.active .tonearm-group{
  transform: rotate(5deg);
}

.tonearm-pivot{ fill: #c9cfe3; }
.tonearm-counterweight{ fill: #8b96b8; }
.tonearm-rod{
  stroke: #d7dbe8;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.tonearm-head{ fill: #eaeefb; }

.shuffle-label{
  position: fixed;
  right: 126px;
  bottom: 58px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted-on-ink);
  z-index: 40;
  background: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--ink-line);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.shuffle-fab:hover + .shuffle-label{
  opacity: 1;
  transform: translateX(0);
}

/* ---------- TOAST ---------- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  color: var(--text-on-ink);
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 10px;
  z-index: 60;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  max-width: 88vw;
  text-align: center;
}

.toast.visible{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- FOOTER ---------- */
.site-footer{
  max-width: 640px;
  margin: 64px auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-heading{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-on-ink);
  margin: 0 0 14px;
}

.footer-credits{
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted-on-ink);
  margin: 0 0 20px;
}

.footer-credits p{ margin: 0; }

.footer-credits-label{
  font-weight: 600;
  color: var(--text-on-ink);
}

.footer-contact{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted-on-ink);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: var(--ink-line);
  text-underline-offset: 3px;
  transition: color .15s ease;
}

.footer-contact:hover{
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.footer-note{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted-on-ink);
  letter-spacing: 0.02em;
  margin: 6px 0 0;
}

@media (prefers-reduced-motion: reduce){
  .vinyl, .shuffle-fab, .popover, .toast, .tracklist, .album-card{
    transition: none !important;
    animation: none !important;
  }
}
