:root {
  color-scheme: dark;
  --bg: #101414;
  --text: #f4f7f7;
  --muted: #a6b0b0;
  --accent: #48d6cc;
  --red: #e24b45;
  --panel: rgba(16, 20, 20, 0.74);
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 6.3vh 6.1vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(72, 214, 204, 0.18), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(226, 75, 69, 0.14), transparent 30%),
    linear-gradient(135deg, #131818 0%, #0d1010 100%);
}

.rave-stage {
  --accent: #69f5ff;
  --red: #fd4df0;
  background:
    radial-gradient(circle at 80% 18%, rgba(105, 245, 255, 0.24), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(253, 77, 240, 0.18), transparent 31%),
    linear-gradient(135deg, #12131e 0%, #080a10 100%);
}

.author-stage {
  --accent: #7ee7ff;
  --red: #a7f35c;
  background:
    radial-gradient(circle at 76% 18%, rgba(126, 231, 255, 0.22), transparent 31%),
    radial-gradient(circle at 22% 84%, rgba(167, 243, 92, 0.16), transparent 30%),
    linear-gradient(135deg, #101719 0%, #080d0f 100%);
}

.author-stage h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(38px, 4.45vw, 86px);
}

.bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(34px) saturate(0.72) brightness(0.32);
  transform: scale(1.08);
  opacity: 0.72;
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
}

.brand,
.cards-row,
.now-card,
.next-card,
#visualizer,
.ticker,
.start {
  position: relative;
  z-index: 1;
}

.brand {
  max-width: 1200px;
}

.cards-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: start;
  gap: clamp(28px, 4vw, 76px);
  width: min(1550px, 87.8vw);
  margin-top: 7vh;
}

.kicker,
.label {
  margin: 0;
  color: var(--accent);
  font-size: clamp(14px, 1.15vw, 21px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0.8vh 0 0;
  max-width: 86vw;
  font-size: clamp(40px, 5.55vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.now-card {
  display: grid;
  grid-template-columns: clamp(150px, 14vw, 230px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 54px);
  width: 100%;
  min-height: clamp(210px, 17vh, 310px);
  padding: clamp(18px, 2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.33);
}

.cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

h2 {
  margin: 1vh 0 0;
  max-width: 760px;
  font-size: clamp(34px, 3.7vw, 72px);
  line-height: 1.02;
}

.artist,
.details {
  max-width: 780px;
  margin: 1.1vh 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.45vw, 28px);
  line-height: 1.35;
}

.details {
  color: #d8dddd;
  font-size: clamp(15px, 1.1vw, 22px);
}

.details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credit-line strong {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next-card {
  width: 100%;
  min-height: clamp(210px, 17vh, 310px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 20, 0.58);
  backdrop-filter: blur(14px);
}

.next-card ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.next-card li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.next-card strong,
.next-card span {
  display: block;
}

.next-card strong {
  font-size: clamp(17px, 1.2vw, 24px);
}

.next-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: clamp(13px, 0.9vw, 18px);
  line-height: 1.3;
}

#visualizer {
  position: absolute;
  left: 6.1vw;
  right: 6.1vw;
  bottom: 10.5vh;
  width: 87.8vw;
  height: 20vh;
}

.platform-links-bar {
  position: absolute;
  left: 6.1vw;
  right: 6.1vw;
  bottom: 4.5vh;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(12px, 0.8vw, 15px);
  line-height: 1.2;
  pointer-events: none;
}

.platform-links-bar.has-links {
  display: flex;
}

.platform-links-label {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-links-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: min(100%, 1180px);
  pointer-events: auto;
}

.platform-links-scroll a {
  flex: 0 0 auto;
  color: rgba(244, 247, 247, 0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 231, 255, 0.38);
  padding: 2px 1px;
  transition: color 160ms ease, border-color 160ms ease;
}

.platform-links-scroll a:hover,
.platform-links-scroll a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.ticker {
  position: absolute;
  left: 6.1vw;
  right: 6.1vw;
  bottom: 5vh;
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start {
  position: absolute;
  left: 50%;
  bottom: 5.5vh;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--accent);
  color: #071010;
  padding: 16px 26px;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(72, 214, 204, 0.24);
}

.start.hidden {
  opacity: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.start.sound-toggle {
  top: clamp(66px, 9.6vh, 94px);
  right: clamp(34px, 5vw, 92px);
  bottom: auto;
  left: auto;
  width: clamp(54px, 4.15vw, 70px);
  height: clamp(54px, 4.15vw, 70px);
  min-width: 0;
  padding: 0;
  display: grid;
  place-items: center;
  transform: none;
  border-radius: 999px;
  background: rgba(16, 20, 20, 0.34);
  color: var(--accent);
  border-color: rgba(126, 231, 255, 0.46);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.start.sound-toggle:hover,
.start.sound-toggle:focus-visible {
  background: rgba(16, 20, 20, 0.58);
  border-color: var(--accent);
  outline: none;
  transform: translateY(-1px);
}

.sound-icon {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.start.sound-on {
  background: rgba(16, 20, 20, 0.62);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

audio {
  display: none;
}

.stage.vk-safe {
  padding: 12.2vh 7vw 17vh;
}

.vk-safe .kicker {
  display: none;
}

.author-stage.vk-safe h1 {
  font-size: clamp(38px, 4.05vw, 72px);
  line-height: 0.98;
}

.vk-safe .cards-row {
  width: min(1380px, 82vw);
  margin-top: 4.2vh;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(32px, 4.2vw, 70px);
}

.vk-safe .now-card,
.vk-safe .next-card {
  min-height: 250px;
}

.vk-safe .now-card {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 34px;
  padding: 26px;
}

.vk-safe h2 {
  font-size: clamp(34px, 3.45vw, 60px);
}

.vk-safe .artist {
  font-size: clamp(18px, 1.35vw, 24px);
}

.vk-safe .details {
  font-size: clamp(14px, 1vw, 19px);
}

.vk-safe .next-card {
  padding: 24px;
}

.vk-safe .next-card li {
  padding: 12px 0;
}

.vk-safe #visualizer {
  left: 7vw;
  right: 7vw;
  bottom: 13.5vh;
  width: 86vw;
  height: 12vh;
}

@media (max-width: 860px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .stage {
    width: 100%;
    min-height: 100svh;
    height: auto;
    padding: 30px 18px calc(32px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .brand {
    max-width: 100%;
  }

  .kicker,
  .label {
    font-size: 13px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 48px);
    line-height: 0.98;
  }

  .author-stage h1 {
    max-width: calc(100% - 72px);
    white-space: normal;
    font-size: clamp(29px, 8.8vw, 42px);
    line-height: 0.98;
  }

  .now-card {
    grid-template-columns: minmax(92px, 32vw) minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    min-height: 0;
    padding: 14px;
  }

  .cards-row {
    display: block;
    width: 100%;
    margin-top: 36px;
  }

  .next-card {
    display: none;
  }

  h2 {
    margin-top: 8px;
    font-size: clamp(24px, 7.2vw, 36px);
    line-height: 1.05;
  }

  .artist {
    font-size: 16px;
  }

  .details {
    font-size: 13px;
    line-height: 1.28;
  }

  .next-card {
    display: none;
  }

  #visualizer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    height: 118px;
    margin-top: 34px;
  }

  .platform-links-bar {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .platform-links-bar.has-links {
    display: block;
  }

  .platform-links-label {
    display: block;
    margin-bottom: 8px;
  }

  .platform-links-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 13px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 7px;
    scrollbar-width: none;
  }

  .platform-links-scroll::-webkit-scrollbar {
    display: none;
  }

  .ticker {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-wrap: wrap;
    margin-top: 18px;
    font-size: 12px;
  }

  .start {
    bottom: 58px;
  }

  .start.sound-toggle {
    top: 22px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
}
