:root {
  --bg-tint: #1a1a22;
  --accent: #e8a854;
  --artwork-url: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.1fr);
  margin: 0;
  min-height: 100%;
  background: #0b0b0e;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--accent);
}

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

.copy-panel {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 64px;
  background: #0b0b0e;
}

.copy-content {
  width: 100%;
  max-width: 480px;
}

h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 22px 0 0;
  max-width: 460px;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.cta-row {
  margin-top: 36px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--accent);
  color: rgba(0, 0, 0, 0.9);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 600ms ease;
}

.primary-cta[aria-disabled="true"] {
  cursor: default;
}

.cta-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.demo-footer {
  position: absolute;
  left: 64px;
  bottom: 28px;
  z-index: 3;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
}

.credits-toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.credits-panel {
  position: absolute;
  left: 0;
  bottom: 24px;
  display: grid;
  gap: 7px;
  width: min(360px, calc(100vw - 128px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.credits-panel[hidden] {
  display: none;
}

.credits-panel p {
  margin: 0;
}

.credits-panel a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.credits-panel a:hover {
  color: #fff;
}

.desktop-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 45% 42%, color-mix(in srgb, var(--bg-tint) 35%, transparent), transparent 62%),
    #101014;
  transition: background 600ms ease;
}

.desktop-panel::before {
  position: absolute;
  inset: -80px;
  content: "";
  background-image: var(--artwork-url);
  background-position: center;
  background-size: cover;
  filter: blur(60px);
  opacity: 0.12;
  transform: scale(1.3);
  transition: opacity 600ms ease, background-image 600ms ease;
}

.laptop-scale {
  --laptop-scale: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1040px;
  height: 644px;
  transform: translate(-50%, -50%) scale(var(--laptop-scale));
  transform-origin: center;
  will-change: transform;
}

.laptop {
  position: relative;
  width: 1040px;
  aspect-ratio: 2496 / 1544;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

.laptop-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.laptop-screen {
  position: absolute;
  top: 2.55%;
  left: 10.35%;
  z-index: 2;
  width: 79.6%;
  height: 87.2%;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.screen-wallpaper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 45% 42%, color-mix(in srgb, var(--bg-tint) 35%, transparent), transparent 62%),
    #101014;
  transition: background 600ms ease;
}

.screen-wallpaper::before {
  position: absolute;
  inset: -60px;
  content: "";
  background-image: var(--artwork-url);
  background-position: center;
  background-size: cover;
  filter: blur(40px);
  opacity: 0.3;
  transform: scale(1.3);
  transition: opacity 600ms ease, background-image 600ms ease;
}

.menu-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 30px;
  border-radius: 12px 12px 0 0;
  background: rgba(20, 20, 24, 0.55);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.menu-left,
.menu-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.menu-left {
  gap: 13px;
  padding-left: 16px;
}

.menu-app {
  font-weight: 600;
}

.menu-right {
  justify-content: flex-end;
  margin-left: auto;
  padding-right: 16px;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 172px;
  height: 30px;
  border-radius: 0 0 10px 10px;
  background: #000;
  transform: translateX(-50%);
}

.notch-bar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  display: flex;
  width: 552px;
  height: 30px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  background: #000;
  opacity: 1;
  transform: translateX(-50%);
  transition: opacity 300ms ease;
}

.notch-wing {
  display: flex;
  align-items: center;
  width: 190px;
  min-width: 0;
  background: #000;
}

.notch-wing-left {
  gap: 7px;
  padding: 0 4px 0 12px;
}

.notch-wing-right {
  justify-content: flex-end;
  padding: 0 14px 0 4px;
  text-align: right;
}

.notch-gap {
  flex: 0 0 172px;
}

.notch-art {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}

.notch-title,
.notch-lyric {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notch-title {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
}

.notch-lyric {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 500;
}

.notch-lyric.is-fallback {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.notch-lyric.is-changing {
  animation: notch-lyric-fade 250ms ease;
}

.player-widget {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 260px;
  padding: 24px;
}

.laptop-screen .player-widget {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.artwork-card {
  position: relative;
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.45);
}

.artwork-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 300ms ease;
}

.player-widget.is-paused .artwork-image {
  opacity: 0.45;
}

.player-widget.is-awaiting-play .control-button[data-control="play"] {
  color: #fff;
  transform: scale(1.15);
}

.track-overlay {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 176px;
  max-width: 176px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
}

.track-name,
.track-artist {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-name {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.track-artist {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.2;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transform-origin: center;
  transition: color 120ms ease-out, transform 120ms ease-out;
}

.control-button:hover {
  color: #fff;
  transform: scale(1.15);
}

.control-button svg {
  display: block;
  width: auto;
  height: 13px;
  fill: currentColor;
}

.control-button[data-control="mute"] svg {
  height: 12px;
}

.lyrics-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 200px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.62);
}

.lyric-line {
  display: -webkit-box;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.28;
  text-align: left;
  text-decoration: none;
  transform-origin: left;
  transition: color 300ms ease, opacity 300ms ease, transform 300ms ease;
  animation: lyric-neighbor-in 300ms ease both;
}

.lyric-line:hover {
  text-decoration: underline;
}

.lyric-line.is-current {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transform: scale(1.03);
  animation-name: lyric-current-in;
}

.lyric-line.is-neighbor {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 400;
}

.lyric-line.is-neighbor:hover {
  color: rgba(255, 255, 255, 0.65);
}

.lyric-marker {
  margin-right: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

.instrumental-line {
  margin: 0;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.play-prompt {
  margin: 0;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

@keyframes lyric-neighbor-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

@keyframes lyric-current-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes notch-lyric-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-widget,
  .player-widget *,
  .notch-bar,
  .notch-bar * {
    transition: none !important;
    animation: none !important;
  }
}

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

  body {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .copy-panel {
    min-height: 520px;
    padding: 48px 28px 36px;
  }

  .demo-footer {
    position: static;
    margin-top: 48px;
  }

  .tagline {
    max-width: 100%;
    font-size: 18px;
  }

  .credits-panel {
    width: min(360px, calc(100vw - 56px));
  }

  .desktop-panel {
    min-height: 620px;
  }
}

@media (max-width: 600px) {
  .copy-content {
    max-width: 360px;
  }
}
