:root {
  color-scheme: dark;
  --bg: #101014;
  --panel: #18181f;
  --ink: #f7f0e8;
  --muted: #a9a1a1;
  --line: rgba(255, 255, 255, 0.11);
  --red: #e23b3b;
  --blue: #63c7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(226, 59, 59, 0.24), transparent 34rem),
    linear-gradient(145deg, #101014 0%, #181820 48%, #211817 100%);
  color: var(--ink);
  user-select: none;
}

.shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 22px 16px 42px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow,
.release-type {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 8vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.brand-title {
  font-size: clamp(38px, 10vw, 82px);
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0 26px;
}

.avatar {
  width: 116px;
  height: 116px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero h2 {
  margin: 0;
  font-size: clamp(24px, 6vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.release-section {
  margin-top: 28px;
}

.release-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1;
  letter-spacing: 0;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.text-page {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
  user-select: text;
}

.text-page h1 {
  margin: 10px 0 18px;
  font-size: 42px;
  line-height: 1;
}

.release {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.release-new {
  border-color: rgba(255, 59, 67, 0.85);
  box-shadow: inset 3px 0 0 #ff3b43, 0 0 22px rgba(255, 59, 67, 0.13);
  background: linear-gradient(135deg, rgba(255, 59, 67, 0.13), rgba(255, 255, 255, 0.025) 58%);
}

.release-new .release-type {
  display: flex;
  align-items: center;
  gap: 7px;
}

.release-new .release-type::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b43;
  box-shadow: 0 0 10px rgba(255, 59, 67, 0.85);
  content: "";
}

.cover {
  width: 132px;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
}

.release-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
}

.release h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.artist {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.listen {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 0;
  background: var(--accent, var(--red));
  color: #08080b;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.listen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 160ms ease, transform 220ms ease;
  pointer-events: none;
}

.listen:hover,
.listen:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.listen:active,
.listen.is-pressing {
  transform: translateY(2px) scale(0.985);
  filter: brightness(0.96);
}

.listen:active::after,
.listen.is-pressing::after {
  opacity: 1;
  transform: scaleX(1);
}

.listen svg {
  position: relative;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.listen span {
  position: relative;
  z-index: 1;
}

.listen:disabled {
  opacity: 0.72;
  cursor: wait;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 7px;
  margin-top: auto;
}

.presave-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.presave-vk,
.presave-other {
  min-height: 48px;
  font-size: 15px;
}

.vk-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ffffff;
  color: #2787f5;
  font-size: 11px;
  font-weight: 900;
}

.yandex-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #08080b;
  color: #f5cf42;
  font-size: 16px;
  font-weight: 900;
}

.service-link {
  width: auto;
  min-height: 38px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.service-vk {
  background: #2787f5;
  color: #ffffff;
}

.service-yandex {
  background: #f5cf42;
  color: #08080b;
}

.service-other {
  background: var(--accent, var(--red));
  color: #08080b;
}

@media (max-width: 760px) {
  .release-grid {
    grid-template-columns: 1fr;
  }

  .release {
    grid-template-columns: 118px 1fr;
  }

  .cover {
    width: 118px;
  }
}

@media (max-width: 430px) {
  .hero {
    grid-template-columns: 86px 1fr;
  }

  .avatar {
    width: 86px;
    height: 86px;
  }

  .release {
    grid-template-columns: 104px 1fr;
    min-height: 148px;
  }

  .cover {
    width: 104px;
    min-height: 148px;
  }

  .release-body {
    padding: 13px;
  }

  .release h3 {
    font-size: 19px;
  }
}
