@layer sections {
  .playlist {
    padding: var(--space-5) var(--gutter) 6rem;
    background: var(--color-blue-600);
  }

  .playlist__stage {
    display: grid;
    justify-items: center;
    gap: var(--space-5);
    max-width: 88rem;
    margin-inline: auto;
  }

  .playlist__title {
    display: grid;
    place-items: center;
    width: min(100%, 36rem);
    min-height: 5.5rem;
    padding: 0.5rem 1.75rem;
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
  }

  .playlist__card {
    width: min(100%, 22rem);
    border-radius: var(--radius-lg);
    transition: transform var(--dur-base) var(--ease-out);
  }

  .playlist__card:hover {
    transform: translateY(-4px) rotate(-1deg);
  }

  .playlist__card img {
    width: 100%;
    height: auto;
  }

  @media (min-width: 1024px) {
    .playlist {
      padding: 0;
    }

    .playlist__stage {
      position: relative;
      display: block;
      /* Mesma base do --px (zoom 0.75 do desktop, ver hero.css) */
      width: calc(var(--px) * 1920);
      max-width: none;
      height: calc(var(--px) * 938);
      margin-inline: auto;
    }

    .playlist__title {
      position: absolute;
      top: calc(var(--px) * 121);
      left: 50%;
      width: calc(var(--px) * 884);
      height: calc(var(--px) * 130);
      min-height: 0;
      padding: 0;
      font-size: calc(var(--px) * 77.845);
      translate: -50% 0;
    }

    .playlist__card {
      position: absolute;
      top: calc(var(--px) * 340);
      left: calc(var(--px) * 1077);
      width: calc(var(--px) * 520);
    }
  }
}

@layer sections {
  /* Vídeo em fachada (thumb + play) */
  .playlist__video {
    width: min(100%, 36rem);
  }

  .video,
  .video__frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 716 / 423;
    border: 0;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--color-navy);
  }

  .video__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
  }

  .video:hover .video__thumb {
    transform: scale(1.04);
  }

  /* Botão de play: círculo azul grande no canto inferior direito, igual ao card do Spotify */
  .video__play {
    position: absolute;
    right: 4.5%;
    bottom: 7.5%;
    z-index: 2;
    width: 19.7%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-blue-700);
    transition: scale var(--dur-base) var(--ease-spring);
  }

  .video__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53.6%;
    width: 35%;
    height: 45%;
    /* Triângulo com pontas arredondadas, nas proporções do play do card do Spotify */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78 100'%3E%3Cpath d='M6 6 L6 94 L72 50 Z' fill='white' stroke='white' stroke-width='12' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    translate: -50% -50%;
  }

  .video:hover .video__play {
    scale: 1.1;
  }

  @media (min-width: 1024px) {
    .playlist__video {
      position: absolute;
      top: calc(var(--px) * 407);
      left: calc(var(--px) * 323);
      width: calc(var(--px) * 716);
    }

    .video,
    .video__frame {
      border-radius: calc(var(--px) * 33);
    }

  }
}
