/* Product experience layer: release catalog, native player, and refined navigation. */

.app-view-home .hero {
  gap: 0;
  min-height: clamp(700px, calc(100svh - 200px), 860px);
  padding-bottom: 20px;
}

.app-view-home .hero.no-subtitle .red-mark {
  margin-bottom: 26px;
}

.latest-release-card {
  position: relative;
  top: auto;
  display: block;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin: 56px 0 12px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  color: var(--ink);
  text-align: left;
  backdrop-filter: blur(22px) saturate(1.1);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.latest-release-card::after {
  position: absolute;
  inset: -1px;
  background: linear-gradient(180deg, transparent 68%, rgba(0, 0, 0, 0.08) 74%, rgba(0, 0, 0, 0.78) 100%);
  content: "";
  pointer-events: none;
}

.latest-release-card:hover {
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.44);
  transform: translateY(-2px);
}

.latest-release-card:focus,
.latest-release-card:focus-visible {
  outline: 0;
}

.latest-release-card:active {
  transform: scale(0.988);
}

.latest-release-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.latest-release-card:hover > img {
  transform: scale(1.018);
}

.latest-release-copy {
  position: absolute;
  right: 84px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: grid;
  min-width: 0;
  gap: 6px;
}

.latest-release-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 740;
  letter-spacing: 0.16em;
  line-height: 1;
}

.latest-release-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-release-copy > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1;
}

.latest-release-play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: #080808;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.latest-release-play svg {
  width: 23px;
  height: 23px;
}

.latest-release-play path {
  fill: currentColor;
}

.hero-support {
  position: relative;
  top: auto;
  width: min(100%, 430px);
}

.app-view-home .updates-section {
  margin-top: 28px;
}

.support-launch {
  min-height: 64px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.music-view-header {
  padding-bottom: 22px;
  border-bottom: 0;
}

.music-video-feature {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  transform: translateZ(0);
}

.music-video-feature iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.music-platforms {
  margin-bottom: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(248, 247, 244, 0.12);
}

.music-platforms .platform-link {
  min-height: 58px;
  background: rgba(255, 255, 255, 0.09);
}

.platform-link .platform-icon {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.platform-link .spotify-mark circle {
  fill: currentColor;
  stroke: none;
}

.platform-link .spotify-mark path {
  fill: none;
  stroke: #0b0b0b;
  stroke-linecap: round;
  stroke-width: 1.45;
}

.platform-link .apple-music-mark path,
.platform-link .youtube-mark path {
  fill: currentColor;
  stroke: none;
}

.platform-link.is-disabled {
  color: rgba(248, 247, 244, 0.46);
  opacity: 1;
}

.music-library {
  margin: 0;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.library-heading p {
  margin: 0 0 7px;
  color: rgba(248, 247, 244, 0.48);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.library-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: 0;
}

.library-heading > span {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: rgba(248, 247, 244, 0.48);
  font-size: 0.76rem;
}

.track-list {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.track-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 88px;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 160ms ease, padding 160ms ease;
}

.track-row:not(:last-child) {
  border-bottom: 1px solid rgba(248, 247, 244, 0.1);
}

.track-row.is-current {
  background: transparent;
}

.track-row.is-current .track-copy strong {
  color: #fff;
}

.track-row:focus,
.track-row:focus-visible {
  outline: 0;
}

.track-row:focus-visible {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(248, 247, 244, 0.28);
}

.track-row.is-current .track-action {
  background: rgba(229, 27, 36, 0.16);
  color: #fff;
}

.track-row.is-playing .track-action {
  box-shadow: 0 0 0 4px rgba(229, 27, 36, 0.12);
}

.track-cover-wrap {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 5px;
  background: #eee;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.track-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.track-copy strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy small {
  color: rgba(248, 247, 244, 0.52);
  font-size: 0.8rem;
}

.track-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.track-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(248, 247, 244, 0.3);
}

.track-meta em {
  color: rgba(248, 247, 244, 0.42);
  font-size: 0.68rem;
  font-style: normal;
}

.track-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 247, 244, 0.68);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.track-action svg {
  width: 18px;
  height: 18px;
}

.track-action path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.track-row.is-playable .track-action path {
  fill: currentColor;
  stroke: none;
}

@media (hover: hover) and (pointer: fine) {
  .track-row:hover {
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.055);
  }

  .track-row:hover .track-action {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateX(2px);
  }
}

.merch-landing[hidden],
.merch-product[hidden] {
  display: none;
}

.merch-view-header {
  min-height: 226px;
  padding-bottom: 28px;
  border-bottom: 0;
}

.merch-collection-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(248, 247, 244, 0.12);
}

.merch-collection-intro > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.merch-collection-intro p,
.merch-collection-intro h3,
.merch-collection-intro span {
  margin: 0;
}

.merch-collection-intro p {
  color: rgba(248, 247, 244, 0.5);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.merch-collection-intro h3 {
  font-size: clamp(1.25rem, 5vw, 1.65rem);
  font-weight: 650;
  line-height: 1.1;
}

.merch-collection-intro span {
  color: rgba(248, 247, 244, 0.52);
  font-size: 0.78rem;
}

.merch-notify {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border-color: rgba(248, 247, 244, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
}

.merch-catalog {
  padding: 30px 0 18px;
}

.merch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.merch-card {
  position: relative;
  display: block;
  height: 320px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(248, 247, 244, 0.14);
  border-radius: 6px;
  background: #090909;
  color: var(--ink);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.merch-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(3, 3, 3, 0.18) 64%, rgba(3, 3, 3, 0.9) 100%);
  content: "";
  pointer-events: none;
}

.merch-card:focus,
.merch-card:focus-visible {
  outline: 0;
}

.merch-card:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(248, 247, 244, 0.76);
}

.merch-card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.merch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

.merch-card-image small {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 6px 7px;
  border-radius: 4px;
  background: rgba(5, 5, 5, 0.78);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.55rem;
  font-weight: 760;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.merch-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 22px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
}

.merch-card-copy strong {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 680;
  line-height: 1.15;
}

.merch-card-copy span {
  color: rgba(248, 247, 244, 0.76);
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  .merch-card:hover .merch-card-image img {
    filter: brightness(1.06);
    transform: scale(1.025);
  }

  .merch-card:hover {
    border-color: rgba(248, 247, 244, 0.28);
    transform: translateY(-1px);
  }
}

.merch-product {
  padding-top: 18px;
}

.merch-product-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 18px;
}

.merch-product-header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.merch-product-header button:focus,
.merch-product-header button:focus-visible {
  outline: 0;
}

.merch-product-header button:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(248, 247, 244, 0.48);
}

.merch-product-header svg {
  width: 20px;
  height: 20px;
}

.merch-product-header path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.merch-product-header > span {
  overflow: hidden;
  color: rgba(248, 247, 244, 0.56);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merch-product-header em {
  color: rgba(248, 247, 244, 0.62);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 740;
}

.merch-product-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 28px;
  overflow: hidden;
}

.merch-gallery {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.merch-gallery-stage {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #070707;
}

.merch-gallery-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.merch-gallery-stage img.is-changing {
  animation: merch-image-in 240ms ease-out;
}

@keyframes merch-image-in {
  from { opacity: 0.55; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

.merch-thumbnails {
  display: flex;
  gap: 9px;
  margin-top: 12px;
  padding: 2px 1px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: inline mandatory;
}

.merch-thumbnails::-webkit-scrollbar {
  display: none;
}

.merch-thumbnails button {
  flex: 0 0 64px;
  width: 64px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #0b0b0b;
  opacity: 0.56;
  scroll-snap-align: start;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.merch-thumbnails button.is-active {
  border-color: rgba(248, 247, 244, 0.74);
  opacity: 1;
}

.merch-thumbnails button:focus,
.merch-thumbnails button:focus-visible {
  outline: 0;
}

.merch-thumbnails button:focus-visible {
  border-color: var(--red);
}

.merch-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merch-product-info {
  display: grid;
  align-content: start;
  justify-items: start;
}

.merch-product-info > p:first-child {
  margin: 0 0 9px;
  color: rgba(248, 247, 244, 0.5);
  font-size: 0.72rem;
}

.merch-product-info h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 570;
  line-height: 0.98;
}

.merch-product-status {
  margin-bottom: 24px;
  padding: 7px 9px;
  border: 1px solid rgba(248, 247, 244, 0.16);
  border-radius: 4px;
  color: rgba(248, 247, 244, 0.74);
  font-size: 0.64rem;
  font-weight: 740;
  line-height: 1;
}

.merch-product-description {
  max-width: 460px;
  margin: 0 0 24px;
  color: rgba(248, 247, 244, 0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

.merch-product-notify {
  width: 100%;
  min-height: 52px;
  margin-bottom: 14px;
  border: 0;
  background: #f8f7f4;
  color: #070707;
  font-size: 0.9rem;
}

.merch-product-info small {
  color: rgba(248, 247, 244, 0.38);
  font-size: 0.68rem;
  line-height: 1.45;
}

body.is-merch-product .background {
  opacity: 0.12;
}

@media (min-width: 760px) {
  body.is-merch-product .page {
    width: min(100%, 1040px);
  }

  .merch-product {
    padding-top: 26px;
  }

  .merch-product-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
    gap: 44px;
  }

  .merch-product-info {
    position: sticky;
    top: 36px;
    padding-top: 26px;
  }

  .merch-product-info h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
  }
}

@media (max-width: 430px) {
  .merch-collection-intro {
    align-items: center;
  }

  .merch-collection-intro span {
    max-width: 210px;
  }

  .merch-grid {
    gap: 10px;
  }

  .merch-card {
    height: 188px;
  }

  .merch-card-image {
    height: 100%;
  }

  .merch-card-copy {
    gap: 6px;
    padding: 16px;
  }

  .merch-card-copy strong {
    font-size: 0.94rem;
  }

  .merch-card-copy span {
    font-size: 0.66rem;
  }

  .merch-card-image small {
    top: 8px;
    right: 8px;
    padding: 5px 6px;
    font-size: 0.5rem;
  }
}

.app-tabs {
  background: transparent;
  box-shadow: none;
}

body.has-mini-player .app-tabs {
  border-top: 1px solid rgba(248, 247, 244, 0.11);
}

.app-tab {
  color: rgba(248, 247, 244, 0.68);
  opacity: 1;
}

.app-tab svg {
  width: 23px;
  height: 23px;
  overflow: visible;
}

.app-tab path,
.app-tab circle {
  fill: currentColor;
  stroke: none;
}

.app-tab.is-active {
  color: #fff;
}

.app-tab:focus,
.app-tab:focus-visible {
  outline: 0;
}

.app-tab:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(248, 247, 244, 0.24);
}

.app-tab:not(.is-active) svg {
  transform: scale(0.94);
}

.mini-player {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-row: 1;
  align-items: center;
  width: 100%;
  min-height: 54px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.mini-player.has-next {
  grid-template-columns: minmax(0, 1fr) 44px 40px;
}

.mini-player[hidden] {
  display: none;
}

.mini-player-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.mini-player-main img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
}

.mini-player-main span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mini-player-main strong,
.mini-player-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player-main strong {
  font-size: 0.84rem;
}

.mini-player-main small {
  color: rgba(248, 247, 244, 0.5);
  font-size: 0.68rem;
}

.mini-player-toggle,
.mini-player-next {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.mini-player-toggle svg,
.mini-player-next svg {
  width: 23px;
  height: 23px;
}

.mini-player-toggle path,
.mini-player-next path {
  fill: currentColor;
}

.mini-player-next[hidden] {
  display: none;
}

body.has-mini-player .page {
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

.mini-player-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

.pause-shape,
.is-playing .play-shape {
  display: none;
}

.is-playing .pause-shape {
  display: block;
}

.player-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: #050505;
  color: #fff;
  animation: player-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.player-screen[hidden] {
  display: none;
}

.player-screen.is-resting {
  animation: none;
}

.player-screen.is-closing {
  pointer-events: none;
  transform-origin: center bottom;
  animation: player-to-mini 460ms cubic-bezier(0.4, 0, 0.2, 1) both;
  will-change: transform, opacity, border-radius;
}

.player-screen.is-dragging,
.player-screen.is-drag-settling {
  animation: none;
  border-radius: calc(var(--player-drag-progress, 0) * 18px) calc(var(--player-drag-progress, 0) * 18px) 0 0;
  transform: translateY(var(--player-drag-y, 0));
}

.player-screen.is-dragging {
  transition: none;
  will-change: transform, border-radius;
}

.player-screen.is-drag-settling {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-radius 280ms ease;
}

@keyframes player-in {
  from { transform: translateY(22px) scale(0.99); }
  to { transform: translateY(0) scale(1); }
}

@keyframes player-to-mini {
  0% {
    opacity: 1;
    transform: translateY(var(--player-close-start-y, 0)) scale(1);
  }

  100% {
    border-radius: 16px 16px 0 0;
    opacity: 0.18;
    transform: translateY(calc(100% + 24px)) scale(0.985);
  }
}

.player-canvas,
.player-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-canvas {
  object-fit: cover;
  object-position: center;
  background: #050505;
  opacity: 0;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.player-canvas.is-ready {
  opacity: 1;
}

.player-scrim {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0, transparent 14%, transparent 55%, rgba(0, 0, 0, 0.18) 67%, rgba(0, 0, 0, 0.7) 87%, rgba(0, 0, 0, 0.91) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 50%, rgba(0, 0, 0, 0.1));
  opacity: 1;
  transition: opacity 320ms ease;
}

.player-immersive-toggle {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.player-immersive-toggle:focus,
.player-immersive-toggle:focus-visible {
  outline: 0;
}

.player-immersive-toggle:disabled {
  pointer-events: none;
}

.player-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  width: min(100%, 660px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 18px 0;
  touch-action: none;
  user-select: none;
}

.player-header > span {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: opacity 240ms ease;
}

.player-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  backdrop-filter: blur(12px);
}

#player-close {
  -webkit-tap-highlight-color: transparent;
}

#player-close:focus,
#player-close:focus-visible {
  outline: 0;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.36);
}

.player-icon-button svg {
  width: 22px;
  height: 22px;
}

.player-icon-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.player-icon-button circle {
  fill: currentColor;
}

.player-content {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 0 24px max(20px, env(safe-area-inset-bottom));
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  transition: padding 320ms cubic-bezier(0.22, 1, 0.36, 1), transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.player-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  transition: gap 320ms ease, margin 320ms ease;
}

.player-compact-cover {
  display: none;
  width: 62px;
  height: 62px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.player-title-row h2 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 670;
  letter-spacing: 0;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-title-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

.player-favorite {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.player-favorite svg {
  width: 20px;
  height: 20px;
}

.player-favorite path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.player-favorite[aria-pressed="true"] {
  color: #e51b24;
}

.player-favorite[aria-pressed="true"] path {
  fill: currentColor;
  stroke: currentColor;
}

.player-favorite:hover {
  background: rgba(229, 27, 36, 0.18);
  color: #fff;
}

.player-timeline input {
  display: block;
  width: 100%;
  height: 40px;
  margin: -10px 0 -9px;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.player-timeline input:focus,
.player-timeline input:focus-visible {
  outline: 0;
}

.player-timeline,
.player-controls,
.player-extras,
.player-status {
  opacity: 1;
  overflow: clip;
  transform: translateY(0);
  transition:
    max-height 300ms cubic-bezier(0.22, 1, 0.36, 1),
    margin 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.player-timeline {
  max-height: 48px;
}

.player-timeline input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff var(--progress, 0%), rgba(255, 255, 255, 0.28) var(--progress, 0%));
}

.player-timeline input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.player-timeline input::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.player-timeline input::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: #fff;
}

.player-timeline input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.player-timeline input.is-seeking::-webkit-slider-thumb {
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14), 0 3px 14px rgba(0, 0, 0, 0.48);
  transform: scale(1.08);
}

.player-timeline input.is-seeking::-moz-range-thumb {
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14), 0 3px 14px rgba(0, 0, 0, 0.48);
  transform: scale(1.08);
}

.player-timeline > div {
  display: flex;
  justify-content: space-between;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: grid;
  grid-template-columns: 40px 48px 66px 48px 40px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  max-height: 76px;
}

.player-controls button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.player-controls .player-mode {
  position: relative;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.58);
}

.player-controls .player-mode[aria-pressed="true"],
.player-controls .player-repeat:not([data-mode="off"]) {
  color: #fff;
}

.player-controls .player-mode[aria-pressed="true"]::after,
.player-controls .player-repeat:not([data-mode="off"])::after {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.player-repeat > span {
  position: absolute;
  top: 13px;
  left: 19px;
  display: none;
  font-size: 0.5rem;
  font-weight: 850;
}

.player-repeat[data-mode="one"] > span {
  display: block;
}

.player-controls button:disabled {
  color: rgba(255, 255, 255, 0.32);
  cursor: default;
}

.player-controls .player-play {
  width: 66px;
  height: 66px;
  background: #fff;
  color: #050505;
}

.player-controls .player-play:disabled {
  background: rgba(255, 255, 255, 0.78);
  color: rgba(5, 5, 5, 0.38);
}

.player-controls svg {
  width: 25px;
  height: 25px;
}

.player-controls .player-play svg {
  width: 29px;
  height: 29px;
}

.player-controls path {
  fill: currentColor;
}

.player-controls .player-mode path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.player-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-top: 6px;
  max-height: 36px;
}

.player-extras button,
.player-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 650;
}

.player-extras svg {
  width: 18px;
  height: 18px;
}

.player-extras path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.player-volume input {
  width: 88px;
  accent-color: #fff;
}

.player-extras-right,
.player-shortcuts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.player-shortcuts {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.player-shortcuts button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.player-shortcuts button[hidden] {
  display: none;
}

.player-shortcuts button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.player-shortcuts #player-merch-shortcut path {
  fill: currentColor;
  stroke: none;
}

.player-shortcuts #player-install path {
  fill: none;
  stroke: currentColor;
}

.player-screen.is-immersive .player-scrim {
  opacity: 0.66;
}

.player-screen.is-immersive .player-header > span:not(.player-header-spacer) {
  opacity: 0.58;
}

.player-screen.is-immersive .player-content {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.player-screen.is-immersive .player-title-row {
  grid-template-columns: 62px minmax(0, 1fr) 44px;
  gap: 13px;
  margin-bottom: 0;
}

.player-screen.is-immersive .player-compact-cover {
  display: block;
  animation: immersive-cover-in 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes immersive-cover-in {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.player-screen.is-immersive .player-title-row h2 {
  font-size: clamp(1.35rem, 6vw, 1.72rem);
}

.player-screen.is-immersive .player-title-row p {
  font-size: 0.88rem;
}

.player-screen.is-immersive .player-favorite {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.player-screen.is-immersive .player-timeline,
.player-screen.is-immersive .player-controls,
.player-screen.is-immersive .player-extras,
.player-screen.is-immersive .player-status {
  max-height: 0;
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

body.is-player-dragging::after {
  opacity: calc(1 - var(--player-drag-progress, 0));
  transition: none;
}

.support-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  margin-top: 2px;
  border: 1px solid rgba(248, 247, 244, 0.15);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(248, 247, 244, 0.82);
  font-size: 0.82rem;
  font-weight: 680;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.support-share:hover {
  border-color: rgba(248, 247, 244, 0.26);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.support-share svg {
  width: 18px;
  height: 18px;
}

.support-share circle,
.support-share path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.payment-sheet .share-status {
  min-height: 0;
  margin: -5px 0 0;
  color: rgba(248, 247, 244, 0.56);
  font-size: 0.74rem;
  text-align: center;
}

.payment-sheet .share-status:empty {
  display: none;
}

.player-queue {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  max-height: min(58%, 520px);
  overflow: auto;
  padding: 22px max(22px, calc((100% - 620px) / 2)) max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 -28px 80px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(28px);
  animation: queue-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.player-queue[hidden] {
  display: none;
}

@keyframes queue-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-queue header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.player-queue header p,
.player-queue header h3 {
  margin: 0;
}

.player-queue header p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.player-queue header h3 {
  font-size: 1.2rem;
  font-weight: 650;
}

.player-queue header button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.player-queue header button::before,
.player-queue header button::after {
  position: absolute;
  top: 18px;
  left: 12px;
  width: 14px;
  height: 1.5px;
  background: #fff;
  content: "";
}

.player-queue header button::before { transform: rotate(45deg); }
.player-queue header button::after { transform: rotate(-45deg); }

.player-queue ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-queue li button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.player-queue li button.is-current {
  border-color: rgba(229, 27, 36, 0.35);
  background: rgba(255, 255, 255, 0.07);
}

.player-queue li button:disabled {
  opacity: 0.48;
}

.player-queue li img {
  width: 52px;
  height: 52px;
  border-radius: 5px;
  object-fit: cover;
}

.player-queue li span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.player-queue li strong,
.player-queue li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-queue li strong { font-size: 0.9rem; }
.player-queue li small { color: rgba(255, 255, 255, 0.5); font-size: 0.74rem; }
.player-queue li em { color: rgba(255, 255, 255, 0.42); font-size: 0.56rem; font-style: normal; font-weight: 750; letter-spacing: 0.1em; }

.player-status {
  max-height: 28px;
  min-height: 15px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  text-align: center;
}

body.is-player-open {
  overflow: hidden;
}

@media (min-width: 700px) {
  .player-screen {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.72);
  }

  body.is-player-open::after {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(0, 0, 0, 0.86);
    content: "";
    backdrop-filter: blur(18px);
  }

  body.is-player-closing::after {
    animation: player-backdrop-out 460ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  @keyframes player-backdrop-out {
    to {
      opacity: 0;
      backdrop-filter: blur(0);
    }
  }

  .player-canvas {
    object-position: center 40%;
  }

  .player-content {
    padding-bottom: 28px;
  }

  .player-title-row h2 {
    font-size: 1.8rem;
  }
}

@media (min-width: 760px) {
  .app-view-home .hero {
    margin-bottom: 0;
    transform: none;
  }

  .latest-release-card {
    margin-top: clamp(280px, 35svh, 340px);
  }
}

@media (max-width: 599px) {
  .app-view-home .hero {
    min-height: max(740px, calc(100svh - 84px));
    padding-top: clamp(136px, 19svh, 170px);
  }

  .latest-release-card {
    width: 100%;
    margin-top: 110px;
  }

  .hero-support {
    top: auto;
  }

  .latest-release-play {
    width: 48px;
    height: 48px;
  }

  .music-platforms .platform-link {
    min-height: 64px;
  }

  .track-row {
    grid-template-columns: 60px minmax(0, 1fr) 36px;
    gap: 12px;
    min-height: 84px;
    padding: 12px 2px;
  }

  .track-cover-wrap {
    width: 60px;
    height: 60px;
  }

  .player-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .player-controls {
    grid-template-columns: 36px 44px 64px 44px 36px;
    gap: 9px;
  }

  .player-controls .player-play {
    width: 64px;
    height: 64px;
  }

  .player-volume {
    display: none;
  }

  .player-extras-right {
    margin-left: auto;
  }

  .player-shortcuts {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 370px) {
  .latest-release-copy strong {
    font-size: 1.25rem;
  }

  .player-controls {
    grid-template-columns: 34px 42px 60px 42px 34px;
    gap: 7px;
  }

  .player-controls .player-play {
    width: 60px;
    height: 60px;
  }
}
