/* Home top-liked beats */
.canivilo-home-hero-products {
  box-sizing: border-box;
  position: absolute;
  bottom: 1rem;
  left: max(20px, calc((100vw - 1180px) / 2));
  z-index: 18;
  width: min(760px, calc(100vw - 40px));
  padding: 0.62rem 0.72rem 0.72rem;
  border: 1px solid rgba(224, 101, 34, 0.34);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
}

.canivilo-home-hero-products__header,
.canivilo-home-hero-products__eyebrow {
  display: flex;
  align-items: center;
}

.canivilo-home-hero-products__header {
  margin-bottom: 0.48rem;
}

.canivilo-home-hero-products__eyebrow {
  gap: 0.34rem;
  margin: 0;
  color: #ffb27c;
  font: 700 0.64rem/1.1 'Poppins', sans-serif;
  letter-spacing: 0.14em;
}

.canivilo-home-hero-products__eyebrow svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: #e06522;
}

.canivilo-home-hero-products__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.54rem;
}

.canivilo-home-hero-products__rail {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}

.canivilo-home-hero-products__rail::-webkit-scrollbar {
  display: none;
}

.canivilo-home-hero-products .canivilo-beat-card {
  gap: 0.18rem;
  min-width: 0;
  padding: 0.32rem 0.32rem 0.42rem;
  border-radius: 10px;
  box-shadow: none;
  scroll-snap-align: start;
}

.canivilo-home-hero-products .canivilo-beat-card:hover {
  transform: none;
}

.canivilo-home-hero-products .canivilo-beat-card.is-liked {
  box-shadow:
    0 0 0 1px rgba(224, 101, 34, 0.14),
    0 0 14px rgba(224, 101, 34, 0.12);
}

.canivilo-home-hero-products .canivilo-beat-card__media {
  aspect-ratio: 1 / 0.66;
  border-radius: 7px;
}

.canivilo-home-hero-products .canivilo-beat-card__style-pill {
  top: 5px;
  left: 5px;
  min-height: 13px;
  padding: 0.08rem 0.22rem;
  border-radius: 5px;
  font-size: 0.35rem;
}

.canivilo-home-hero-products .canivilo-beat-card__price-badge {
  top: auto;
  right: 5px;
  bottom: 5px;
  min-width: 2.66rem;
  min-height: 15px;
  padding: 0.12rem 0.22rem;
  border-radius: 5px;
  font-size: 0.4rem;
}

.canivilo-home-hero-products .canivilo-beat-card__play-btn {
  width: 25px;
  height: 25px;
}

.canivilo-home-hero-products .canivilo-beat-card__play-btn svg {
  width: 0.82rem;
  height: 0.82rem;
}

.canivilo-home-hero-products .canivilo-beat-card__meta {
  margin-top: 0.16rem;
}

.canivilo-home-hero-products .canivilo-beat-card__title {
  margin-bottom: 0;
  font-size: 0.54rem;
}

.canivilo-home-hero-products .canivilo-beat-card__music-meta {
  margin-top: 0.12rem;
  font-size: 0.39rem;
  letter-spacing: 0.05em;
}

.canivilo-home-hero-products .canivilo-beat-card__footer {
  margin-top: 0.04rem;
}

.canivilo-home-hero-products .canivilo-beat-card__social {
  min-height: 21px;
}

.canivilo-home-hero-products .canivilo-beat-card__icon-button {
  width: 21px;
  height: 21px;
  border-radius: 6px;
}

.canivilo-home-hero-products .canivilo-beat-card__like-metric {
  min-height: 21px;
  font-size: 0.46rem;
}

.canivilo-home-hero-products .canivilo-beat-card__cart-btn {
  min-height: 21px;
  padding: 0.16rem 0.28rem;
  border-radius: 6px;
  font-size: 0.43rem;
}

.canivilo-home-hero-products .canivilo-beat-card__cart-btn svg {
  width: 11px;
  height: 11px;
}

.canivilo-home-hero-products__dots {
  display: none;
}

@media screen and (min-width: 700px) {
  .canivilo-home-hero-products {
    width: min(650px, calc(100vw - 40px));
    padding: 0.56rem 0.62rem 0.62rem;
  }

  .canivilo-home-hero-products__track {
    gap: 0.58rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card {
    box-sizing: border-box;
    gap: 0.28rem;
    padding: 0.42rem 0.42rem 0.56rem;
    border-radius: 13px;
    box-shadow: 0 11px 26px rgba(0, 0, 0, 0.3);
  }

  .canivilo-home-hero-products .canivilo-beat-card.is-liked {
    box-shadow:
      0 0 0 1px rgba(224, 101, 34, 0.16),
      0 0 16px rgba(224, 101, 34, 0.12),
      0 11px 26px rgba(0, 0, 0, 0.3);
  }

  .canivilo-home-hero-products .canivilo-beat-card__media {
    border-radius: 10px;
  }

  .canivilo-home-hero-products .canivilo-beat-card__style-pill {
    top: 6px;
    left: 6px;
    min-height: 14px;
    padding: 0.09rem 0.24rem;
    border-radius: 6px;
    font-size: 0.38rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__price-badge {
    top: auto;
    right: 6px;
    bottom: 6px;
    min-width: 2.84rem;
    min-height: 16px;
    padding: 0.14rem 0.24rem;
    border-radius: 7px;
    font-size: 0.43rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__play-btn {
    width: 30px;
    height: 30px;
  }

  .canivilo-home-hero-products .canivilo-beat-card__play-btn svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__meta {
    margin-top: 0.2rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__title {
    margin-bottom: 0;
    font-size: 0.57rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__music-meta {
    margin-top: 0.13rem;
    font-size: 0.4rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__footer {
    margin-top: 0.06rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__social {
    min-height: 23px;
  }

  .canivilo-home-hero-products .canivilo-beat-card__icon-button {
    width: 23px;
    height: 23px;
    border-radius: 7px;
  }

  .canivilo-home-hero-products .canivilo-beat-card__like-metric {
    min-height: 23px;
    font-size: 0.48rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__cart-btn {
    min-height: 23px;
    padding: 0.18rem 0.3rem;
    border-radius: 7px;
    font-size: 0.44rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__cart-btn svg {
    width: 12px;
    height: 12px;
  }
}

.canivilo-home-featured {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(3.2rem, 6vw, 4.8rem) max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(224, 101, 34, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(224, 101, 34, 0.05), transparent 42%),
    #070707;
  color: #ffffff;
}

.canivilo-home-featured__shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.canivilo-home-featured__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
}

.canivilo-home-featured__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.62rem;
  color: #ffb27c;
  font: 700 0.74rem/1.2 'Poppins', sans-serif;
  letter-spacing: 0.14em;
}

.canivilo-home-featured__eyebrow svg {
  width: 0.86rem;
  height: 0.86rem;
  flex: 0 0 auto;
  fill: #e06522;
}

.canivilo-home-featured__title {
  max-width: 38rem;
  margin: 0;
  color: #ffffff;
  font: 600 clamp(30px, 2.8vw, 36px)/1.04 'Poppins', sans-serif;
}

.canivilo-home-featured__title span {
  color: #e06522;
}

.canivilo-home-featured__catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid rgba(224, 101, 34, 0.72);
  color: rgba(255, 255, 255, 0.9);
  font: 600 0.75rem/1.1 'Poppins', sans-serif;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.canivilo-home-featured__catalog-link:hover {
  border-color: #ffb27c;
  color: #ffb27c;
}

.canivilo-home-featured__catalog-link span {
  font-size: 1rem;
}

.canivilo-home-featured__rail {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
}

.canivilo-home-featured__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.72rem;
}

.canivilo-home-featured .canivilo-beat-card {
  min-width: 0;
}

.canivilo-home-featured .canivilo-beat-card__cart-btn svg {
  width: 13px;
  height: 13px;
}

.canivilo-home-featured__dots {
  display: none;
}

.canivilo-home-player-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(224, 101, 34, 0.58), rgba(255, 178, 124, 0.4));
  pointer-events: none;
  transition: width 120ms linear;
}

.canivilo-player-page .canivilo-player-bar__waveform {
  cursor: pointer;
}

@media screen and (max-width: 699px) {
  .canivilo-home-hero-products {
    position: static;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    overflow: hidden;
    padding: 0.42rem 20px 0.82rem;
    border-width: 1px 0 0;
    border-radius: 0;
    background: #050505;
    backdrop-filter: none;
  }

  .canivilo-home-hero-products__header {
    margin-bottom: 0.5rem;
  }

  .canivilo-home-hero-products__rail {
    width: calc(100% + 20px);
    margin-right: -20px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .canivilo-home-hero-products__rail::-webkit-scrollbar {
    display: none;
  }

  .canivilo-home-hero-products__track {
    display: flex;
    width: max-content;
    gap: 0.48rem;
    padding-right: 20px;
  }

  .canivilo-home-hero-products .canivilo-beat-card {
    width: min(42vw, 156px);
    flex: 0 0 min(42vw, 156px);
    scroll-snap-align: start;
  }

  .canivilo-home-hero-products .canivilo-beat-card__media {
    aspect-ratio: 1 / 0.56;
  }

  .canivilo-home-hero-products .canivilo-beat-card__title {
    font-size: 0.58rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__music-meta {
    font-size: 0.39rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__price-badge {
    min-width: 2.8rem;
  }

  .canivilo-home-hero-products .canivilo-beat-card__cart-btn span {
    display: none;
  }

  .canivilo-home-hero-products__dots {
    display: flex;
    gap: 0.28rem;
    margin-top: 0.48rem;
  }

  .canivilo-home-hero-products__dot {
    width: 0.34rem;
    height: 0.34rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
  }

  .canivilo-home-hero-products__dot[data-active='true'] {
    background: #e06522;
  }

  .canivilo-home-featured {
    padding: 3.2rem 20px 2.8rem;
  }

  .canivilo-home-featured__header {
    display: grid;
    justify-items: start;
    gap: 1rem;
  }

  .canivilo-home-featured__title {
    max-width: 19rem;
    font-size: 1.8rem;
  }

  .canivilo-home-featured__rail {
    width: calc(100% + 20px);
    margin-top: 1.65rem;
    margin-right: -20px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .canivilo-home-featured__rail::-webkit-scrollbar {
    display: none;
  }

  .canivilo-home-featured__track {
    display: flex;
    width: max-content;
    gap: 0.72rem;
    padding-right: 20px;
  }

  .canivilo-home-featured .canivilo-beat-card {
    width: min(76vw, 270px);
    flex: 0 0 min(76vw, 270px);
    scroll-snap-align: start;
  }

  .canivilo-home-featured__dots {
    display: flex;
    gap: 0.34rem;
    margin-top: 0.95rem;
  }

  .canivilo-home-featured__dot {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
  }

  .canivilo-home-featured__dot[data-active='true'] {
    background: #e06522;
  }
}
