/* =========================================================
   TLLNALF MUSIC CAPSULE — 1989 SKY EDITION
========================================================= */

:root {
  --sky-top: #9bd2f0;
  --sky-mid: #77b6df;
  --sky-bottom: #4d91bf;

  --ink: #153d5a;
  --ink-soft: #41677f;

  --white: rgba(255, 255, 255, .94);
  --white-soft: rgba(255, 255, 255, .72);
  --white-faint: rgba(255, 255, 255, .42);

  --line: rgba(255, 255, 255, .28);
  --glass: rgba(255, 255, 255, .16);
  --glass-strong: rgba(255, 255, 255, .24);

  --shadow: rgba(35, 91, 128, .24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sky-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    Arial,
    sans-serif;

  color: var(--white);

  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.62) 0%, rgba(255,255,255,0) 33%),
    linear-gradient(180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 49%,
      var(--sky-bottom) 100%);
}

.sky-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
}

.glow-a {
  width: 380px;
  height: 380px;
  left: -180px;
  top: 20%;
  background: rgba(255,255,255,.28);
}

.glow-b {
  width: 420px;
  height: 420px;
  right: -240px;
  bottom: -100px;
  background: rgba(202,239,255,.34);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 20px 14px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 14px;
}

.brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,.72);
}

.capsule {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(14px);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: rgba(255,255,255,.86);
}

.music-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 32px;

  background:
    linear-gradient(145deg,
      rgba(255,255,255,.26),
      rgba(255,255,255,.10));

  box-shadow:
    0 28px 70px var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.22);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* ---------------- COVER ---------------- */

.cover-zone {
  position: relative;
}

.cover-aura {
  position: absolute;
  inset: 10%;
  z-index: 0;
  border-radius: 28px;

  background: rgba(221,244,255,.82);
  filter: blur(32px);
  opacity: .52;

  transform: scale(.98);
  transition: opacity .5s ease;
}

#cover {
  position: relative;
  z-index: 1;

  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  border-radius: 25px;

  box-shadow:
    0 20px 44px rgba(30,75,104,.28);

  transform: scale(1);
  will-change: transform;
}

/* The breathing animation is intentionally subtle. */
.music-card.is-playing #cover {
  animation: coverBreathe 3.8s ease-in-out infinite;
}

.music-card.is-playing .cover-aura {
  animation: auraBreathe 3.8s ease-in-out infinite;
}

@keyframes coverBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 20px 44px rgba(30,75,104,.28);
  }
  50% {
    transform: scale(1.018);
    box-shadow: 0 28px 70px rgba(221,246,255,.55);
  }
}

@keyframes auraBreathe {
  0%, 100% {
    opacity: .48;
    transform: scale(.98);
  }
  50% {
    opacity: .94;
    transform: scale(1.04);
  }
}

/* ---------------- TRACK INFO ---------------- */

.track-intro {
  padding: 24px 2px 4px;
  text-align: center;
}

.era-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.era-line span {
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.38);
}

.era-line p {
  margin: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.60);
}

.track-intro h1 {
  margin: 0;

  color: #173d5a;

  font-size: clamp(42px, 11vw, 56px);
  line-height: .95;
  font-weight: 850;
  letter-spacing: -2px;

  text-shadow: 0 1px 0 rgba(255,255,255,.20);
}

.version {
  margin: 10px 0 0;
  color: rgba(226,245,255,.96);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.2px;
}

.artist-block {
  margin-top: 23px;
}

.artist {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.album {
  margin: 8px 0 0;
  color: rgba(219,240,252,.70);
  font-size: 13px;
  font-weight: 500;
}

.album em {
  color: rgba(255,255,255,.88);
  font-style: normal;
}

/* ---------------- PLAYER ---------------- */

.player-card {
  margin-top: 25px;
  padding: 16px;

  border: 1px solid rgba(255,255,255,.25);
  border-radius: 23px;

  background: rgba(255,255,255,.12);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: rgba(255,255,255,.52);
}

.status {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: rgba(255,255,255,.90);
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,.50);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
  transition: .25s ease;
}

.music-card.is-playing .status-dot {
  background: #eaf8ff;
  box-shadow:
    0 0 0 5px rgba(234,248,255,.13),
    0 0 18px rgba(234,248,255,.72);
}

audio {
  display: block;
  width: 100%;
  height: 46px;
  border-radius: 16px;
}

.player-hint {
  min-height: 16px;
  margin: 10px 1px 0;
  font-size: 11px;
  color: rgba(255,255,255,.56);
}

/* ---------------- ARCHIVE ---------------- */

.archive-card {
  margin-top: 22px;
  padding: 20px;

  border: 1px solid rgba(255,255,255,.23);
  border-radius: 25px;

  background:
    linear-gradient(145deg,
      rgba(255,255,255,.14),
      rgba(255,255,255,.07));
}

.archive-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;

  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.17);
}

.archive-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.5px;
}

.archive-mark {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;

  color: rgba(255,255,255,.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.archive-list {
  margin-top: 2px;
}

.archive-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;

  padding: 17px 0;
  border-bottom: 1px solid rgba(255,255,255,.11);
}

.archive-item:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.archive-index {
  padding-top: 2px;
  color: rgba(255,255,255,.34);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
}

.archive-content {
  min-width: 0;
}

.archive-label {
  display: block;
  margin-bottom: 5px;

  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.archive-content strong {
  display: block;
  color: rgba(255,255,255,.92);

  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;

  overflow-wrap: anywhere;
}

/* Important music metadata gets a slightly stronger visual anchor. */
.archive-item.featured .archive-index {
  color: rgba(227,247,255,.78);
}

.archive-item.featured .archive-content strong {
  color: #ffffff;
  font-size: 17px;
}

/* ---------------- FOOTER ---------------- */

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 18px;

  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 420px) {
  .page-shell {
    padding: 12px 9px 30px;
  }

  .music-card {
    padding: 17px;
    border-radius: 28px;
  }

  .topbar {
    margin-bottom: 10px;
  }

  .brand {
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .capsule {
    padding: 8px 10px;
    font-size: 8px;
  }

  .track-intro {
    padding-top: 21px;
  }

  .artist {
    font-size: 20px;
  }

  .archive-card {
    padding: 18px;
  }

  .archive-content strong {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
