/* ==========================================================================
   Club Copy — iTunes Cover Flow + jewel-case sleeves
   Shared by homepage catalogue, Library Covers, and News (news.css aliases).
   Y2K Cover Flow, modern chrome, wet-floor glass — not costume neon.
   ========================================================================== */

.coverflow,
.album-flow {
  --flow-cover: 280px;
  position: relative;
  outline: none;
  padding: 0 0 8px;
}
.coverflow:focus-visible,
.album-flow:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(200,214,230,.55);
}

.coverflow-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
}
.coverflow-nav {
  width: 44px;
  height: 44px;
  margin: 0 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(230,236,244,.16) 42%, rgba(176,190,208,.12) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 10px 22px rgba(0,0,0,.28);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: transform .2s var(--ease, cubic-bezier(.22,1,.36,1)), opacity .2s ease, border-color .2s ease;
  z-index: 4;
}
.coverflow-nav svg { width: 16px; height: 16px; fill: currentColor; }
.coverflow-nav:disabled { opacity: .28; pointer-events: none; }
@media (hover:hover) {
  .coverflow-nav:hover {
    border-color: rgba(255,255,255,.55);
    transform: translateY(-1px);
  }
}
.coverflow-nav:active { transform: translateY(1px); }
@media (max-width: 699px) {
  .coverflow-chrome { grid-template-columns: 1fr; }
  .coverflow-nav { display: none; }
}

.coverflow-stage {
  position: relative;
  height: calc(var(--flow-cover) * 1.52);
  perspective: 1180px;
  perspective-origin: 50% 40%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  background:
    radial-gradient(ellipse 58% 22% at 50% 72%, rgba(200,214,230,.12), transparent 70%),
    linear-gradient(180deg, transparent 52%, rgba(8,8,10,.62) 100%);
}
.album-flow.is-dragging .coverflow-stage,
.coverflow.is-dragging .coverflow-stage { cursor: grabbing; }
.coverflow-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 28%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 68%);
  filter: blur(8px);
}

.coverflow-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.album-flow:not(.is-ready) .coverflow-track,
.coverflow:not(.is-ready) .coverflow-track {
  position: relative;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px max(24px, var(--safe-l, 0px)) 18px;
  -webkit-overflow-scrolling: touch;
}
.album-flow:not(.is-ready) .coverflow-stage,
.coverflow:not(.is-ready) .coverflow-stage {
  height: auto;
  overflow: visible;
  perspective: none;
}
.album-flow:not(.is-ready) .flow-reflect { display: none; }

.album-flow.is-ready .coverflow-track,
.coverflow.is-ready .coverflow-track {
  display: block;
  width: auto;
  max-width: none;
  padding: 0;
  gap: 0;
}

.album-flow.is-ready .flow-sleeve,
.coverflow.is-ready .flow-sleeve {
  position: absolute;
  top: 8%;
  left: 50%;
  width: var(--flow-cover);
  margin-left: calc(var(--flow-cover) / -2);
  transform:
    translate3d(var(--fx, 0px), var(--fy, 0px), var(--fz, 0px))
    rotateY(var(--fr, 0deg))
    scale(var(--fs, 1));
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition:
    transform .72s cubic-bezier(.22, 1, .36, 1),
    opacity .5s var(--ease, cubic-bezier(.22,1,.36,1));
  will-change: transform, opacity;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}
.album-flow.is-snap .flow-sleeve,
.album-flow.is-dragging .flow-sleeve {
  transition-duration: 0s;
}
.album-flow.is-ready .flow-sleeve.is-side { cursor: pointer; }

.flow-art {
  position: relative;
  aspect-ratio: 1;
  overflow: visible;
  background: #0a0a0c;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 0 1px rgba(200,214,230,.22),
    0 22px 48px rgba(0,0,0,.5);
}
.album-flow.is-ready .flow-sleeve.is-center .flow-art {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 0 0 1px rgba(220,230,242,.4),
    0 28px 64px rgba(0,0,0,.58),
    0 0 36px rgba(186,204,224,.16);
}
.flow-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.flow-reflect {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 42%;
  overflow: hidden;
  pointer-events: none;
  transform: scaleY(-1);
  transform-origin: 50% 0;
  opacity: .48;
  mask-image: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 78%);
  filter: blur(.35px) brightness(.72);
}
.flow-reflect img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.flow-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.58);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(230,236,244,.92) 42%, rgba(176,190,208,.86) 100%);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(80,90,110,.16),
    0 0 0 1px rgba(0,0,0,.25),
    0 10px 24px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}
.flow-play svg { width: 15px; height: 15px; fill: currentColor; margin-left: 2px; }
.flow-play .fp-pause { display: none; margin-left: 0; }
.flow-sleeve.is-now-playing.is-audible .flow-play .fp-play { display: none; }
.flow-sleeve.is-now-playing.is-audible .flow-play .fp-pause { display: block; }
.album-flow.is-ready .flow-sleeve.is-center .flow-play,
.flow-sleeve.is-now-playing .flow-play { opacity: 1; transform: none; }
@media (hover:hover) {
  .flow-sleeve:hover .flow-play { opacity: 1; transform: none; }
}
@media (hover:none) { .flow-play { opacity: 1; transform: none; } }

.flow-air {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 4;
  display: none;
}
.flow-sleeve.is-now-playing .flow-air,
.flow-sleeve.is-up-next .flow-air { display: inline-flex; }

.coverflow-caption {
  text-align: center;
  padding: 4px max(24px, var(--safe-l, 0px)) 0;
  min-height: 5.6em;
}
.coverflow-kicker {
  font-family: var(--callsign, 'Oswald', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(200,214,230,.55);
  margin: 0 0 8px;
}
.coverflow-title {
  margin: 0 0 4px;
  font-family: var(--display, 'Space Grotesk', sans-serif);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #fff;
}
.coverflow-artist {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.58);
}
.coverflow-hint {
  margin: 10px 0 0;
  font-family: var(--callsign, 'Oswald', sans-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(200,214,230,.32);
}
@media (max-width: 699px) { .coverflow-hint { display: none; } }

/* Now Playing inspector — iTunes 7 split under Cover Flow ---------------- */
.album-inspect {
  width: min(920px, calc(100% - 32px));
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px 24px;
  padding: 18px 20px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(12,14,18,.72);
  border: 1px solid rgba(200,214,230,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 18px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  color: #fff;
}
.album-inspect[hidden] { display: none !important; }
@media (min-width: 800px) {
  .album-inspect { grid-template-columns: 148px minmax(0, 1.1fr) minmax(0, .9fr); padding: 22px 24px; }
}
.album-inspect__art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: #111;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 0 0 1px rgba(200,214,230,.22),
    0 12px 28px rgba(0,0,0,.4);
}
.album-inspect__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-inspect__copy { min-width: 0; }
.album-inspect__cat {
  font-family: var(--callsign, 'Oswald', sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(200,214,230,.55);
  margin: 0 0 8px;
}
.album-inspect__title {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.album-inspect__title a { color: inherit; text-decoration: none; }
@media (hover:hover) {
  .album-inspect__title a:hover { opacity: .72; }
}
.album-inspect__artist {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.album-inspect__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.album-inspect__tracks {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(180,190,205,.7) transparent;
}
@media (max-width: 799px) {
  .album-inspect__tracks { grid-column: 1 / -1; max-height: 180px; }
}
.inspect-track {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: rgba(255,255,255,.78);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.inspect-track:hover,
.inspect-track.is-now {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.inspect-track-n {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(200,214,230,.45);
  font-variant-numeric: tabular-nums;
}
.inspect-track-t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspect-track-d {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: rgba(255,255,255,.38);
}
.inspect-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.album-inspect .cat-add,
.album-inspect .cat-add--link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.28);
  background: none;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.album-inspect .cat-add.is-added,
.album-inspect .cat-add:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

@media (prefers-reduced-motion: reduce) {
  .album-flow.is-ready .flow-sleeve { transition: none; }
  .flow-reflect { display: none; }
  .coverflow-stage { height: calc(var(--flow-cover) * 1.08); background: none; }
}

/* Jewel case — physical plastic sleeve ------------------------------------ */
.jewel {
  position: relative;
  isolation: isolate;
}
.jewel::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5%;
  bottom: 5%;
  width: 6px;
  z-index: 2;
  pointer-events: none;
  border-radius: 1px 0 0 1px;
  background:
    linear-gradient(90deg,
      rgba(20,22,28,.55) 0%,
      rgba(210,220,232,.42) 38%,
      rgba(255,255,255,.18) 52%,
      rgba(12,14,18,.35) 100%);
  box-shadow: 1px 0 0 rgba(255,255,255,.12);
}
.jewel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(118deg,
    rgba(255,255,255,.26) 0%,
    transparent 26%,
    transparent 58%,
    rgba(255,255,255,.08) 100%);
  mix-blend-mode: soft-light;
}
@media (max-width: 560px) {
  .jewel::before { display: none; }
}

.album-flow.is-ready + .band .wall-grid--fallback {
  display: none;
}

.cat-cover.jewel {
  overflow: visible;
  margin-left: 6px;
}
