.page-playlist .fants-scene img {
  object-position: center bottom;
}

.page-playlist .star-item[data-star="13"],
.page-playlist .star-item[data-star="14"],
.page-playlist .star-item[data-star="15"] {
  display: block;
}

.page-playlist .star-item[data-star="1"] {
  left: calc(100% * 935 / 1440);
  top: calc(100% * 92 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}

.page-playlist .star-item[data-star="2"] {
  left: calc(100% * 485 / 1440);
  top: calc(100% * 51 / 750);
  width: calc(100% * 27 / 1440);
  height: calc(100% * 27 / 750);
}

.page-playlist .star-item[data-star="3"] {
  left: calc(100% * 875 / 1440);
  top: calc(100% * 30 / 750);
  width: calc(100% * 32 / 1440);
  height: calc(100% * 32 / 750);
}

.page-playlist .star-item[data-star="4"] {
  left: calc(100% * 147 / 1440);
  top: calc(100% * 107 / 750);
  width: calc(100% * 32 / 1440);
  height: calc(100% * 32 / 750);
}

.page-playlist .star-item[data-star="5"] {
  left: calc(100% * 1221 / 1440);
  top: calc(100% * 182 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}

.page-playlist .star-item[data-star="6"] {
  left: calc(100% * 449 / 1440);
  top: calc(100% * 59 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}

.page-playlist .star-item[data-star="7"] {
  left: calc(100% * 214 / 1440);
  top: calc(100% * 153 / 750);
  width: calc(100% * 16 / 1440);
  height: calc(100% * 16 / 750);
}

.page-playlist .star-item[data-star="8"] {
  left: calc(100% * 196 / 1440);
  top: calc(100% * 36 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-playlist .star-item[data-star="9"] {
  left: calc(100% * 753 / 1440);
  top: calc(100% * 395 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-playlist .star-item[data-star="10"] {
  left: calc(100% * 884 / 1440);
  top: calc(100% * 126 / 750);
  width: calc(100% * 38 / 1440);
  height: calc(100% * 38 / 750);
}

.page-playlist .star-item[data-star="11"] {
  left: calc(100% * 564 / 1440);
  top: calc(100% * 36 / 750);
  width: calc(100% * 38 / 1440);
  height: calc(100% * 38 / 750);
}

.page-playlist .star-item[data-star="12"] {
  left: calc(100% * 67 / 1440);
  top: calc(100% * 45 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-playlist .star-item[data-star="13"] {
  left: calc(100% * 1231 / 1440);
  top: calc(100% * 17 / 750);
  width: calc(100% * 56 / 1440);
  height: calc(100% * 56 / 750);
}

.page-playlist .star-item[data-star="14"] {
  left: calc(100% * 1255 / 1440);
  top: calc(100% * 173 / 750);
  width: calc(100% * 52 / 1440);
  height: calc(100% * 52 / 750);
}

.page-playlist .star-item[data-star="15"] {
  left: calc(100% * 23 / 1440);
  top: calc(100% * 155 / 750);
  width: calc(100% * 52 / 1440);
  height: calc(100% * 52 / 750);
}

.playlist-panel {
  position: absolute;
  left: 491px;
  top: 31px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 451px;
}

.playlist-logo {
  width: 90px;
  height: 45px;
  flex-shrink: 0;
  margin-bottom: 28px;
}

.playlist-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 451px;
  margin: 0 0 14px;
  padding: 0.08em 0 0;
  font-family: "Lorrach BETA", sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.playlist-title span {
  display: block;
  overflow: visible;
  background: var(--GOLD-GRAD, linear-gradient(256deg, #cead7c 13.83%, #fff2cb 68.88%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.playlist-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.playlist-text {
  width: 338px;
  margin: 0;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #48277c;
}

.playlist-btn {
  gap: 16px;
  min-width: 158px;
  border-radius: 30px;
  box-shadow: 0 2px 2px rgba(82, 72, 100, 0.5);
  text-decoration: none;
}

.playlist-note {
  display: block;
  width: 14px;
  height: 16px;
  flex-shrink: 0;
}

.playlist-hero {
  position: absolute;
  left: 224px;
  top: 100px;
  z-index: 4;
  width: 622px;
  height: 572px;
  overflow: visible;
  pointer-events: none;
}

.playlist-hero picture,
.playlist-hero__boy {
  display: block;
  width: 622px;
  height: 572px;
  max-width: none;
  object-fit: contain;
}

.playlist-ballerina {
  position: absolute;
  left: calc(100% * 225 / 622);
  top: calc(100% * 57 / 572);
  width: calc(100% * 124 / 622);
  height: calc(100% * 124 / 572);
  max-width: none;
  object-fit: contain;
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .page-playlist .fants-scene img {
    object-position: center top;
  }

  .page-playlist .star-item[data-playlist-star="1"] {
    left: calc(100% * 12 / 360);
    top: calc(100% * 558 / 671);
    width: calc(100vw * 39 / 360);
    height: calc(100vw * 39 / 360);
  }

  .page-playlist .star-item[data-playlist-star="2"] {
    left: calc(100% * 300 / 360);
    top: calc(100% * 267 / 671);
    width: calc(100vw * 34 / 360);
    height: calc(100vw * 34 / 360);
  }

  .page-playlist .star-item[data-playlist-star="3"] {
    left: calc(100% * 42 / 360);
    top: calc(100% * 288 / 671);
    width: calc(100vw * 20 / 360);
    height: calc(100vw * 20 / 360);
  }

  .page-playlist .star-item[data-playlist-star="4"] {
    left: calc(100% * 11 / 360);
    top: calc(100% * 317 / 671);
    width: calc(100vw * 40 / 360);
    height: calc(100vw * 40 / 360);
  }

  .playlist-panel {
    left: 50%;
    top: calc(max(20px, env(safe-area-inset-top)) + 30px);
    width: min(360px, 100%);
    transform: translateX(-50%);
  }

  .playlist-logo {
    width: 108px;
    height: 53px;
    margin-bottom: 20px;
  }

  .playlist-title {
    width: min(269px, 100%);
    font-size: 40px;
    margin-bottom: 8px;
  }

  .playlist-text {
    width: min(338px, calc(100% - 22px));
  }

  .playlist-hero {
    left: 50%;
    top: auto;
    bottom: 0;
    width: min(94.72vw, 52dvh);
    height: auto;
    aspect-ratio: 1;
    max-height: 52dvh;
    transform: translateX(-50%);
  }

  .playlist-hero picture,
  .playlist-hero__boy {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
  }

  .playlist-ballerina {
    left: calc(100% * 212 / 341);
    top: calc(100% * 33 / 341);
    width: calc(100% * 124 / 341);
    height: calc(100% * 124 / 341);
  }
}

.playlist-player {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  pointer-events: none;
}

.playlist-player.is-open {
  visibility: visible;
  pointer-events: auto;
}

body.is-popup-open .page-playlist .scene > .fants-back {
  visibility: hidden;
}

.playlist-player__dim {
  position: absolute;
  inset: 0;
  background: #472c7c;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.playlist-player.is-open .playlist-player__dim {
  opacity: 0.92;
}

.playlist-player__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 32px;
}

.playlist-player__back {
  left: 50%;
  top: 40px;
  z-index: 3;
  transform: translateX(-50%);
}

.playlist-player.is-open .playlist-player__back {
  display: flex;
}

.playlist-player__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.playlist-player__widget {
  width: min(614px, 100%);
  height: min(556px, 100%);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(32, 16, 64, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.playlist-player.is-open .playlist-player__widget {
  opacity: 1;
  transform: none;
}

.playlist-player__widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-player__widget.is-error {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.playlist-player__widget.is-error iframe {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.playlist-player__fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 16px;
  text-align: center;
}

.playlist-player__fallback[hidden] {
  display: none;
}

.playlist-player__fallback img {
  display: block;
  width: min(340px, 78%);
  height: auto;
}

.playlist-player__fallback p {
  margin: 0;
  max-width: 340px;
  font-family: "Congenial Cyrillic BETA", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .playlist-player__back {
    top: max(40px, calc(env(safe-area-inset-top) + 16px));
  }

  .playlist-player__frame {
    padding:
      calc(80px + max(16px, env(safe-area-inset-top)))
      max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlist-player__dim,
  .playlist-player__widget {
    transition: none;
  }
}
