@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=Syncopate:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: rgba(234, 244, 255, .72);
  --cyan: #42d8ef;
  --blue: #2858ff;
  --violet: #782be8;
  --magenta: #f02cc5;
  --amber: #f5b341;
  --glass: rgba(13, 20, 44, .48);
  --line: rgba(255, 255, 255, .24);
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(18px, 3vw, 36px);
  background: transparent;
}

.background-stage,
.background-layer {
  position: fixed;
  inset: 0;
}

.background-stage {
  z-index: -5;
  overflow: hidden;
  background: #050711;
}

.background-layer {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08) translate3d(0, 0, 0);
  will-change: opacity, transform;
}

.background-layer:first-child {
  opacity: 1;
}

.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(66, 216, 239, .22), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(240, 44, 197, .22), transparent 26%),
    linear-gradient(90deg, rgba(3, 5, 14, .72), rgba(3, 5, 14, .4) 42%, rgba(3, 5, 14, .78));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 24vh;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent, rgba(4, 7, 18, .9)),
    radial-gradient(ellipse at 72% 100%, rgba(66,216,239,.24), transparent 46%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  position: fixed;
  top: clamp(18px, 3vw, 36px);
  left: clamp(18px, 3vw, 36px);
  z-index: 40;
  pointer-events: none;
}

.brand-mark {
  width: clamp(54px, 5.7vw, 83px);
  height: auto;
  object-fit: contain;
  opacity: .7;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.34));
}

.hero-title {
  position: fixed;
  left: clamp(18px, 3vw, 36px);
  bottom: min(calc(240px + min(64vw, 980px) * .34 + 98px), calc(100svh - 85px));
  z-index: 10;
  width: min(64vw, 980px);
  margin: 0;
  color: var(--cyan);
  font-family: "Syncopate", "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: min(var(--hero-title-setting, 80px), clamp(38px, 4.6vw, 80px));
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 22px 70px rgba(0,0,0,.58);
}

.side-panel {
  position: fixed;
  top: clamp(94px, 13vh, 132px);
  right: clamp(18px, 3vw, 36px);
  bottom: 154px;
  width: min(30vw, 430px);
  min-width: 320px;
  z-index: 10;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  transform: translate(var(--side-offset-x, 0px), var(--side-offset-y, 0px));
}

.artist-card {
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)),
    rgba(8, 13, 32, .42);
  box-shadow: 0 22px 60px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(22px) saturate(1.15);
}

.artist-card {
  position: fixed;
  left: clamp(18px, 3vw, 36px);
  top: auto;
  bottom: 240px;
  transform: none;
  width: min(64vw, 980px);
  max-height: calc(100svh - 320px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, var(--artist-image-column, 320px)) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding: 22px 18px 22px 22px;
  border-radius: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255,255,255,.12);
}

.artist-card .artist-image {
  grid-column: 1;
  grid-row: 1;
}

.artist-card .artist-copy {
  grid-column: 2;
  grid-row: 1;
}

.artist-card::-webkit-scrollbar {
  width: 8px;
}

.artist-card::-webkit-scrollbar-track {
  margin: 22px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.artist-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--cyan);
}

.artist-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: none;
  border-radius: 20px;
  object-fit: cover;
  image-rendering: auto;
  background:
    radial-gradient(circle at 35% 30%, rgba(66,216,239,.95), rgba(40,88,255,.78) 48%, rgba(6,10,28,.8));
  box-shadow: 0 18px 38px rgba(0,0,0,.26);
}

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

.panel-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.artist-card h2 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.artist-card p:not(.panel-kicker) {
  margin: 12px 0 0;
  color: rgba(234,244,255,.74);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.55;
  max-width: 76ch;
}

.artist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.artist-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid rgba(66,216,239,.58);
  border-radius: 999px;
  background: rgba(66,216,239,.12);
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 18px rgba(66,216,239,.08);
  font-size: 11px;
  font-weight: 800;
}

.history-panel {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

@media (max-height: 760px) and (min-width: 821px) {
  .hero-title {
    top: clamp(54px, 9svh, 76px);
    bottom: auto;
    width: min(64vw, 880px);
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1;
    white-space: nowrap;
    z-index: 12;
  }

  .artist-card {
    bottom: 212px;
    width: min(64vw, 880px);
    max-height: calc(100svh - 260px);
    padding: 14px;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  }

  .artist-image {
    width: 100%;
  }

  .artist-card h2 {
    font-size: 24px;
  }

  .artist-card p:not(.panel-kicker) {
    font-size: 13px;
  }
}

.history-list {
  height: calc(100% - 28px);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.history-track {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.history-loop {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  transform: translateY(0);
  transition: transform .5s ease, opacity .5s ease;
}

.history-thumb {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(66,216,239,.9), rgba(120,43,232,.8));
}

.history-title,
.history-artist,
.history-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-title {
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.history-artist {
  margin-top: 2px;
  color: rgba(234,244,255,.64);
  font-size: 12px;
}

.history-time {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.player-shell {
  position: fixed;
  left: clamp(18px, 3vw, 36px);
  right: clamp(18px, 3vw, 36px);
  bottom: 22px;
  width: auto;
  transform: none;
  z-index: 20;
  transition: width .35s ease, bottom .35s ease;
}

.glass-player {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(360px, 420px) minmax(320px, 360px) minmax(420px, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: 10px 14px 10px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)),
    rgba(0, 1, 4, .94);
  box-shadow:
    0 28px 90px rgba(0,0,0,.64),
    inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(12px) saturate(1);
  pointer-events: none;
}

.cover-wrap,
.track-info,
.album-carousel-title,
.album-carousel,
.controls {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.cover-wrap {
  grid-column: 1;
  grid-row: 1 / 4;
  width: clamp(76px, 7vw, 96px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}

.cover-art {
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 18px;
  overflow: hidden;
  clip-path: inset(0 round 18px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  box-shadow: 0 0 0 1px rgba(255,255,255,.26), 0 14px 34px rgba(0,0,0,.36);
}

.cover-image {
  position: absolute;
  inset: 7px;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  border-radius: 16px;
  overflow: hidden;
  clip-path: inset(0 round 16px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .28s ease, transform .28s ease;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 14px 34px rgba(0,0,0,.36);
}

.cover-art {
  position: relative;
  z-index: 1;
}

.cover-image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.cover-ring {
  position: absolute;
  inset: -8px;
  overflow: visible;
  pointer-events: none;
}

.cover-ring-base,
.cover-ring-trace {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.cover-ring-base {
  stroke: rgba(66,216,239,.42);
  stroke-width: 1;
}

.cover-ring-trace {
  stroke: rgba(66,216,239,.98);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  filter: drop-shadow(0 0 6px rgba(66,216,239,.62));
  animation: coverTrace 5.5s linear infinite;
}

.player-shell:not(.is-playing) .cover-ring-trace {
  animation-play-state: paused;
}

.live-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35f07f;
  box-shadow: 0 0 18px rgba(53, 240, 127, .9);
  animation: livePulse 2.4s ease-in-out infinite;
}

.track-info {
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  min-width: 0;
}

.live-row {
  grid-row: 1;
  align-self: end;
}

.track-info h2 {
  grid-row: 2;
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 0;
}

.track-info p {
  grid-row: 3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}

.album-carousel-title {
  grid-column: 3;
  grid-row: 1 / 4;
  align-self: center;
  max-width: 100%;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
  white-space: normal;
}

.album-carousel {
  --album-size: 60px;
  --album-gap: 10px;
  --album-count: 8;
  grid-column: 4;
  grid-row: 1 / 4;
  align-self: center;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 64px;
  margin: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.album-carousel.is-empty {
  display: none;
}

.album-strip {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: albumScroll 28s linear infinite;
  will-change: transform;
}

.album-loop {
  display: flex;
  align-items: center;
  gap: var(--album-gap);
  padding-right: var(--album-gap);
}

.album-carousel:hover .album-strip,
.album-carousel:focus-within .album-strip,
.album-carousel:active .album-strip {
  animation-play-state: paused;
}

.album-item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: var(--album-size);
  margin: 0;
  border-radius: 12px;
  cursor: zoom-in;
  outline: none;
}

.album-item:hover,
.album-item:active,
.album-item:focus-visible {
  z-index: 8;
}

.album-item img {
  display: block;
  width: var(--album-size);
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.2);
  transform-origin: center;
  transition:
    transform .58s cubic-bezier(.2, 1.65, .34, 1),
    box-shadow .58s cubic-bezier(.2, 1.65, .34, 1);
}

.album-item:hover img,
.album-item:active img,
.album-item:focus-visible img {
  transform: scale(1.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.56), 0 0 0 1px rgba(66,216,239,.55);
}

.album-item figcaption {
  position: absolute;
  left: 50%;
  bottom: 0;
  max-width: 132px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(3, 8, 20, .78);
  color: rgba(255,255,255,.88);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.album-item:hover figcaption,
.album-item:active figcaption,
.album-item:focus-visible figcaption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.album-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease;
}

.album-popup.is-open {
  pointer-events: auto;
  opacity: 1;
}

.album-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(22px) saturate(.68) brightness(.62);
  -webkit-backdrop-filter: blur(22px) saturate(.68) brightness(.62);
  cursor: zoom-out;
}

.album-popup-card {
  position: relative;
  z-index: 1;
  width: min(58vh, 430px);
  max-width: calc(100vw - 36px);
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: rgba(2, 4, 8, .82);
  box-shadow: 0 26px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(20px) saturate(.9);
  -webkit-backdrop-filter: blur(20px) saturate(.9);
  transform: translateY(16px) scale(.96);
  transition: transform .34s cubic-bezier(.2, 1.35, .34, 1);
}

.album-popup.is-open .album-popup-card {
  transform: translateY(0) scale(1);
}

.album-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(3, 8, 20, .72);
  color: white;
  cursor: pointer;
  font-size: 24px;
  line-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.album-popup-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: contain;
  background: rgba(2, 5, 14, .46);
  box-shadow: 0 16px 46px rgba(0,0,0,.36);
}

.album-popup-title {
  margin: 12px 4px 0;
  overflow: hidden;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-hover-preview {
  position: fixed;
  z-index: 70;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
    rgba(5, 10, 24, .76);
  box-shadow: 0 22px 70px rgba(0,0,0,.58), 0 0 0 1px rgba(66,216,239,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.86);
  transition:
    opacity .16s ease,
    transform .42s cubic-bezier(.18, 1.55, .3, 1);
}

.album-hover-preview.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.album-hover-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(2, 5, 14, .42);
}

.album-hover-preview p {
  margin: 7px 2px 0;
  overflow: hidden;
  color: rgba(255,255,255,.86);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls {
  grid-column: 5;
  grid-row: 1 / 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-btn {
  border: 1px solid rgba(255,255,255,.28);
  color: white;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.play-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: none;
  color: #06131d;
  font-size: 24px;
}

.play-btn::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #06131d;
}

.player-shell.is-playing .play-btn::before {
  content: "Ⅱ";
  width: auto;
  height: auto;
  margin-left: 0;
  border: 0;
  color: #06131d;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.play-btn:hover,
.play-btn:focus,
.play-btn:active {
  background: var(--cyan);
  color: #06131d;
  outline: none;
  box-shadow: none;
}

.play-btn span,
.play-btn #playIcon {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  line-height: 1;
  text-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.volume {
  width: clamp(84px, 10vw, 128px);
  accent-color: var(--cyan);
}

@keyframes coverTrace {
  to { stroke-dashoffset: -100; }
}

@keyframes albumScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes bounce {
  0%, 100% { height: 24%; }
  50% { height: 100%; }
}

@keyframes livePulse {
  0%, 100% {
    opacity: .55;
    transform: scale(.86);
    box-shadow: 0 0 8px rgba(53, 240, 127, .55);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(53, 240, 127, .95);
  }
}

@media (max-width: 1600px) {
  .hero-title {
    width: min(64vw, 840px);
    font-size: min(var(--hero-title-setting, 40px), clamp(30px, 3vw, 40px));
  }

  .artist-card {
    top: auto;
    bottom: 168px;
    max-height: calc(100svh - 300px);
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  }

  .side-panel {
    right: 0;
    transform: translateX(80px);
  }

  .glass-player {
    grid-template-columns: auto minmax(290px, 360px) minmax(220px, 300px) minmax(300px, 1fr) auto;
    gap: 16px;
  }

  .album-carousel {
    --album-size: 56px;
    --album-count: 5;
  }

  .controls {
    gap: 10px;
  }

  .volume {
    width: clamp(76px, 7vw, 104px);
  }
}

@media (max-width: 1320px) {
  .glass-player {
    grid-template-columns: auto minmax(240px, 320px) minmax(180px, 240px) minmax(220px, 1fr) auto;
    gap: 12px;
  }

  .album-carousel {
    --album-size: 50px;
    --album-gap: 8px;
    --album-count: 4;
  }

  .controls {
    gap: 7px;
  }

  .play-btn {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .volume {
    width: 74px;
  }
}

@media (max-width: 1080px) {
  .hero-title {
    bottom: min(calc(160px + min(68vw, 720px) * .31 + 88px), calc(100svh - 128px));
    width: min(66vw, 680px);
    font-size: min(var(--hero-title-setting, 26px), clamp(18px, 2.5vw, 26px));
    white-space: nowrap;
  }

  .artist-card {
    top: auto;
    bottom: 160px;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 14px;
    width: min(68vw, 720px);
    max-height: calc(100svh - 260px);
  }

  .artist-card .artist-copy {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }

  .artist-card .artist-image {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    align-self: start;
  }

  .artist-image {
    width: 100%;
    max-height: none;
    object-fit: cover;
    background: transparent;
  }

  .artist-copy {
    max-height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) rgba(255,255,255,.12);
  }

  .artist-copy::-webkit-scrollbar {
    width: 6px;
  }

  .artist-copy::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255,255,255,.12);
  }

  .artist-copy::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--cyan);
  }

  .glass-player {
    grid-template-columns: auto minmax(190px, 1fr) minmax(150px, 190px) minmax(170px, 1fr) auto;
  }

  .live-row {
    font-size: 10px;
  }

  .track-info h2 {
    font-size: 17px;
  }

  .track-info p {
    font-size: 12px;
  }

  .album-carousel-title {
    font-size: 8px;
  }

  .album-carousel {
    --album-size: 46px;
    --album-count: 3;
  }

  .controls {
    gap: 6px;
  }

  .volume {
    width: 62px;
  }
}

@media (min-width: 821px) and (max-width: 1080px) and (min-height: 740px) and (max-height: 840px) {
  .hero-title {
    top: 146px;
    bottom: auto;
    width: 430px;
    font-size: min(var(--hero-title-setting, 22px), clamp(18px, 2.2vw, 22px));
    line-height: 1.08;
    white-space: normal;
    text-wrap: normal;
    z-index: 12;
  }
}

@media (min-width: 2000px) and (min-height: 1200px) {
  .hero-title {
    bottom: min(calc(240px + min(64vw, 980px) * .34 + 198px), calc(100svh - 85px));
  }
}

@media (min-width: 880px) and (max-width: 980px) and (min-height: 620px) {
  .artist-card {
    grid-template-columns: minmax(0, 1fr);
    width: min(58vw, 560px);
  }

  .artist-card .artist-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .artist-card .artist-image {
    grid-column: 1;
    grid-row: 1;
  }

  .artist-image {
    max-height: 30svh;
  }
}

@media (min-width: 900px) and (max-width: 940px) and (min-height: 1180px) {
  .hero-title {
    left: auto;
    right: 20px;
    top: 28px;
    bottom: auto;
    width: min(52vw, 430px);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.05;
    text-align: right;
    white-space: normal;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .glass-player {
    grid-template-columns: auto minmax(180px, 1fr) minmax(140px, 180px) minmax(170px, 1fr) auto;
  }

  .controls {
    grid-column: 5;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: end;
    gap: 8px;
  }

  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .volume {
    width: 72px;
  }

  .album-carousel {
    grid-row: 1 / 4;
    align-self: center;
  }
}

@media (max-width: 820px) {
  .hero-title {
    left: auto;
    right: 16px;
    top: 24px;
    bottom: auto;
    width: min(58vw, 360px);
    font-size: clamp(12px, 3.2vw, 20px);
    line-height: 1.05;
    text-align: right;
  }

  .hero {
    padding: 16px;
  }

  .player-shell,
  .player-shell.expanded {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
  }

  .side-panel {
    left: 16px;
  right: 16px;
  top: auto;
  bottom: 150px;
  width: auto;
  min-width: 0;
  transform: translate(var(--side-offset-x, 0px), var(--side-offset-y, 0px));
}

  .artist-card {
    left: 16px;
    right: 16px;
    top: 112px;
    bottom: auto;
    transform: none;
    width: auto;
    max-height: calc(100svh - 390px);
    grid-template-columns: minmax(80px, var(--artist-image-column, 96px)) minmax(0, 1fr);
    gap: 12px;
    border-radius: 22px;
    padding: 12px;
  }

  .artist-card .artist-image {
    grid-column: 1;
    grid-row: 1;
  }

  .artist-card .artist-copy {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }

  .artist-image {
    width: 100%;
    border-radius: 16px;
  }

  .artist-copy {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .artist-card h2 {
    font-size: 18px;
  }

  .artist-card p:not(.panel-kicker) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
  }

  .history-panel {
    display: none;
  }

  .glass-player {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    border-radius: 34px;
    padding: 12px;
  }

  .cover-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .track-info {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "live"
      "title"
      "artist";
    column-gap: 14px;
  }

  .live-row {
    grid-area: live;
  }

  .track-info h2 {
    grid-area: title;
  }

  .track-info p {
    grid-area: artist;
  }

  .album-carousel {
    grid-column: 2;
    grid-row: 3;
    --album-size: 50px;
    --album-gap: 8px;
    --album-count: 2;
    height: 54px;
  }

  .album-carousel-title {
    grid-column: 2;
    grid-row: 2;
    max-width: 100%;
    margin-top: 7px;
    font-size: 8px;
    text-align: left;
  }

  .album-popup-card {
    margin: 0;
  }

  .controls {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .play-btn {
    width: 56px;
    height: 56px;
  }

  .volume {
    flex: 1;
    max-width: none;
  }
}

@media (min-width: 760px) and (max-width: 900px) and (min-height: 900px) {
  .hero-title {
    left: auto;
    top: 26px;
    right: 18px;
    width: min(54vw, 430px);
    font-size: clamp(16px, 2.7vw, 23px);
    text-align: right;
  }

  .glass-player {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    row-gap: 9px;
    border-radius: 24px;
  }

  .cover-wrap {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
  }

  .track-info {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    padding-right: 12px;
  }

  .controls {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    justify-content: flex-end;
    gap: 8px;
  }

  .play-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .volume {
    flex: 0 0 82px;
    width: 82px;
    max-width: 82px;
  }

  .album-carousel-title {
    grid-column: 1 / 4;
    grid-row: 1;
    margin-top: 0;
    text-align: center;
    justify-self: center;
  }

  .album-carousel {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 430px);
    --album-count: 5;
    margin-top: 4px;
  }

  .artist-card {
    left: 16px;
    right: auto;
    top: 118px;
    bottom: 330px;
    width: min(62vw, 540px);
    max-height: calc(100svh - 448px);
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    overflow-y: auto;
  }

  .artist-card .artist-image {
    grid-column: 1;
    grid-row: 1;
  }

  .artist-card .artist-copy {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    overflow-y: visible;
    padding-top: 0;
    padding-right: 0;
  }

  .artist-image {
    width: 100%;
    max-height: 28svh;
    object-fit: cover;
  }

  .side-panel {
    display: grid;
    left: auto;
    right: 18px;
    top: 118px;
  bottom: 330px;
  width: 28vw;
  min-width: 0;
  transform: translate(var(--side-offset-x, 0px), var(--side-offset-y, 0px));
  }

  .history-panel {
    display: block;
  }

  .history-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
    padding: 6px;
  }

  .history-thumb {
    width: 46px;
    border-radius: 12px;
  }

  .history-title {
    font-size: 12px;
  }

  .history-artist {
    font-size: 10px;
  }

  .history-time {
    font-size: 10px;
  }

  .artist-card p:not(.panel-kicker) {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }
}

@media (min-width: 740px) and (max-width: 768px) and (min-height: 990px) and (max-height: 1060px) {
  .album-carousel {
    grid-column: 1 / 4;
    justify-self: stretch;
    width: 100%;
    --album-count: 6;
  }

  .artist-card {
    top: 106px;
    bottom: 270px;
    max-height: calc(100svh - 376px);
  }
}

@media (min-width: 810px) and (max-width: 840px) and (min-height: 1120px) and (max-height: 1200px) {
  .glass-player {
    row-gap: 20px;
  }

  .album-carousel {
    grid-column: 1 / 4;
    justify-self: stretch;
    width: 100%;
    --album-count: 6;
  }
}

@media (min-width: 481px) and (max-width: 740px) and (max-height: 900px) {
  .artist-card {
    top: 84px;
    bottom: 210px;
    max-height: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) rgba(255,255,255,.12);
  }

  .artist-card p:not(.panel-kicker) {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }

  .glass-player {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 16px 12px;
    border-radius: 22px;
  }

  .cover-wrap {
    grid-column: 1;
    grid-row: 3;
    width: 66px;
  }

  .track-info {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    padding-left: 6px;
  }

  .controls {
    grid-column: 3;
    grid-row: 3;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
    gap: 9px;
    padding-left: 8px;
  }

  .play-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .play-btn::before {
    margin-left: 1px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
  }

  .volume {
    flex: 0 0 68px;
    width: 68px;
    max-width: 68px;
  }

  .album-carousel-title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    margin-top: 0;
    text-align: center;
    justify-self: center;
  }

  .album-carousel {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    --album-count: 4;
  }
}

@media (max-width: 480px) {
  .hero-title {
    top: 20px;
    width: min(58vw, 250px);
    font-size: clamp(10px, 3.7vw, 15px);
  }

  .artist-card {
    top: 86px;
    bottom: 220px;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) rgba(255,255,255,.12);
  }

  .artist-card::-webkit-scrollbar {
    width: 6px;
  }

  .artist-card::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255,255,255,.12);
  }

  .artist-card::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--cyan);
  }

  .artist-card .artist-image {
    grid-column: 1;
    grid-row: 1;
    width: min(48vw, 150px);
    aspect-ratio: 1;
    max-height: none;
    justify-self: start;
    align-self: start;
    object-fit: cover;
  }

  .artist-card .artist-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .artist-card .panel-kicker {
    font-size: 11px;
  }

  .artist-card h2 {
    font-size: 22px;
  }

  .artist-card p:not(.panel-kicker) {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    font-size: 13px;
    line-height: 1.5;
  }

  .glass-player {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 22px 9px;
    padding: 12px 10px;
    border-radius: 18px;
  }

  .cover-wrap {
    grid-column: 1;
    grid-row: 3;
    width: 58px;
  }

  .track-info {
    display: grid;
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    padding-left: 6px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "live"
      "title"
      "artist";
  }

  .controls {
    grid-column: 3;
    grid-row: 3;
    align-self: center;
    justify-self: end;
    justify-content: flex-end;
    gap: 7px;
  }

  .play-btn {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .play-btn::before {
    margin-left: 1px;
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
  }

  .volume {
    flex: 0 0 58px;
    width: 58px;
    max-width: 58px;
  }

  .live-row {
    font-size: 7px;
  }

  .track-info h2 {
    font-size: 12px;
  }

  .track-info p {
    font-size: 9px;
  }

  .album-carousel-title {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    font-size: 8px;
    text-align: center;
    justify-self: center;
  }

  .album-carousel {
    grid-column: 1 / -1;
    grid-row: 2;
    --album-size: 46px;
    --album-count: 3;
    width: 100%;
    justify-self: stretch;
    margin: 0 auto;
    height: 50px;
  }
}

.hero-title {
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 1600px) {
  .hero-title {
    max-width: min(64vw, 840px);
  }
}

@media (min-width: 1081px) and (max-width: 1600px) {
  .hero-title {
    bottom: min(calc(240px + min(64vw, 840px) * .34 + 150px), calc(100svh - 96px));
    z-index: 14;
  }
}

@media (max-width: 1080px) {
  .hero-title {
    width: min(66vw, 620px);
    max-width: min(66vw, 620px);
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 820px) {
  .hero-title {
    width: min(48vw, 360px);
    max-width: calc(100vw - 210px);
    white-space: normal;
    text-wrap: balance;
  }
}

@media (max-width: 480px) {
  .hero-title {
    width: min(44vw, 168px);
    max-width: calc(100vw - 210px);
    white-space: normal;
    text-wrap: balance;
    font-size: min(var(--hero-title-setting, 12px), clamp(9px, 3vw, 12px));
    line-height: 1.12;
  }
}
