:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --surface: #242426;
  --surface-strong: #2d2d2d;
  --text: #ededed;
  --muted: #a1a1aa;
  --dimmed: #808080;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(117, 113, 125, 0.2);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --screen-radius: 35px;
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #08090b;
}

body {
  display: grid;
  place-items: center;
  color: var(--text);
  overscroll-behavior: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.device-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  isolation: isolate;
}

.app,
.screen {
  position: absolute;
  inset: 0;
}

.app {
  overflow: hidden;
  background: var(--bg);
}

.screen {
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(31, 48, 55, 0.17) 0%, rgba(40, 51, 55, 0) 11%, #0e0e10 100%);
  will-change: transform, opacity;
}

.screen.is-entering {
  animation: screen-in 500ms var(--ease) both;
}

.screen.is-entering.from-left {
  animation-name: screen-in-left;
}

.screen.is-leaving {
  pointer-events: none;
  animation: screen-out 360ms var(--ease) both;
}

.screen.is-leaving.to-right {
  animation-name: screen-out-right;
}

@keyframes screen-in {
  from { opacity: 0.25; transform: translate3d(24%, 0, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes screen-in-left {
  from { opacity: 0.25; transform: translate3d(-24%, 0, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes screen-out {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(-16%, 0, 0) scale(0.985); }
}

@keyframes screen-out-right {
  from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; transform: translate3d(16%, 0, 0) scale(0.985); }
}

.boot-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  background: var(--bg);
}

.boot-screen img {
  width: 72px;
  height: 72px;
  margin: auto;
  object-fit: contain;
  animation: boot-pulse 1.2s ease-in-out infinite alternate;
}

.boot-screen p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

@keyframes boot-pulse {
  to { transform: scale(1.06); filter: brightness(1.3); }
}

.screen-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen-scroll::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.screen-pad {
  padding: 62px 20px 116px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 20px;
  letter-spacing: -0.2px;
}

.muted {
  color: var(--muted);
}

.art-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(113, 97, 157, 0.42), transparent 38%),
    linear-gradient(145deg, #25252b, #121216);
}

.art-placeholder .placeholder-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.52;
  filter: grayscale(1) brightness(1.5);
}

.section-empty-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.empty-library {
  display: grid;
  justify-items: center;
  margin-top: 20px;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.empty-library.is-compact {
  margin-top: 0;
  padding: 24px 20px;
}

.empty-library__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.empty-library__icon img {
  width: 25px;
  height: 25px;
}

.empty-library h3 {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.empty-library p {
  max-width: 260px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.import-button {
  min-height: 42px;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #171719;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.12), 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 180ms var(--ease);
}

.import-button:active {
  transform: scale(0.95);
}

.icon-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 180ms var(--ease), background 180ms ease;
}

.icon-button:active {
  transform: scale(0.91);
  background: rgba(255, 255, 255, 0.18);
}

.round-plus {
  width: 34px;
  height: 34px;
}

.round-plus img {
  width: 14px;
  height: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 640ms var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 90ms);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Home */
.home-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.home-topline h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
}

.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  touch-action: pan-x;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll.is-pointer-down {
  scroll-behavior: auto;
}

.horizontal-scroll.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.chip-row {
  display: flex;
  gap: 8px;
  width: calc(100% + 20px);
  margin-top: 16px;
  padding: 8px 20px 8px 0;
  scroll-snap-type: x proximity;
}

.chip {
  flex: 0 0 auto;
  min-width: 95px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 250ms ease, background 250ms ease, transform 180ms var(--ease);
  scroll-snap-align: start;
}

.chip:active {
  transform: scale(0.95);
}

.chip.is-active {
  color: #1f2020;
  background: #fff;
  border-top: 1px solid #fff;
  box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.13), 0 10px 12px rgba(0, 0, 0, 0.15);
}

.home-section {
  margin-top: 16px;
}

.recent-list {
  --recent-card-width: clamp(126px, 39.5vw, 148px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: calc(100% + 20px);
  margin-top: 20px;
  padding: 0 20px 4px 0;
  scroll-snap-type: x mandatory;
}

.recent-card {
  display: block;
  flex: 0 0 var(--recent-card-width);
  width: var(--recent-card-width);
  min-width: 0;
  scroll-snap-align: start;
  cursor: pointer;
}

.recent-card__art {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 37 / 35;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 32px;
  box-shadow: 0 21px 17px rgba(0, 0, 0, 0.07);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.recent-card__art.art-placeholder {
  display: grid;
}

.recent-card:active .recent-card__art {
  transform: scale(0.965);
  box-shadow: 0 10px 13px rgba(0, 0, 0, 0.16);
}

.recent-card__art > img:not(.placeholder-icon) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-card h3,
.recent-card p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-card h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.recent-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.trending-section {
  margin-top: 24px;
}

.song-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.song-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0;
  border-radius: 20px;
  background: transparent;
  text-align: left;
  transition: transform 180ms var(--ease), background 180ms ease;
}

.song-row:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.045);
}

.song-row__art {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 44px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.13);
}

.song-row__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-row__copy {
  min-width: 0;
}

.song-row__copy strong,
.song-row__copy span {
  display: block;
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-row__copy strong {
  font-size: 14px;
  font-weight: 500;
}

.song-row__copy span {
  color: var(--muted);
  font-size: 12px;
}

.song-row__play {
  width: 40px;
  height: 40px;
}

/* Floating dock */
.bottom-dock {
  position: absolute;
  z-index: 20;
  bottom: 34px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  width: 224px;
  height: 56px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 32px;
  background: rgba(50, 50, 54, 0.68);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), inset 0 1px rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}

.dock-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 48px;
  padding: 0;
  border-radius: 30px;
  background: transparent;
  transition: transform 220ms var(--ease), background 280ms ease;
}

.dock-button:active {
  transform: scale(0.91);
}

.dock-button.is-active {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(237, 237, 237, 0.18);
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.14), inset 0 -4px 10px rgba(0, 0, 0, 0.25);
}

.dock-button img {
  width: 24px;
  height: 24px;
}

.home-indicator {
  position: absolute;
  z-index: 25;
  bottom: 10px;
  left: 50%;
  width: 112px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
}

/* Album / playlist */
.art-blur {
  position: absolute;
  inset: -90px -75px auto;
  width: calc(100% + 150px);
  height: 650px;
  object-fit: cover;
  filter: blur(75px) brightness(0.52) saturate(0.8);
  transform: scale(1.08);
  transition: opacity 360ms ease;
}

.art-blur--empty {
  background:
    radial-gradient(circle at 24% 25%, rgba(80, 61, 117, 0.7), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(32, 87, 99, 0.58), transparent 34%),
    #141418;
}

.album-topbar {
  position: absolute;
  z-index: 8;
  top: 49px;
  left: 25px;
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  width: calc(100% - 50px);
  height: 30px;
}

.back-button {
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
}

.back-button img {
  width: 30px;
  height: 30px;
}

.album-topbar strong {
  font-family: Roboto, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  text-align: center;
}

.album-header-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.album-header-plus img {
  width: 13px;
  height: 13px;
}

.album-stage {
  position: absolute;
  z-index: 5;
  top: 89px;
  left: 0;
  width: 100%;
  height: 300px;
  touch-action: pan-y;
  cursor: grab;
  transition: transform 240ms var(--ease), opacity 240ms ease;
}

.album-stage.is-dragging {
  cursor: grabbing;
}

.album-stage.is-pulling-down {
  transform: translate3d(0, var(--album-pull, 0px), 0);
  opacity: var(--album-pull-opacity, 1);
  transition: none;
}

.album-page-scroll .album-stage.is-pulling-down {
  transform: translate3d(0, var(--album-pull, 0px), 0);
}

.album-card {
  position: absolute;
  top: 0;
  left: 55px;
  width: 265px;
  height: 300px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transform: translate3d(var(--album-drag, 0px), 0, 0);
  transition: transform 430ms var(--ease), opacity 360ms ease, filter 360ms ease;
  will-change: transform;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card.is-left,
.album-card.is-right {
  top: 29px;
  width: 215px;
  height: 242px;
  border-radius: 25px;
  opacity: 0.46;
  filter: brightness(0.65);
}

.album-card.is-left {
  left: -180px;
}

.album-card.is-right {
  left: 340px;
}

.album-stage.is-settling-left .album-card {
  transform: translate3d(-285px, 0, 0);
}

.album-stage.is-settling-right .album-card {
  transform: translate3d(285px, 0, 0);
}

.album-panel {
  position: absolute;
  z-index: 7;
  top: clamp(350px, 55dvh, 414px);
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px 40px 0 0;
  background: rgba(45, 45, 45, 0.82);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.album-info {
  position: relative;
  flex: 0 0 auto;
  min-height: 145px;
  padding: 36px 90px 12px 24px;
}

.album-info h1 {
  margin: 0;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0.6px;
}

.album-info p {
  margin: 8px 0 0;
  color: var(--dimmed);
  font-family: Roboto, system-ui, sans-serif;
  font-size: 14px;
  line-height: 16px;
}

.album-info p strong {
  color: var(--text);
  font-weight: 400;
}

.album-play {
  position: absolute;
  top: 30px;
  right: 24px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8f8f8, #a9aaac);
  box-shadow: 0 15px 24px rgba(0, 0, 0, 0.36), inset 0 2px rgba(255, 255, 255, 0.82);
}

.album-play img {
  width: 31px;
  height: 31px;
  margin: auto;
  transform: rotate(90deg);
}

.album-track-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 11px;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px max(30px, calc(env(safe-area-inset-bottom) + 20px));
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.album-track {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  transition: transform 180ms var(--ease), background 180ms ease;
}

.album-track:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.05);
}

.album-track__art {
  width: 50px;
  height: 57px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.album-track__art > img:not(.placeholder-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-empty-panel {
  display: grid;
  place-items: center;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

.album-track strong,
.album-track span {
  display: block;
  overflow: hidden;
  font-family: Roboto, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-track span {
  color: var(--dimmed);
}

/* Player */
.player-screen {
  background: #121315;
  font-family: Roboto, system-ui, sans-serif;
}

.player-screen.is-pulling-down {
  border-radius: clamp(22px, calc(var(--player-dismiss-y, 0px) / 5), 42px);
  opacity: var(--player-dismiss-opacity, 1);
  transform: translate3d(0, var(--player-dismiss-y, 0px), 0) scale(var(--player-dismiss-scale, 1));
  transition: none;
}

.player-screen.is-dismissing-down {
  --player-dismiss-y: 110dvh;
  --player-dismiss-scale: 0.94;
  --player-dismiss-opacity: 0.25;
  transition: transform 240ms var(--ease), opacity 220ms ease, border-radius 220ms ease;
}

.player-blur,
.player-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(500px, 73dvh, 595px);
  object-fit: cover;
  transition: opacity 260ms ease, transform 520ms var(--ease);
}

.player-art > img:not(.placeholder-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-art.art-placeholder .placeholder-icon {
  width: 74px;
  height: 74px;
}

.player-blur {
  inset: -85px -75px auto;
  width: calc(100% + 150px);
  height: 708px;
  filter: blur(75px) brightness(0.68);
  transform: scale(1.08);
}

.player-art {
  z-index: 1;
  object-position: center top;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  touch-action: none;
  will-change: transform;
}

.player-art.is-dragging {
  transition: none;
}

.player-shadow {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent);
  pointer-events: none;
}

.player-back-button {
  position: absolute;
  z-index: 8;
  top: 49px;
  right: 25px;
  width: 34px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(23, 23, 26, 0.52);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.player-back-button img {
  width: 100%;
  height: 100%;
}

.player-panel {
  position: absolute;
  z-index: 4;
  top: clamp(350px, 55dvh, 444px);
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-rows: auto minmax(88px, 1fr) auto;
  gap: clamp(8px, 1.8dvh, 16px);
  min-height: 0;
  padding: clamp(24px, 4.4dvh, 37px) 24px max(24px, calc(env(safe-area-inset-bottom) + 18px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px 40px 0 0;
  background: rgba(43, 43, 43, 0.79);
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.player-empty-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(78, 56, 112, 0.38), transparent 32%),
    linear-gradient(180deg, #202127, #0e0e10 66%);
}

.player-panel--empty {
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
}

.player-panel--empty .empty-library {
  width: 100%;
  margin-top: 0;
}

.player-copy {
  position: relative;
  min-width: 0;
}

.player-copy .eyebrow {
  margin: 0;
  color: var(--dimmed);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.36px;
}

.player-copy h1 {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 34px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy .artist {
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wave-seek {
  position: relative;
  align-self: center;
  width: calc(100% + 48px);
  height: 92px;
  margin-inline: -24px;
  touch-action: none;
}

.wave-visual {
  position: absolute;
  top: 7px;
  right: 18px;
  left: 18px;
  height: 58px;
  overflow: hidden;
  transform: scale(1);
  transform-origin: var(--scrub-origin, 50%) 50%;
  transition: transform 260ms var(--ease), height 260ms var(--ease), top 260ms var(--ease);
}

.wave-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: clamp(1px, 0.42vw, 2px);
  color: rgba(255, 255, 255, 0.23);
}

.wave-bars i {
  flex: 1 1 0;
  width: auto;
  min-width: 1px;
  height: var(--bar-height, 30%);
  max-height: 100%;
  border-radius: 99px;
  background: currentColor;
  transform: scaleY(0.9);
  transition: transform 220ms var(--ease), color 180ms ease;
}

.wave-bars.is-progress {
  color: rgba(255, 255, 255, 0.96);
  clip-path: inset(0 calc(100% - var(--wave-progress, 0%)) 0 0);
}

.wave-seek.is-scrubbing .wave-visual {
  top: 1px;
  height: 70px;
  transform: scaleX(1.025) scaleY(1.08);
}

.wave-seek.is-precision .wave-visual {
  transform: scaleX(1.07) scaleY(1.18);
}

.wave-seek.is-precision .wave-bars i {
  transform: scaleY(1);
}

.wave-range {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.wave-time {
  position: absolute;
  bottom: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.36px;
}

.wave-time.is-current {
  left: 44px;
  color: #fff;
}

.wave-time.is-total {
  right: 47px;
}

.wave-precision-label {
  position: absolute;
  top: -15px;
  left: 50%;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 180ms ease, transform 240ms var(--ease);
  pointer-events: none;
}

.wave-seek.is-precision .wave-precision-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.player-controls {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(30px, 1fr) clamp(58px, 17vw, 65px) minmax(30px, 1fr) 30px;
  align-items: center;
  width: 100%;
  min-height: clamp(58px, 17vw, 65px);
}

.plain-control,
.seek-control {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  transition: transform 180ms var(--ease), opacity 180ms ease;
}

.plain-control:active,
.seek-control:active {
  transform: scale(0.88);
}

.plain-control.is-active {
  filter: brightness(1.8);
}

.plain-control img {
  width: 25px;
  height: 25px;
}

.seek-control img {
  width: 29px;
  height: 29px;
}

.seek-control.is-back img {
  transform: none;
}

.play-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(58px, 17vw, 65px);
  height: clamp(58px, 17vw, 65px);
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8f8f8 0%, #a6a8a9 100%);
  box-shadow: 0 15px 26px rgba(0, 0, 0, 0.38), inset 0 2px rgba(255, 255, 255, 0.82);
  transition: transform 180ms var(--ease);
}

.play-toggle:active {
  transform: scale(0.92);
}

.pause-glyph {
  display: flex;
  gap: 8px;
}

.pause-glyph i {
  display: block;
  width: 8px;
  height: 32px;
  border-radius: 10px;
  background: #525353;
}

.play-glyph {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #525353;
}

.play-glyph-image {
  width: 31px;
  height: 31px;
  transform: rotate(90deg);
}

.swipe-hint {
  position: absolute;
  z-index: 6;
  top: 22px;
  left: 50%;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-50%);
  animation: hint-in 4s ease 850ms both;
  pointer-events: none;
}

@keyframes hint-in {
  0%, 100% { opacity: 0; transform: translate(-50%, -4px); }
  15%, 75% { opacity: 1; transform: translate(-50%, 0); }
}

/* Profile */
.profile-scroll {
  padding: 20px 20px 122px;
}

.profile-hero {
  position: relative;
  width: 335px;
  height: 369px;
  overflow: hidden;
  border-radius: 64px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(4, 8, 18, 0.72));
  pointer-events: none;
}

.profile-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(105, 71, 152, 0.55), transparent 32%),
    radial-gradient(circle at 72% 35%, rgba(31, 99, 116, 0.44), transparent 35%),
    #12131a;
}

.profile-hero .profile-placeholder-icon {
  width: 72px;
  height: 72px;
  margin-top: -28px;
  object-fit: contain;
  opacity: 0.56;
  filter: grayscale(1) brightness(1.6);
}

.profile-copy {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 30px;
  left: 20px;
  text-align: center;
}

.profile-copy h1,
.profile-copy p {
  margin: 0;
}

.profile-copy h1 {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.profile-copy p {
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.profile-section {
  margin-top: 42px;
}

.profile-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.playlist-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  text-align: left;
}

.playlist-row:active {
  background: rgba(255, 255, 255, 0.045);
}

.playlist-row__art {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 48px;
}

.playlist-row__art > img:not(.placeholder-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-row strong,
.playlist-row span {
  display: block;
  line-height: 20px;
}

.playlist-row strong {
  font-size: 14px;
  font-weight: 500;
}

.playlist-row span {
  color: var(--muted);
  font-size: 12px;
}

.playlist-row > img:last-child {
  width: 16px;
  height: 16px;
  transform: scaleX(-1);
}

.clear-library {
  width: 100%;
  min-height: 44px;
  margin-top: 24px;
  border: 1px solid rgba(255, 118, 118, 0.22);
  border-radius: 18px;
  background: rgba(255, 91, 91, 0.07);
  color: #ffb1b1;
  font-size: 13px;
}

.playlist-empty {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.playlist-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.secondary-import {
  width: 100%;
  min-height: 44px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
}

.secondary-import + .secondary-import {
  margin-top: 10px;
}

.compact-import {
  width: min(100%, 220px);
  margin-top: 10px;
}

.playlist-modal-backdrop {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 14px;
  background: rgba(0, 0, 0, 0.58);
  animation: modal-fade-in 220ms ease both;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.playlist-modal {
  max-height: calc(100% - 40px);
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(30, 30, 34, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  animation: modal-rise 360ms var(--ease) both;
}

.playlist-modal header,
.playlist-modal footer,
.playlist-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlist-modal header p,
.playlist-modal header h2 {
  margin: 0;
}

.playlist-modal header p {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.playlist-modal header h2 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 28px;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.playlist-name-label {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.playlist-name-label input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.playlist-name-label input:focus {
  border-color: rgba(255, 255, 255, 0.42);
}

.playlist-picker-head {
  margin-top: 18px;
  font-size: 12px;
}

.playlist-picker-head button {
  padding: 5px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.playlist-track-picker {
  display: grid;
  gap: 7px;
  max-height: 252px;
  margin-top: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.playlist-track-picker label {
  display: grid;
  grid-template-columns: 20px 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 4px 8px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.playlist-track-picker input {
  width: 18px;
  height: 18px;
  accent-color: #fff;
}

.modal-track-art {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.modal-track-art > img:not(.placeholder-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-track-picker strong,
.playlist-track-picker small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track-picker strong {
  font-size: 12px;
  font-weight: 550;
}

.playlist-track-picker small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.modal-error {
  min-height: 17px;
  margin: 8px 0 0;
  color: #ffabab;
  font-size: 11px;
}

.playlist-modal footer {
  gap: 10px;
  margin-top: 4px;
}

.modal-cancel,
.modal-save {
  height: 44px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
}

.modal-cancel {
  flex: 0 0 92px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.modal-save {
  flex: 1;
  background: #f4f4f5;
  color: #171719;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
}

.toast {
  position: absolute;
  z-index: 50;
  bottom: 102px;
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(26, 26, 29, 0.84);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color: #f4f4f5;
  font-size: 12px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 360ms var(--ease);
  pointer-events: none;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-height: 740px) {
  .device-shell {
    border-radius: 0;
  }

  .album-stage {
    top: 72px;
    transform: scale(0.88);
    transform-origin: top center;
  }

  .album-panel,
  .player-panel {
    top: clamp(330px, 55dvh, 385px);
  }

  .player-art {
    height: clamp(450px, 74dvh, 520px);
  }

  .player-panel {
    gap: 8px;
    padding: 22px 20px max(18px, calc(env(safe-area-inset-bottom) + 12px));
  }

  .player-copy h1 {
    font-size: clamp(27px, 8.5vw, 32px);
    line-height: 35px;
  }

  .wave-seek {
    width: calc(100% + 40px);
    height: 84px;
    margin-inline: -20px;
  }

  .wave-visual {
    height: 51px;
  }

  .wave-seek.is-scrubbing .wave-visual {
    height: 62px;
  }

  .wave-time {
    font-size: 11px;
  }

  .profile-hero {
    height: 330px;
  }

  .profile-section {
    margin-top: 26px;
  }
}

@media (max-width: 340px) {
  .album-card {
    left: 50%;
    width: 72vw;
    transform: translate3d(calc(-50% + var(--album-drag, 0px)), 0, 0);
  }

  .album-card.is-left {
    left: -56%;
  }

  .album-card.is-right {
    left: 106%;
  }

  .album-info {
    padding-right: 82px;
    padding-left: 18px;
  }

  .album-play {
    right: 18px;
    width: 58px;
    height: 58px;
  }

  .player-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .player-controls {
    grid-template-columns: 28px minmax(25px, 1fr) 58px minmax(25px, 1fr) 28px;
  }
}

@media (min-width: 600px) {
  .device-shell {
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Responsive application shell and persistent mini player */
.home-indicator {
  display: none;
}

.screen-pad,
.profile-section {
  padding-bottom: 180px;
}

.mini-player {
  position: absolute;
  z-index: 30;
  right: 12px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  width: min(calc(100% - 24px), 560px);
  height: 64px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 61, 66, 0.9), rgba(26, 26, 30, 0.92));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  animation: mini-player-in 380ms var(--ease) both;
}

.mini-player-scrim {
  position: absolute;
  z-index: 18;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(168px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(14, 14, 16, 0.9) 47%, #0e0e10 78%);
  pointer-events: none;
}

@keyframes mini-player-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.mini-player__main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  padding: 7px 2px 7px 7px;
  border-radius: 999px 0 0 999px;
  background: transparent;
  text-align: left;
}

.mini-player__art {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.mini-player__art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-player__copy,
.mini-player__copy strong,
.mini-player__copy span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player__copy strong {
  font-size: 14px;
  line-height: 20px;
}

.mini-player__copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.mini-player__toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(145deg, #f4f4f4, #b7b8bb);
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.9);
  transition: transform 160ms var(--ease), filter 180ms ease;
}

.mini-player__toggle:active {
  transform: scale(0.9);
}

.mini-player__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -4px;
}

.mini-pause-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mini-pause-glyph i {
  display: block;
  width: 5px;
  height: 20px;
  border-radius: 4px;
  background: #4d4e50;
}

.mini-play-glyph {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #4d4e50;
}

.mini-player__progress {
  position: absolute;
  right: 28px;
  bottom: 3px;
  left: 28px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-player__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: width 220ms linear;
}

.screen[data-screen="album"] .mini-player {
  position: fixed;
  bottom: calc(18px + env(safe-area-inset-bottom));
}

.screen[data-screen="album"] .mini-player-scrim {
  position: fixed;
  height: calc(104px + env(safe-area-inset-bottom));
}

.bottom-dock {
  bottom: calc(16px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(224px, calc(100% - 32px));
}

.dock-button {
  width: 100%;
}

/* One continuous scroll surface for the complete playlist page */
.album-page-scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 104px;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.album-page-scroll::-webkit-scrollbar {
  display: none;
}

.album-page-scroll .album-topbar {
  position: sticky;
  top: 0;
  left: auto;
  width: auto;
  height: calc(64px + env(safe-area-inset-top));
  margin: 0 20px;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.6), transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.album-page-scroll .art-blur {
  position: absolute;
  top: -100px;
}

.album-page-scroll .album-stage {
  position: relative;
  top: auto;
  left: auto;
  height: 320px;
  overflow: hidden;
  transform: none;
}

.album-carousel-track {
  --album-drag: 0px;
  display: flex;
  gap: 16px;
  width: max-content;
  height: 310px;
  padding-inline: calc((100vw - 265px) / 2);
  transform: translate3d(calc(var(--album-offset, 0px) + var(--album-drag)), 0, 0);
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.album-page-scroll .album-card,
.album-page-scroll .album-card.is-left,
.album-page-scroll .album-card.is-right {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 265px;
  width: 265px;
  height: 300px;
  border-radius: 30px;
  opacity: 0.42;
  filter: brightness(0.62) saturate(0.82);
  transform: scale(0.88);
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms ease, filter 360ms ease;
}

.album-page-scroll .album-card.is-current {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.album-page-scroll .album-panel {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: block;
  min-height: calc(100dvh - 375px);
  margin-top: -10px;
  overflow: visible;
  padding-bottom: 24px;
}

.album-page-scroll .album-info {
  min-height: 166px;
  padding-bottom: 18px;
}

.album-page-scroll .album-track-list {
  display: grid;
  height: auto;
  overflow: visible;
  padding-bottom: 24px;
  touch-action: pan-y;
  transition: opacity 180ms ease, transform 260ms var(--ease);
}

.album-track-list.is-pinching {
  opacity: 0.72;
  transform: scale(0.985);
}

.track-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 14px;
  color: var(--muted);
  font-size: 11px;
}

.track-view-toolbar button,
.playlist-actions button,
.playlist-row-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  text-transform: capitalize;
}

.playlist-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.playlist-actions .is-danger,
.playlist-row-actions .is-danger {
  border-color: rgba(255, 112, 112, 0.2);
  color: #ff9b9b;
}

.album-track-list.view-compact {
  gap: 4px;
}

.album-track-list.view-compact .album-track {
  min-height: 42px;
}

.album-track-list.view-compact .album-track__art {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.album-track-list.view-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.album-track-list.view-grid .album-track {
  display: block;
  min-width: 0;
}

.album-track-list.view-grid .album-track__art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 9px;
  border-radius: 22px;
}

.album-track-list.view-grid .album-track > span {
  text-align: center;
}

.playlist-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.playlist-row-wrap .playlist-row {
  width: 100%;
}

.playlist-row-actions {
  display: flex;
  gap: 6px;
}

.boot-failure {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  background: var(--bg);
  text-align: center;
}

.boot-failure h1,
.boot-failure p {
  max-width: 520px;
  margin: 0;
}

.boot-failure p {
  color: var(--muted);
  line-height: 1.6;
}

/* Player adapts to short phones, tall phones, tablets and landscape screens. */
.player-art,
.player-blur {
  height: clamp(310px, 55dvh, 620px);
}

.player-panel {
  top: clamp(300px, 55dvh, 520px);
  padding-bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px));
}

.player-copy h1 {
  font-size: clamp(25px, 8.6vw, 38px);
  line-height: 1.12;
}

@media (min-width: 560px) {
  .album-track-list.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .screen-pad,
  .profile-section {
    padding-right: max(24px, calc((100vw - 720px) / 2));
    padding-left: max(24px, calc((100vw - 720px) / 2));
  }
}

@media (min-width: 760px) and (min-height: 560px) {
  .player-art {
    width: 52%;
    height: 100%;
  }

  .player-blur {
    width: calc(52% + 150px);
    height: calc(100% + 150px);
  }

  .player-panel {
    top: 0;
    left: 48%;
    padding: max(70px, 10dvh) clamp(28px, 5vw, 70px) max(28px, calc(env(safe-area-inset-bottom) + 22px));
    border-radius: 42px 0 0 42px;
  }

  .player-back-button {
    top: max(24px, env(safe-area-inset-top));
    right: 24px;
  }

  .player-copy h1 {
    font-size: clamp(32px, 4vw, 52px);
  }
}

@media (max-width: 380px) {
  .mini-player {
    right: 8px;
    left: 8px;
    width: calc(100% - 16px);
  }

  .mini-player__copy strong {
    font-size: 13px;
  }

  .mini-player__copy span {
    font-size: 11px;
  }

  .album-page-scroll .album-stage {
    height: 310px;
  }

  .album-page-scroll .album-panel {
    min-height: calc(100dvh - 350px);
  }

  .playlist-row-wrap {
    grid-template-columns: 1fr;
  }

  .playlist-row-actions {
    justify-content: flex-end;
  }
}
