:root {
  color-scheme: dark;
  --ink: #fff8ef;
  --muted: #d9c4db;
  --night: #100317;
  --night-soft: #1b0827;
  --pink: #ff2e93;
  --pink-bright: #ff62bc;
  --yellow: #ffd521;
  --orange: #ff8a18;
  --chocolate: #381509;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --player-height: 104px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: calc(var(--player-height) + 36px);
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(242, 44, 147, 0.26), transparent 30rem),
    radial-gradient(circle at 12% 42%, rgba(255, 123, 20, 0.13), transparent 28rem),
    linear-gradient(145deg, #0b0211 0%, #21082d 53%, #110318 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--night);
  background: var(--yellow);
  border-radius: 999px;
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
}

.ambient--pink {
  top: 12%;
  right: -12rem;
  background: var(--pink);
}

.ambient--orange {
  bottom: 15%;
  left: -14rem;
  background: var(--orange);
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 620px) minmax(300px, 530px);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7.5rem);
  width: min(1320px, calc(100% - 48px));
  min-height: min(900px, 100vh);
  margin: 0 auto;
  padding: 70px 0 76px;
}

.hero__cover-wrap {
  position: relative;
}

.cover-glow {
  position: absolute;
  inset: 8% 5% -4%;
  z-index: -1;
  background: linear-gradient(125deg, var(--pink), var(--orange));
  filter: blur(48px);
  opacity: 0.52;
  transform: rotate(-3deg);
}

.hero__cover {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  box-shadow: var(--shadow);
  transform: rotate(-1.1deg);
}

.cover-back-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: white;
  background: rgba(16, 3, 23, 0.74);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: background 160ms ease, transform 160ms ease;
}

.cover-back-button:hover {
  background: rgba(255, 46, 147, 0.88);
  transform: translateY(-2px);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow: 5px 7px 0 #751154;
  transform: skewY(-2deg);
}

h1 span {
  color: var(--yellow);
  text-shadow: 5px 7px 0 #9d3714;
}

.artist {
  margin-bottom: 0.15rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.featured {
  margin-bottom: 1.6rem;
  color: var(--pink-bright);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
}

.intro {
  max-width: 44ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.album-play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 58px;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 999px;
  color: #18000d;
  background: linear-gradient(135deg, var(--yellow), #ffae19);
  box-shadow: 0 12px 35px rgba(255, 180, 21, 0.24), inset 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.album-play-button:hover {
  box-shadow: 0 16px 42px rgba(255, 180, 21, 0.34), inset 0 1px rgba(255, 255, 255, 0.7);
  transform: translateY(-3px) rotate(-1deg);
}

.album-play-button__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding-left: 2px;
  border-radius: 50%;
  color: white;
  background: var(--pink);
  box-shadow: 0 4px 0 #a60957;
}

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.track-section {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 46, 147, 0.09), transparent 32%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-transform: uppercase;
}

.track-summary {
  flex: 0 0 auto;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.track-summary span {
  margin: 0 0.5rem;
  color: var(--pink);
}

.track-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: track;
}

.track-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  counter-increment: track;
  transition: background 150ms ease, transform 150ms ease;
}

.track-item:last-child {
  border-bottom: 0;
}

.track-item::before {
  position: absolute;
  inset: 6px -12px;
  z-index: -1;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 46, 147, 0.22), rgba(255, 213, 33, 0.05));
  content: "";
  opacity: 0;
  transition: opacity 150ms ease;
}

.track-item:hover::before,
.track-item.is-active::before {
  opacity: 1;
}

.track-item.is-active {
  border-bottom-color: transparent;
}

.track-select {
  display: grid;
  grid-template-columns: 3.3rem 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 74px;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.track-number {
  color: #947c99;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.track-play {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--pink-bright);
  font-size: 0.66rem;
}

.is-active .track-play {
  border-color: var(--pink);
  color: white;
  background: var(--pink);
  box-shadow: 0 0 22px rgba(255, 46, 147, 0.5);
}

.track-name {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-active .track-name {
  color: white;
}

.track-duration {
  padding-right: 1rem;
  color: #b9a6bd;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.track-download {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  transition: color 150ms ease, background 150ms ease;
}

.track-download:hover {
  color: var(--night);
  background: var(--yellow);
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2.2rem 0 1rem;
  color: #977f9b;
  font-size: 0.8rem;
  font-weight: 700;
}

footer p {
  margin-bottom: 0;
}

footer span {
  color: var(--pink);
}

.player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.7fr) minmax(140px, 0.5fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: var(--player-height);
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(19, 4, 27, 0.92);
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(25px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 28px));
  visibility: hidden;
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms;
}

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

.player__track {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
}

.player__track img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.player__track-copy {
  min-width: 0;
}

.player__label {
  margin-bottom: 0.18rem;
  color: var(--pink-bright);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player__title {
  overflow: hidden;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__main {
  display: grid;
  gap: 0.55rem;
}

.player__buttons {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #ded0e0;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.icon-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.08);
}

.icon-button--primary {
  width: 42px;
  height: 42px;
  padding-left: 2px;
  color: #20010e;
  background: var(--pink-bright);
  box-shadow: 0 0 24px rgba(255, 46, 147, 0.32);
  font-size: 0.9rem;
}

.icon-button--primary:hover {
  color: #20010e;
  background: var(--yellow);
}

.player__timeline {
  display: grid;
  grid-template-columns: 2.7rem 1fr 2.7rem;
  align-items: center;
  gap: 0.65rem;
  color: #aa98ae;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.range {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--pink-bright) 80%, rgba(255, 255, 255, 0.17) 80%);
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.range--progress {
  background: linear-gradient(to right, var(--pink-bright) 0%, rgba(255, 255, 255, 0.17) 0%);
}

.player__volume {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--pink-bright);
}

.cover-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  color: var(--ink);
  background: #16051f;
  box-shadow: var(--shadow);
}

.cover-dialog::backdrop {
  background: rgba(6, 0, 10, 0.84);
  backdrop-filter: blur(9px);
}

.cover-dialog__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  background: rgba(22, 5, 31, 0.94);
  backdrop-filter: blur(14px);
}

.cover-dialog__bar h2 {
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.cover-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.toast {
  position: fixed;
  right: 28px;
  bottom: calc(var(--player-height) + 34px);
  z-index: 40;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #1c0312;
  background: var(--yellow);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  font-size: 0.8rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --player-height: 142px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 40px;
  }

  .hero__cover-wrap {
    width: min(640px, 100%);
    margin: 0 auto;
  }

  .hero__copy {
    text-align: center;
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .player {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 1rem;
  }

  .player__main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .player__volume {
    width: 120px;
  }
}

@media (max-width: 620px) {
  :root {
    --player-height: 130px;
  }

  body {
    padding-bottom: calc(var(--player-height) + 22px);
  }

  .hero,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    gap: 2.6rem;
    padding-top: 24px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 5.2rem);
    text-shadow: 3px 4px 0 #751154;
  }

  h1 span {
    text-shadow: 3px 4px 0 #9d3714;
  }

  .cover-back-button {
    right: 12px;
    bottom: 12px;
  }

  .track-section {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .section-heading {
    display: block;
  }

  .track-summary {
    margin-top: 0.8rem;
  }

  .track-select {
    grid-template-columns: 2rem 1.8rem minmax(0, 1fr) auto;
    gap: 0.4rem;
  }

  .track-download {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
  }

  .track-download span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .track-duration {
    padding-right: 0.35rem;
    font-size: 0.78rem;
  }

  footer {
    display: block;
    text-align: center;
  }

  footer p + p {
    margin-top: 0.25rem;
  }

  .player {
    right: 7px;
    bottom: 7px;
    left: 7px;
    min-height: var(--player-height);
    padding: 10px 12px;
    border-radius: 17px;
  }

  .player__track img {
    width: 47px;
    height: 47px;
  }

  .player__volume {
    display: none;
  }

  .player__timeline {
    grid-template-columns: 2.4rem 1fr 2.4rem;
    gap: 0.4rem;
  }

  .player__buttons {
    position: absolute;
    top: 13px;
    right: 10px;
  }

  .player__track {
    max-width: calc(100% - 145px);
  }

  .player__main {
    padding-top: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
