/* ============================================================
   UR // unreleased  ::  minimal stylesheet
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --ink: #f4ede1;
  --ink-dim: #6f6a60;
  --accent: #ff3d00;
  --line: rgba(244, 237, 225, 0.10);

  --font-display: 'Bodoni Moda', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  display: grid;
  place-items: center;
  height: 100dvh;
}

/* ---------- ambient background ---------- */
.bg-blob {
  position: fixed; pointer-events: none; z-index: 0;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(140px); opacity: 0.28;
  animation: blob 26s ease-in-out infinite alternate;
}
.bg-blob--a { top: -25vmax; left: -15vmax; background: var(--accent); }
.bg-blob--b { bottom: -25vmax; right: -15vmax; background: #6a5cff;
              animation-duration: 32s; animation-delay: -10s; }

@keyframes blob {
  0%   { transform: translate(0, 0) scale(1);   }
  50%  { transform: translate(8vmax, -4vmax) scale(1.2); }
  100% { transform: translate(-4vmax, 6vmax) scale(0.9); }
}

.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- main stage ---------- */
.stage {
  position: relative; z-index: 2;
  width: min(560px, 92vw);
  display: grid;
  gap: 32px;
  text-align: center;
}

/* ---------- title ---------- */
.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 11vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) both;
}
.title--italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ---------- player ---------- */
.player {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  padding: 22px 24px 18px;
  text-align: left;
  animation: fadeUp 0.8s cubic-bezier(.2,.7,.2,1) 0.15s both;
}

.now {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 12px;
}
.now__index {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--accent);
}
.now__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
  transition: opacity 0.3s;
}

/* waveform */
.wave {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  height: 48px;
  cursor: pointer;
}
.wave__bar {
  flex: 1;
  background: var(--ink-dim);
  opacity: 0.4;
  border-radius: 1px;
  height: 20%;
  transition: background 0.15s, opacity 0.15s;
}
.wave__progress {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 0%;
  border-right: 2px solid var(--accent);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,61,0,0.05), rgba(255,61,0,0.15));
  transition: width 0.1s linear;
}
.wave.is-active .wave__bar {
  animation: wavedance 1.2s ease-in-out infinite;
}
.wave.is-active .wave__bar:nth-child(2n) { animation-delay: 0.1s; }
.wave.is-active .wave__bar:nth-child(3n) { animation-delay: 0.2s; }
.wave.is-active .wave__bar:nth-child(4n) { animation-delay: 0.3s; }
.wave.is-active .wave__bar:nth-child(5n) { animation-delay: 0.45s; }
.wave.is-active .wave__bar:nth-child(7n) { animation-delay: 0.6s; }

@keyframes wavedance {
  0%, 100% { height: 20%; opacity: 0.4; }
  50%      { height: 90%; opacity: 1; background: var(--ink); }
}

.now__times {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-dim);
  margin-top: 6px;
}

/* transport */
.transport {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.t-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.t-btn svg {
  width: 13px; height: 13px;
  fill: currentColor; stroke: currentColor; stroke-width: 1.5;
}
.t-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.t-btn:active { transform: translateY(0) scale(0.96); }

.t-btn--main {
  width: 52px; height: 52px;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.t-btn--main:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 30px rgba(255,61,0,0.35);
}
.t-btn--main svg { width: 15px; height: 15px; }

.ic-pause { display: none; }
.is-playing .ic-play  { display: none; }
.is-playing .ic-pause { display: block; }

/* ---------- track list ---------- */
.tracks {
  list-style: none;
  display: grid;
  gap: 6px;
  text-align: left;
}
.track {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  animation: fadeUp 0.6s cubic-bezier(.2,.7,.2,1) both;
}
.track:nth-child(1) { animation-delay: 0.30s; }
.track:nth-child(2) { animation-delay: 0.40s; }
.track:nth-child(3) { animation-delay: 0.50s; }

.track::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--accent);
  transition: width 0.25s ease;
}
.track:hover { border-color: rgba(244,237,225,0.3); transform: translateX(3px); }
.track:hover::before { width: 2px; }

.track--active {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(255,61,0,0.06), transparent);
}
.track--active::before { width: 2px; }
.track--active .track__num   { color: var(--accent); }
.track--active .track__title { color: var(--ink); }

.track__num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--ink-dim);
}
.track__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.2s;
}
.track__bars {
  display: flex; align-items: flex-end; gap: 2px;
  width: 22px; height: 18px;
}
.track__bars i {
  flex: 1; background: var(--ink-dim);
  height: 30%; opacity: 0.4;
  transition: all 0.2s;
}
.track--active .track__bars i {
  background: var(--accent);
  opacity: 1;
  animation: eq 1s ease-in-out infinite;
}
.track--active .track__bars i:nth-child(2) { animation-delay: 0.2s; }
.track--active .track__bars i:nth-child(3) { animation-delay: 0.4s; }
.track--active .track__bars i:nth-child(4) { animation-delay: 0.1s; }

@keyframes eq {
  0%, 100% { height: 30%; }
  50%      { height: 100%; }
}

.track--empty {
  cursor: not-allowed; opacity: 0.4;
  border-style: dashed;
}
.track--empty:hover { transform: none; border-color: var(--line); }
.track--empty:hover::before { width: 0; }

/* ---------- credit ---------- */
.credit {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-top: 4px;
  animation: fadeUp 0.6s cubic-bezier(.2,.7,.2,1) 0.65s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- mobile ---------- */
@media (max-width: 600px) {
  .stage { gap: 22px; padding: 0 8px; }
  .title { font-size: clamp(56px, 18vw, 88px); }
  .player { padding: 16px 16px 14px; }
  .now__title { font-size: 16px; }
  .wave { height: 38px; }
  .transport { gap: 10px; margin-top: 14px; padding-top: 12px; }
  .t-btn { width: 34px; height: 34px; }
  .t-btn--main { width: 46px; height: 46px; }
  .track { padding: 10px 12px; gap: 10px; grid-template-columns: 28px 1fr auto; }
  .track__title { font-size: 14px; }
}

@media (max-height: 640px) {
  .stage { gap: 18px; }
  .title { font-size: clamp(44px, 9vw, 72px); }
}
