/* ==========================================================================
   tyzen01 — Chrono Discography Timeline
   Color-matched with tyzen01 Cyberpunk / Synthwave Aesthetics:
   Void Black, Neon Cyan (#3ff0e0), Hot Magenta (#ff2ecc), Electric Violet (#8b5cf6)
   ========================================================================== */

.chrono {
  --magenta: #ff2ecc;
  --magenta-glow: rgba(255, 46, 204, 0.45);
  --cyan: #3ff0e0;
  --cyan-glow: rgba(63, 240, 224, 0.45);
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.4);
  --acid: #d4f43b;
  --void: #060309;
  --bg-1: #0a0614;
  --bg-2: #150a24;
  --ink: #f4f1fb;
  --ink-dim: #b6acce;
  --ink-faint: #6f6486;

  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  background: var(--void);
  color: var(--ink);
  overflow: hidden;
}

.chrono__pin {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 15%, rgba(63, 240, 224, 0.09) 0%, rgba(255, 46, 204, 0.06) 40%, #060309 85%);
}

#chronoStage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Editorial Typography & Accents
   -------------------------------------------------------------------------- */

.chrono__title,
.chrono__rail,
.chrono__hint,
.chrono__note {
  position: absolute;
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 7;
}

.chrono.is-live .chrono__title,
.chrono.is-live .chrono__rail,
.chrono.is-live .chrono__hint,
.chrono.is-live .chrono__note {
  opacity: 1;
  transform: none;
}

.chrono.is-live .chrono__rail { transition-delay: 0.15s; }
.chrono.is-live .chrono__hint { transition-delay: 0.25s; }
.chrono.is-live .chrono__note { transition-delay: 0.35s; }

.chrono__title {
  left: clamp(24px, 3.6vw, 54px);
  top: clamp(80px, 11vh, 105px);
  display: grid;
  gap: 0.04em;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 0.92;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 150px;
  text-shadow: 0 0 20px rgba(63, 240, 224, 0.4), 0 0 40px rgba(255, 46, 204, 0.25);
}

.chrono__title em {
  font-style: normal;
  font-size: 0.38em;
  letter-spacing: 0.24em;
  color: var(--cyan);
  display: block;
  margin-top: 0.5em;
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(63, 240, 224, 0.6);
  white-space: nowrap;
}

.chrono__rail {
  left: clamp(24px, 3.6vw, 54px);
  top: clamp(275px, 35vh, 325px);
  display: grid;
  gap: 0.85em;
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-size: clamp(8.5px, 0.72vw, 10.5px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
  max-width: 150px;
}

.chrono__rail i,
.chrono__hint i,
.chrono__note i {
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin: 0.5em 0;
}

.chrono__hint {
  right: clamp(20px, 4vw, 64px);
  top: clamp(80px, 12vh, 110px);
  text-align: right;
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-size: clamp(8px, 0.7vw, 10.5px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 2.1;
  text-shadow: 0 0 16px rgba(63, 240, 224, 0.5);
}
.chrono__hint i {
  margin-left: auto;
  background: linear-gradient(270deg, var(--cyan), transparent);
}

.chrono__note {
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 2.2;
}

.chrono__note--bl {
  left: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 5vh, 60px);
}

.chrono__note--br {
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(24px, 5vh, 60px);
  text-align: right;
}
.chrono__note--br i {
  margin-left: auto;
  background: linear-gradient(270deg, var(--magenta), transparent);
}

/* --------------------------------------------------------------------------
   The Deck of Release Cards & Album Title Tags on the Arc
   -------------------------------------------------------------------------- */

.chrono__deck {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  pointer-events: none;
  z-index: 5;
}

/* Album Name Tags floating along the rail */
.yr-tag {
  position: absolute;
  appearance: none;
  border: 0;
  padding: 4px 8px;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -125%) scale(calc(0.88 + 0.12 * var(--near, 0)));
  transform-origin: 50% 100%;
  text-align: center;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 19px);
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  color: color-mix(in srgb, #fff calc(50% + 50% * var(--near, 0)), var(--cyan));
  opacity: calc(var(--in, 1) * (0.68 + 0.32 * var(--near, 0)));
  text-shadow:
    0 0 8px rgba(63, 240, 224, calc(0.25 + 0.45 * var(--near, 0))),
    0 0 20px rgba(255, 46, 204, calc(0.15 + 0.5 * var(--near, 0)));
  transition: color 0.4s ease, text-shadow 0.4s ease, opacity 0.3s ease;
  will-change: transform, opacity;
  z-index: 10;
}

.yr-tag.is-active {
  color: #fff;
  opacity: 1;
  text-shadow:
    0 0 10px rgba(63, 240, 224, 0.95),
    0 0 26px rgba(255, 46, 204, 0.9),
    0 0 55px rgba(139, 92, 246, 0.7);
  z-index: 26;
}

/* 3D Album Card */
.yr {
  position: absolute;
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  color: inherit;
  text-align: left;
  font: inherit;
  z-index: calc(5 + var(--depth, 0));

  /* Anchored at center of photo (30% down the card), leaning with rail tangent */
  transform-origin: 50% 30%;
  transform:
    translate(-50%, -30%)
    translateZ(calc(var(--near, 0) * 46px))
    translateY(calc((1 - var(--in, 1)) * 26px))
    rotate(var(--tilt, 0deg))
    scale(calc(0.94 + 0.06 * var(--near, 0)));
  opacity: var(--in, 1);
  will-change: transform, opacity;
  transition: filter 0.45s ease;
}

.yr.is-active,
.yr:hover {
  z-index: 25;
}

.yr__frame {
  position: relative;
  display: block;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(21, 10, 36, 0.95), rgba(6, 3, 9, 0.98));
  border: 1px solid rgba(63, 240, 224, calc(0.15 + 0.65 * var(--near, 0)));
  box-shadow:
    0 20px 50px -15px rgba(0, 0, 0, 0.95),
    0 0 calc(8px + 45px * var(--near, 0)) rgba(255, 46, 204, calc(0.08 + 0.5 * var(--near, 0))),
    inset 0 1px 0 rgba(63, 240, 224, 0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, transform 0.3s ease;
}

.yr.is-active .yr__frame {
  border-color: var(--magenta);
  background: linear-gradient(165deg, rgba(30, 15, 52, 0.96), rgba(10, 6, 20, 0.99));
  box-shadow:
    0 24px 60px -15px rgba(0, 0, 0, 0.98),
    0 0 55px rgba(255, 46, 204, 0.55),
    0 0 20px rgba(63, 240, 224, 0.35),
    inset 0 1px 1px rgba(63, 240, 224, 0.35);
}

.yr__art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.yr__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    saturate(calc(0.65 + 0.45 * var(--near, 0)))
    brightness(calc(0.7 + 0.4 * var(--near, 0)))
    contrast(1.08);
  transition: filter 0.45s ease, transform 0.5s ease;
}

.yr:hover .yr__img,
.yr.is-active .yr__img {
  transform: scale(1.03);
}

/* Play button overlay */
.yr__play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 3, 9, 0.45);
  backdrop-filter: blur(2px);
  opacity: calc(var(--near, 0));
  transition: opacity 0.3s ease, background 0.3s ease;
}

.yr__play-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(255, 46, 204, 0.8), 0 0 12px rgba(63, 240, 224, 0.8);
  transform: scale(calc(0.85 + 0.15 * var(--near, 0)));
  transition: transform 0.25s ease;
}

.yr__play-icon--spotify {
  background: #1DB954;
  color: #060309;
  box-shadow: 0 0 24px rgba(29, 185, 84, 0.75), 0 0 14px rgba(63, 240, 224, 0.6);
}

.yr:hover .yr__play-icon {
  transform: scale(1.15);
}

/* Era Tag Badge */
.yr__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(6, 3, 9, 0.8);
  backdrop-filter: blur(4px);
  color: var(--cyan);
  border: 1px solid rgba(63, 240, 224, 0.4);
}

.yr__body {
  display: block;
  padding: 10px 4px 4px;
}

.yr__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.yr__title {
  display: block;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: clamp(18px, 1.45vw, 24px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 12px rgba(63, 240, 224, calc(0.2 + 0.4 * var(--near, 0)));
}

.yr__key {
  display: block;
  margin-top: 0.35em;
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-weight: 600;
  font-size: clamp(8px, 0.68vw, 10px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink-dim) calc(100% - 70% * var(--near, 0)), var(--magenta));
}

.yr__lines {
  display: grid;
  gap: 0.22em;
  margin-top: 0.5em;
}

.yr__lines i {
  font-style: normal;
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-size: clamp(7.5px, 0.58vw, 9px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yr.is-active .yr__lines i {
  color: var(--ink-dim);
}

.yr__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7em;
  padding-top: 0.5em;
  border-top: 1px solid rgba(63, 240, 224, calc(0.12 + 0.3 * var(--near, 0)));
  font-family: var(--font-body, "Space Grotesk", sans-serif);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: calc(0.5 + 0.5 * var(--near, 0));
  transition: opacity 0.3s ease;
}

.yr__go {
  width: 13px;
  height: 13px;
  transform: translate(-2px, 2px);
  transition: transform 0.3s ease;
}

.yr:hover .yr__go,
.yr.is-active .yr__go {
  transform: translate(1px, -1px);
}

.yr:focus-visible .yr__frame {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Portrait / Mobile Layout
   -------------------------------------------------------------------------- */

.chrono.is-portrait .chrono__deck { perspective: none; }

.chrono.is-portrait .yr {
  transform:
    translate(-50%, -50%)
    translateY(calc((1 - var(--near, 0)) * 24px))
    scale(calc(0.94 + 0.06 * var(--near, 0)));
  opacity: calc(var(--in, 1) * max(0, var(--near, 0) * 3 - 2));
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chrono.is-portrait .yr.is-active {
  pointer-events: auto;
}

.chrono.is-portrait .yr-tag {
  transform: translate(-50%, -50%) scale(calc(0.9 + 0.2 * var(--near, 0)));
  padding: 12px 16px;
  margin: -12px -16px;
  pointer-events: auto;
  cursor: pointer;
  opacity: calc(var(--in, 0) * (0.4 + 0.6 * var(--near, 0)));
}

.chrono.is-portrait .chrono__hint {
  top: auto;
  bottom: clamp(20px, 4.5vh, 48px);
}

@media (max-width: 768px) {
  .chrono {
    min-height: 100vh;
    min-height: 100svh;
    height: 100svh;
  }
  .chrono__rail { display: none; }
  .chrono__note--bl { display: none; }
  .chrono__title {
    top: 75px;
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chrono__title, .chrono__rail, .chrono__hint, .chrono__note,
  .yr, .yr__frame, .yr__img, .yr-tag {
    transition-duration: 0.01ms !important;
  }
}
