/* ISAICHILLOUT final polish v6.1.0
   Focused fixes only:
   1) square hosted-audio artwork on desktop and mobile,
   2) one missing square Night Hope cover on compact release cards,
   3) a slightly stronger mobile hero focal point.
   No desktop grids, headings, buttons, or existing card markup are redesigned. */

/* Keep every hosted-player thumbnail genuinely square. The previous grid row
   stretched the cover vertically to the waveform/control column. */
.ich58-player .ich58-layout {
  align-items: start !important;
}

.ich58-player .ich58-art {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: start !important;
}

.ich58-player .ich58-art img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Night Hope: only cards tagged by v6.1 receive this missing artwork slot. */
.ich61-night-card {
  position: relative !important;
  padding-left: calc(var(--ich61-original-padding-left, 24px) + 122px) !important;
  min-height: 142px !important;
}

.ich61-night-art {
  position: absolute !important;
  z-index: 1 !important;
  left: var(--ich61-original-padding-left, 24px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  min-height: 100px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background: #09090d !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.28) !important;
}

.ich61-night-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* Mobile artwork sizes remain square and the Night Hope card stacks cleanly. */
@media (max-width: 700px) {
  .ich58-player .ich58-art {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    max-width: 76px !important;
    max-height: 76px !important;
  }

  .ich61-night-card {
    padding-left: var(--ich61-original-padding-left, 20px) !important;
    padding-top: calc(var(--ich61-original-padding-top, 20px) + 92px) !important;
    min-height: 0 !important;
  }

  .ich61-night-art {
    left: var(--ich61-original-padding-left, 20px) !important;
    top: var(--ich61-original-padding-top, 20px) !important;
    transform: none !important;
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
  }
}

@media (max-width: 430px) {
  .ich58-player .ich58-art {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
  }
}

/* Move the wide hero image a little farther left on narrow screens so more of
   the portrait enters the viewport. This supersedes v6.0's 58% focal point. */
@media (max-width: 780px) {
  .hero,
  .page-hero,
  .site-hero,
  .home-hero,
  .music-hero,
  .service-hero,
  .masthead,
  section[class*="hero" i],
  [id^="hero" i],
  [id$="hero" i],
  [class^="hero-"],
  [class*=" hero-"],
  [class$="-hero"] {
    background-position: 68% center !important;
  }

  .hero > img,
  .page-hero > img,
  .site-hero > img,
  .home-hero > img,
  .music-hero > img,
  .service-hero > img,
  .masthead > img,
  section[class*="hero" i] > img,
  .hero img.hero-image,
  .hero img[class*="background" i],
  .hero img[class*="backdrop" i],
  .hero img[class*="portrait" i],
  .page-hero img.hero-image,
  .home-hero img.hero-image,
  .music-hero img.hero-image,
  .service-hero img.hero-image {
    object-position: 68% center !important;
  }
}
