:root {
  color-scheme: light;
  --background: #f8fafc;
  --foreground: #172033;
  --muted: #5c667a;
  --panel: #ffffff;
  --line: #dce3ed;
  --accent: #157f72;
  --accent-strong: #0f5f57;
  --spotify-green: #22c55e;
  --warm: #f59e0b;
  --coral: #f97356;
  --sky: #38bdf8;
  --shadow: 0 22px 70px rgb(23 32 51 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgb(34 197 94 / 13%), transparent 26rem),
    radial-gradient(circle at 82% 12%, rgb(56 189 248 / 11%), transparent 22rem),
    linear-gradient(180deg, #fbfefc 0%, var(--background) 46%, #eef7f5 100%);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button {
  font: inherit;
  letter-spacing: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 56px);
  padding: 28px 0;
}

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

.brand-mascot {
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(12px, 2.5vw, 20px);
  margin-bottom: clamp(42px, 10vh, 96px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--foreground);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  animation: logoFloat 4.2s ease-in-out infinite;
  transform-origin: center;
}

.brand-mark img {
  width: clamp(88px, 14vw, 128px);
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 18px rgb(15 95 87 / 14%));
}

.speech-bubble {
  position: relative;
  max-width: min(260px, 48vw);
  margin-top: 10px;
  border: 1px solid rgb(21 127 114 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 88%);
  padding: 12px 14px;
  color: var(--accent-strong);
  font-size: clamp(0.88rem, 1.7vw, 1rem);
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 16px 34px rgb(23 32 51 / 9%);
  animation: bubbleFloat 4.2s ease-in-out infinite 0.18s;
}

.speech-bubble::before {
  position: absolute;
  top: 22px;
  left: -8px;
  width: 14px;
  height: 14px;
  border-bottom: 1px solid rgb(21 127 114 / 18%);
  border-left: 1px solid rgb(21 127 114 / 18%);
  background: inherit;
  content: "";
  transform: rotate(45deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(4.4rem, 13vw, 9.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.creator-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 22px 0 0;
  border: 1px solid rgb(21 127 114 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 66%);
  padding: 10px 14px;
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 12px 28px rgb(23 32 51 / 6%);
}

.preview-panel {
  position: relative;
  display: grid;
  gap: 20px;
  min-width: 0;
  border: 1px solid rgb(220 227 237 / 86%);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(246 251 250 / 90%)),
    var(--panel);
  padding: clamp(20px, 4vw, 28px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-panel::before {
  position: absolute;
  inset: auto -18% -42% 32%;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(34 197 94 / 18%), transparent 68%);
  content: "";
  pointer-events: none;
}

.panel-topline {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.panel-topline h2 {
  max-width: 340px;
  margin-bottom: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.05;
}

.equalizer {
  display: grid;
  grid-template-columns: repeat(4, 8px);
  gap: 5px;
  align-items: end;
  width: 48px;
  height: 44px;
  padding-top: 5px;
}

.equalizer span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--spotify-green), var(--accent));
  animation: equalize 1.15s ease-in-out infinite;
}

.equalizer span:nth-child(2) {
  height: 34px;
  animation-delay: -0.24s;
}

.equalizer span:nth-child(3) {
  height: 24px;
  animation-delay: -0.48s;
}

.equalizer span:nth-child(4) {
  height: 40px;
  animation-delay: -0.72s;
}

.now-playing {
  position: relative;
  display: grid;
  gap: 5px;
  border: 1px solid rgb(21 127 114 / 15%);
  border-radius: 8px;
  background: #f6fbfa;
  padding: 14px;
}

.now-playing span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.now-playing strong {
  font-size: 1.08rem;
}

.progress-wrap {
  position: relative;
  display: grid;
  gap: 8px;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e3ecea;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--spotify-green), var(--warm));
  transition: width 160ms linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.track-list {
  position: relative;
  display: grid;
  gap: 9px;
}

.track-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgb(220 227 237 / 90%);
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
  padding: 10px 12px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.track-row:hover,
.track-row:focus-visible {
  border-color: rgb(21 127 114 / 38%);
  background: #f2fbf5;
  outline: 0;
}

.track-row.is-active {
  border-color: rgb(34 197 94 / 58%);
  background: #edfff3;
  box-shadow: 0 12px 26px rgb(15 95 87 / 10%);
}

.track-row.is-playing {
  animation: activePulse 1.8s ease-in-out infinite;
}

.track-row strong,
.track-row > span:not(.play-icon) {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-row strong {
  font-size: 0.96rem;
}

.track-row time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.play-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e6f8ed;
}

.play-icon::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--accent-strong);
  content: "";
}

.track-row.is-playing .play-icon::before,
.track-row.is-playing .play-icon::after {
  width: 4px;
  height: 15px;
  margin: 0 2px;
  border: 0;
  border-radius: 2px;
  background: var(--accent-strong);
  content: "";
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.52);
  }

  50% {
    transform: scaleY(1);
  }
}

@keyframes activePulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .speech-bubble {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .brand-mascot {
    margin-bottom: 46px;
  }

  .preview-panel {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 16px;
  }

  .hero {
    gap: 24px;
  }

  .brand-mascot {
    margin-bottom: 34px;
  }

  .speech-bubble {
    max-width: min(230px, 58vw);
    margin-top: 4px;
    padding: 10px 12px;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 5.4rem);
  }

  .panel-topline {
    display: grid;
  }

  .equalizer {
    height: 34px;
  }

  .track-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .track-row time {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
