/* =========================================================
   AFROTUNE — HOME PREMIUM V4
========================================================= */

#afrotune-home-premium {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 46px;
  box-sizing: border-box;
  animation: afhFade .45s ease;
}

@keyframes afhFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.afh-wrap {
  padding: 22px clamp(16px, 3vw, 38px) 10px;
}

.afh-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(142, 86, 255, .32),
      transparent 34%
    ),
    radial-gradient(
      circle at 20% 10%,
      rgba(0, 217, 180, .20),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #12151f,
      #080a10 68%
    );
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.afh-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  filter: saturate(1.1);
}

.afh-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4,6,11,.96) 0%,
      rgba(4,6,11,.76) 43%,
      rgba(4,6,11,.12) 100%
    ),
    linear-gradient(
      0deg,
      rgba(4,6,11,.95),
      transparent 60%
    );
}

.afh-hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 92%);
  padding: clamp(28px, 5vw, 64px);
}

.afh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.afh-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.045em;
  color: #fff;
}

.afh-hero-artist {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: rgba(255,255,255,.84);
}

.afh-hero-text {
  max-width: 590px;
  margin: 0 0 24px;
  line-height: 1.6;
  color: rgba(255,255,255,.66);
}

.afh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.afh-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.afh-btn:hover {
  transform: translateY(-2px);
}

.afh-btn-primary {
  background: #fff;
  color: #080a0e;
  box-shadow: 0 9px 28px rgba(255,255,255,.14);
}

.afh-btn-soft {
  background: rgba(255,255,255,.11);
  color: #fff;
  border: 1px solid rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
}

.afh-section {
  margin-top: 40px;
}

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

.afh-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

.afh-heading p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}

.afh-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  gap: 16px;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}

.afh-track-card,
.afh-playlist-card,
.afh-artist-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.065),
      rgba(255,255,255,.025)
    );
  border: 1px solid rgba(255,255,255,.07);
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease;
}

.afh-track-card:hover,
.afh-playlist-card:hover,
.afh-artist-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
}

.afh-cover-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255,255,255,.12),
      transparent 30%
    ),
    #11151e;
}

.afh-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.afh-cover-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  opacity: .55;
}

.afh-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #080a0d;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(7px);
  transition: .2s ease;
  box-shadow: 0 9px 25px rgba(0,0,0,.35);
}

.afh-track-card:hover .afh-play,
.afh-playlist-card:hover .afh-play {
  opacity: 1;
  transform: translateY(0);
}

.afh-card-title {
  margin: 0;
  font-size: .96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afh-card-sub {
  margin: 6px 0 0;
  font-size: .81rem;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afh-playlist-card {
  cursor: pointer;
}

.afh-playlist-card .afh-cover-wrap {
  aspect-ratio: 1 / 1;
}

.afh-label {
  position: absolute;
  z-index: 2;
  top: 21px;
  left: 21px;
  padding: 5px 9px;
  font-size: .68rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(5,7,10,.74);
  backdrop-filter: blur(9px);
}

.afh-artists {
  grid-auto-columns: minmax(150px, 185px);
}

.afh-artist-card {
  text-align: center;
  cursor: pointer;
}

.afh-artist-photo {
  aspect-ratio: 1;
  width: 100%;
  margin-bottom: 13px;
  border-radius: 50%;
  overflow: hidden;
  background: #11151e;
  box-shadow: 0 15px 32px rgba(0,0,0,.25);
}

.afh-artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.afh-universes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.afh-universe {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.045);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  transition: .2s ease;
}

.afh-universe:hover {
  background: rgba(255,255,255,.11);
  transform: translateY(-2px);
}

.afh-pro {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  margin-top: 45px;
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(152,80,255,.20),
      transparent 38%
    ),
    radial-gradient(
      circle at 0 100%,
      rgba(0,210,175,.12),
      transparent 38%
    ),
    rgba(255,255,255,.035);
}

.afh-pro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.afh-pro p {
  color: rgba(255,255,255,.58);
  line-height: 1.65;
  max-width: 750px;
}

.afh-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(13px);
}

.afh-modal.open {
  display: flex;
}

.afh-modal-panel {
  width: min(920px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 25px;
  background: #11141c;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.afh-modal-head {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  padding: 22px;
  align-items: center;
}

.afh-modal-head img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 17px;
  background: #090b10;
}

.afh-modal-head h2 {
  margin: 0 0 7px;
}

.afh-modal-head p {
  color: rgba(255,255,255,.58);
  line-height: 1.5;
}

.afh-modal-close {
  align-self: start;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.afh-modal-list {
  padding: 0 22px 25px;
}

.afh-modal-track {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 11px;
  border-radius: 13px;
}

.afh-modal-track:hover {
  background: rgba(255,255,255,.045);
}

.afh-modal-number {
  opacity: .45;
  text-align: center;
}

.afh-modal-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
}

.afh-hidden {
  display: none !important;
}

@media (max-width: 700px) {
  .afh-wrap {
    padding-left: 13px;
    padding-right: 13px;
  }

  .afh-hero {
    min-height: 430px;
    border-radius: 22px;
  }

  .afh-hero-content {
    padding: 25px 22px;
  }

  .afh-hero-shade {
    background:
      linear-gradient(
        0deg,
        rgba(4,6,11,.98) 5%,
        rgba(4,6,11,.62) 70%,
        rgba(4,6,11,.18)
      );
  }

  .afh-scroll {
    grid-auto-columns: 44vw;
  }

  .afh-artists {
    grid-auto-columns: 36vw;
  }

  .afh-play {
    opacity: 1;
    transform: none;
  }

  .afh-modal-head {
    grid-template-columns: 90px 1fr auto;
    gap: 12px;
  }

  .afh-modal-head img {
    width: 90px;
    height: 90px;
  }
}
