:root {
  --bg: #101010;
  --bg-elevated: rgba(255, 255, 255, 0.035);
  --bg-elevated-hover: rgba(255, 255, 255, 0.065);
  --text: #f4f4f4;
  --text-muted: #8a8a8a;
  --accent: #c41e1e;
  --accent-soft: rgba(196, 30, 30, 0.28);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.22);
  --glow: rgba(155, 32, 32, 0.22);
  --cover-size: min(100%, 420px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spotify: #1db954;
  --yandex: #fc3f1d;
  --youtube: #ff0033;
  --vk: #0077ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  color-scheme: dark;
  background:
    radial-gradient(ellipse 70% 45% at 50% 18%, var(--glow), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(40, 40, 40, 0.35), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  padding: 56px 24px 64px;
}

.release {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.cover {
  width: var(--cover-size);
  position: relative;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 10% 8% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

.cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 2px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.info {
  margin-top: 36px;
  width: 100%;
}

.artist {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.35rem, 8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.085em;
  line-height: 1;
  text-transform: uppercase;
}

.track {
  margin: 14px 0 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.35rem, 4.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--accent);
}

.year {
  margin: 14px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.platforms {
  margin-top: 40px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.platform {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 44px 0 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 240ms var(--ease),
    background-color 240ms var(--ease),
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
  cursor: pointer;
}

.platform--vk {
  grid-column: 1 / -1;
}

.platform__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.platform__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.platform__icon--apple img {
  border-radius: 6px;
}

.platform__label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.platform:hover {
  transform: translateY(-2px);
  background: var(--bg-elevated-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.platform:active {
  transform: translateY(0) scale(0.985);
}

.platform:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.platform--spotify:hover {
  border-color: rgba(29, 185, 84, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(29, 185, 84, 0.08);
}

.platform--yandex:hover {
  border-color: rgba(252, 63, 29, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(252, 63, 29, 0.08);
}

.platform--apple:hover {
  border-color: rgba(250, 35, 59, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(250, 35, 59, 0.08);
}

.platform--youtube:hover {
  border-color: rgba(255, 0, 51, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 0, 51, 0.08);
}

.platform--vk:hover {
  border-color: rgba(0, 119, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 119, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms var(--ease) forwards;
}

.reveal--cover {
  animation-delay: 40ms;
}

.reveal--delay-1 {
  animation-delay: 140ms;
}

.reveal--delay-2 {
  animation-delay: 220ms;
}

.reveal--delay-3 {
  animation-delay: 300ms;
}

.reveal--delay-4 {
  animation-delay: 380ms;
}

.reveal--delay-5 {
  animation-delay: 460ms;
}

.reveal--delay-6 {
  animation-delay: 540ms;
}

.reveal--delay-7 {
  animation-delay: 620ms;
}

.reveal--delay-8 {
  animation-delay: 700ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .page {
    padding: 36px 20px 48px;
  }

  .info {
    margin-top: 28px;
  }

  .track {
    margin-top: 12px;
  }

  .year {
    margin-top: 12px;
  }

  .platforms {
    margin-top: 32px;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .platform,
  .platform--vk {
    grid-column: auto;
  }

  .platform {
    min-height: 54px;
    padding: 0 48px;
  }

  .platform__icon {
    left: 16px;
    width: 24px;
    height: 24px;
  }

  .platform__label {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .platform {
    transition: none;
  }

  .platform:hover,
  .platform:active {
    transform: none;
  }
}
