/* Lennon Music V8.3.0 — illustrated section headers.
   Asset colors are intentional, while backgrounds and typography keep the V8.2.9 theme.
   All images are decorative (empty alt, hidden from assistive tech). */

/* Album and discovery headers: art sits on the physical left, copy remains RTL. */
.lm-archive-heading.lm-illustrated-archive {
  min-height: 244px !important;
  padding-left: clamp(190px, 24vw, 280px) !important;
}
.lm-illustrated-archive > div:first-child { position: relative; z-index: 1; min-width: 0; }
.lm-archive-illustration {
  display: block;
  position: absolute;
  left: clamp(4px, 1.7vw, 26px);
  top: 50%;
  width: clamp(175px, 21vw, 252px);
  max-width: 39%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.lm-archive-illustration img,
.lm-illustrated-playlists img,
.lm-illustrated-plus img,
.lm-plans-heading-art img,
.lm-illustrated-plan-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Community playlists: the original heading icon was hidden on phones.
   Show the custom illustration at every breakpoint instead. */
.lm-library-intro.lm-illustrated-library { min-height: 224px; }
.lm-library-intro > div:first-child { min-width: 0; position: relative; z-index: 1; }
.lm-library-intro-art.lm-illustrated-playlists {
  display: block;
  width: clamp(160px, 20vw, 235px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 clamp(160px, 20vw, 235px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

/* Membership promotion on the home page. */
.lm-membership-icon.lm-illustrated-plus {
  display: block;
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* Plans & pricing: main plan artwork and the distinct membership badge. */
.page-heading.plans-heading.lm-illustrated-plans {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 38px);
  min-height: 236px;
  padding: 26px clamp(22px, 3vw, 40px);
  margin: 0 0 26px;
  text-align: right;
  border: 1px solid #393c45;
  border-radius: 19px;
  background: linear-gradient(110deg, #23262e, #1d2027 74%, #191b21);
  overflow: hidden;
}
.lm-plans-heading-copy { min-width: 0; flex: 1 1 auto; }
.lm-plans-heading-copy h1 { margin-top: 10px; }
.lm-plans-heading-copy p { max-width: 570px; line-height: 2; }
.lm-plans-heading-art {
  width: clamp(155px, 22vw, 232px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 clamp(155px, 22vw, 232px);
  pointer-events: none;
}
.plan-icon.lm-illustrated-plan-badge {
  display: inline-flex;
  width: 78px;
  height: 78px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

@media (max-width: 760px) {
  .lm-archive-heading.lm-illustrated-archive {
    min-height: 205px !important;
    padding: 22px 18px 22px clamp(109px, 29vw, 154px) !important;
  }
  .lm-archive-illustration { left: 2px; width: clamp(105px, 27vw, 145px); max-width: 41%; }
  .lm-archive-heading.lm-illustrated-archive h1 { font-size: clamp(24px, 5.5vw, 30px) !important; }
  .lm-archive-heading.lm-illustrated-archive p { line-height: 2; }
  .lm-library-intro.lm-illustrated-library {
    position: relative;
    min-height: 184px;
    padding: 20px 18px 20px clamp(102px, 30vw, 138px);
  }
  .lm-library-intro-art.lm-illustrated-playlists {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(104px, 28vw, 138px);
    height: auto;
  }
  .lm-library-intro h1 { font-size: clamp(23px, 5.5vw, 32px); }
  .lm-library-intro p { font-size: 11px; line-height: 1.9; }
  .lm-membership-icon.lm-illustrated-plus {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
  .page-heading.plans-heading.lm-illustrated-plans {
    min-height: 188px;
    padding: 19px 17px;
    gap: 8px;
  }
  .lm-plans-heading-art { width: clamp(100px, 28vw, 144px); flex-basis: clamp(100px, 28vw, 144px); }
  .lm-plans-heading-copy h1 { font-size: clamp(23px, 5.5vw, 31px); }
  .lm-plans-heading-copy p { font-size: 11px; }
  .plan-icon.lm-illustrated-plan-badge { width: 66px; height: 66px; }
}
@media (max-width: 400px) {
  .lm-archive-heading.lm-illustrated-archive {
    padding-left: 98px !important;
    padding-right: 14px !important;
  }
  .lm-archive-illustration { width: 104px; }
  .lm-library-intro.lm-illustrated-library { padding-left: 92px; padding-right: 14px; }
  .lm-library-intro-art.lm-illustrated-playlists { width: 100px; }
  .lm-plans-heading-art { width: 94px; flex-basis: 94px; }
  .lm-plans-heading-copy h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lm-archive-illustration img,
  .lm-illustrated-playlists img,
  .lm-plans-heading-art img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .lm-illustrated-archive:hover .lm-archive-illustration img,
  .lm-library-intro:hover .lm-illustrated-playlists img,
  .lm-illustrated-plans:hover .lm-plans-heading-art img { transform: translateY(-3px) scale(1.025); }
}
