/* ===== ANGXZ Landing — dark / underground, black + neon yellow ===== */
:root {
  --bg: #08090b;
  --neon: #FFE000;
  --glow: 0 0 26px rgba(255, 224, 0, 0.45);
  --text: #f2f3f5;
  --stripe: repeating-linear-gradient(135deg, #15181f, #15181f 9px, #101319 9px, #101319 18px);
  --stripe-sm: repeating-linear-gradient(135deg, #15181f, #15181f 5px, #101319 5px, #101319 10px);
}

* { box-sizing: border-box; }

/* ===== LOADING SCREEN (Lottie) ===== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08090b;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  pointer-events: none;
}
.loader__anim {
  width: min(360px, 68vw);
  filter: drop-shadow(0 0 30px rgba(255, 224, 0, 0.18));
}
.loader__anim svg { display: block; }
/* Fallback if the Lottie lib/file fails to load: neon pulse so it never blanks. */
.loader__anim:empty {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow);
  animation: loaderPulse 1s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { transform: scale(0.7); opacity: 0.5; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader__anim:empty { animation: none; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: "widescreen", sans-serif;
  min-height: 100vh;
  padding-bottom: 108px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
::selection { background: var(--neon); color: #08090b; }

.logo-svg { height: 23px; width: auto; display: block; color: #f6f7f8; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a9099;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--text); }
.nav__pills { display: flex; gap: 8px; }

.pill {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #c4c8ce;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.pill:hover { border-color: var(--neon); color: var(--neon); }

/* ===== HERO ===== */
.hero { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 32px 56px; }
.hero__grid { position: relative; z-index: 1; display: flex; gap: 60px; align-items: center; flex-wrap: wrap; }

/* Full-bleed background: the latest cover art (or a custom assets/hero-bg.jpg),
   blurred + darkened so the foreground stays legible. Set by app.js. */
.hero__bg {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%) scale(1.08);
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.55) saturate(1.1);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero__bg.is-ready { opacity: 1; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.55), rgba(8, 9, 11, 0.78) 62%, #08090b);
}

.cover {
  position: relative;
  flex: 0 0 auto;
  width: 430px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  background: var(--stripe);
  box-shadow: var(--glow);
}
.cover__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}
.cover__label { font-size: 11px; letter-spacing: 2px; color: #5a6069; }
.cover__hint { font-size: 10px; letter-spacing: 1px; color: #3f444c; }
.cover__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--neon);
  color: #08090b;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  box-shadow: var(--glow);
  transition: transform 0.12s ease;
}
.cover__play:hover { transform: translate(-50%, -50%) scale(1.05); }

.hero__info { flex: 1 1 360px; min-width: 300px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--neon);
}
.eyebrow__line { width: 24px; height: 1px; background: var(--neon); }
.hero__title {
  margin: 0;
  font-family: "widescreen-ex", sans-serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__credit { margin-top: 20px; font-size: 13px; letter-spacing: 2px; color: #8a9099; }
.hero__desc { margin: 20px 0 0; max-width: 420px; color: #9aa0a8; font-size: 16px; line-height: 1.6; }

.chips { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.chip {
  font-size: 11px;
  letter-spacing: 1px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #c4c8ce;
}

.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "widescreen", sans-serif;
  letter-spacing: 1px;
  transition: transform 0.12s ease;
}
.btn--solid {
  padding: 14px 28px;
  border: none;
  background: var(--neon);
  color: #08090b;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--glow);
}
.btn--ghost {
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e6e9ed;
  font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); }

/* ===== SECTIONS ===== */
.section { max-width: 1180px; margin: 0 auto; padding: 48px 32px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}
.section__title {
  margin: 0;
  font-family: "widescreen-ex", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section__meta { font-size: 12px; letter-spacing: 2px; color: #5a6069; }

/* ===== RELEASES (cuadrícula de tarjetas) ===== */
.releases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.release {
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.15s ease;
}
.release:hover { transform: translateY(-3px); }
.release__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.release__thumb {
  width: 100%;
  height: 100%;
  background: var(--stripe-sm);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.release:hover .release__thumb { transform: scale(1.05); }
.release__num {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #f2f3f5;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 7px;
  border-radius: 3px;
  backdrop-filter: blur(2px);
}
.release__play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--neon);
  color: #08090b;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 6px 20px rgba(255, 224, 0, 0.35);
}
.release:hover .release__play,
.release.is-playing .release__play { opacity: 1; transform: translateY(0); }
.release__main { padding: 13px 2px 0; min-width: 0; }
.release__title {
  font-family: "widescreen-ex", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.release__sub {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #7a8089;
}
.release__now { color: var(--neon); }
.release__foot {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.release__listen { font-size: 11px; letter-spacing: 1px; color: #7a8089; transition: color 0.15s ease; }
.release__listen:hover { color: var(--neon); }
.release__dur { font-size: 12px; color: #9aa0a8; }

/* The design keeps track titles in Widescreen (bold), not Ex Black, so they
   don't compete with the section headers. */
.release__title, .download__title { font-family: "widescreen", sans-serif; font-weight: 600; }

/* ===== DOWNLOADS ===== */
.download {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.12s ease;
}
.download:hover { background: rgba(255, 255, 255, 0.02); }
.download__num { font-size: 13px; color: #5a6069; }
.download__title { font-size: 17px; letter-spacing: -0.3px; }
.download__sub { margin-top: 3px; font-size: 11px; letter-spacing: 1px; color: #7a8089; }
.download__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.dlbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: #e6e9ed;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.dlbtn:hover { border-color: var(--neon); color: var(--neon); }
.dlbtn__size { color: #5a6069; }

/* ===== FOOTER ===== */
.footer {
  max-width: 1180px;
  margin: 48px auto 0;
  padding: 48px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__link { font-size: 12px; letter-spacing: 1px; color: #9aa0a8; transition: color 0.15s ease; }
.footer__link:hover { color: var(--neon); }
.footer__copy { margin-top: 40px; font-size: 11px; letter-spacing: 1px; color: #3f444c; }

/* ===== FIXED PLAYER ===== */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(13, 15, 19, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.player__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 500px) 1fr;
  align-items: center;
  gap: 24px;
}
.player__now { display: flex; align-items: center; gap: 13px; min-width: 0; }
.player__cover {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--stripe-sm);
}
.player__nowtext { min-width: 0; }
.player__curtitle {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__curmeta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #7a8089;
}

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.eq__bar {
  display: inline-block;
  width: 2.5px;
  height: 11px;
  background: var(--neon);
  transform-origin: bottom;
  animation: eqb 0.55s ease-in-out infinite;
}
.eq__bar:nth-child(1) { animation-delay: 0s; }
.eq__bar:nth-child(2) { animation-delay: 0.12s; }
.eq__bar:nth-child(3) { animation-delay: 0.24s; }
.eq__bar:nth-child(4) { animation-delay: 0.36s; }
@keyframes eqb { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

.player__controls { display: flex; flex-direction: column; gap: 8px; }
.player__buttons { display: flex; align-items: center; justify-content: center; gap: 18px; }
.ctrl { background: none; border: none; color: #9aa0a8; cursor: pointer; font-size: 15px; transition: color 0.15s ease; }
.ctrl:hover { color: var(--text); }
.ctrl--play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--neon);
  color: #08090b;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
  transition: transform 0.12s ease;
}
.ctrl--play:hover { color: #08090b; }
.ctrl__icon { padding-left: 2px; }
.ctrl__icon.is-playing { padding-left: 0; letter-spacing: -2px; }

.player__scrubrow { display: flex; align-items: center; gap: 11px; }
.player__time { font-size: 11px; color: #7a8089; width: 34px; }
.player__time--elapsed { color: #9aa0a8; text-align: right; }
.scrub { position: relative; flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; }
.scrub__track { position: absolute; left: 0; right: 0; height: 3px; background: #2a2e36; border-radius: 2px; }
.scrub__fill { position: absolute; left: 0; height: 3px; width: 0%; background: var(--neon); border-radius: 2px; }
.scrub__knob { position: absolute; left: 0%; width: 11px; height: 11px; border-radius: 50%; background: var(--neon); transform: translateX(-50%); }

.player__vol { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.player__vollabel { font-size: 10px; letter-spacing: 1px; color: #7a8089; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 14px;
}
.player__vol input[type=range] { width: 96px; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: #2a2e36; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--neon); margin-top: -4px; cursor: pointer; }
input[type=range]::-moz-range-track { height: 3px; background: #2a2e36; border-radius: 2px; }
input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border: none; border-radius: 50%; background: var(--neon); cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .player__inner { grid-template-columns: 1fr auto; gap: 16px; }
  .player__controls { grid-column: 1 / -1; order: 3; }
  .player__vol { order: 2; }
}
@media (max-width: 720px) {
  .nav__inner { padding: 14px 20px; }
  .nav__link { display: none; }
  .hero { padding: 40px 20px 40px; }
  .hero__grid { gap: 32px; }
  .section { padding: 36px 20px; }
  .footer { padding: 40px 20px; }
  .releases { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
  .player__inner { padding: 12px 16px; }
}
@media (max-width: 520px) {
  .cover { width: 100%; }
  .download { grid-template-columns: 28px 1fr; }
  .download__btns { grid-column: 2 / 3; margin-top: 10px; }
  .player__now { display: none; }
  .player__inner { grid-template-columns: 1fr auto; }
}

/* Touch devices have no hover — keep the play button visible on the cards. */
@media (hover: none) {
  .release__play { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .eq__bar { animation: none; }
}

/* ===== MOTION: entrada del hero + reveals al hacer scroll =====
   La entrada arranca cuando el loader se oculta (html.ready, lo pone app.js).
   Los estados ocultos de los reveals solo existen bajo html.anim (también
   lo pone app.js): sin JS o con reduced motion nada queda invisible. */
@keyframes axz-rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: no-preference) {
  html.ready .hero__cover         { animation: axz-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  html.ready .hero__info .eyebrow { animation: axz-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }
  html.ready .hero__title         { animation: axz-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both; }
  html.ready .hero__credit        { animation: axz-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.26s both; }
  html.ready .hero__desc          { animation: axz-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.34s both; }
  html.ready .hero .chips         { animation: axz-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.42s both; }
  html.ready .hero__actions       { animation: axz-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }

  html.anim .reveal {
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--rd, 0s);
  }
  html.anim .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
  /* Hijos de un grupo: solo fade con stagger; el transform queda libre
     para el hover de las release-cards (translateY -3px). */
  html.anim .reveal-group > * {
    transition: opacity 0.55s ease, transform 0.15s ease;
    transition-delay: var(--sd, 0s), 0s;
  }
  html.anim .reveal-group:not(.in) > * { opacity: 0; }
  .reveal-group > *:nth-child(2) { --sd: 0.07s; }
  .reveal-group > *:nth-child(3) { --sd: 0.14s; }
  .reveal-group > *:nth-child(4) { --sd: 0.21s; }
  .reveal-group > *:nth-child(5) { --sd: 0.28s; }
  .reveal-group > *:nth-child(6) { --sd: 0.35s; }
  .reveal-group > *:nth-child(n+7) { --sd: 0.42s; }
}

/* Nav link: subrayado neón que crece desde el centro al pasar el mouse */
.nav__link { position: relative; padding-bottom: 3px; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(255, 224, 0, 0.6);
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav__link:hover::after { transform: scaleX(1); }

/* Press feedback (al final para ganarle al :hover) */
.btn:active, .pill:active, .ctrl--play:active { transform: scale(0.96); }
.cover__play:active { transform: translate(-50%, -50%) scale(0.95); }
.release__play:active { transform: translateY(0) scale(0.92); }
