/* ─────────────────────────────────────────────────────────────
   Music landing page — layout & component styles
   ───────────────────────────────────────────────────────────── */

/* Root layout */
.layout {
  flex: 1;
  display: grid;
  width: 100%;
  min-height: 100svh;
  position: relative;
}

/* SPLIT — wide viewports: cover left, info right */
.layout-split {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0;
  padding: clamp(24px, 3.5vw, 56px);
}

/* STACK — narrow/tall viewports: cover top, info below */
.layout-stack {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: clamp(20px, 3svh, 36px);
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 32px);
  padding-top: clamp(24px, 4svh, 44px);
  padding-bottom: clamp(96px, 14svh, 140px); /* room for fixed scroll-hint */
}

.pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.layout-split .pane-art {
  align-items: center;
  justify-content: flex-start;
  padding-right: clamp(24px, 3vw, 48px);
  padding-top: clamp(0px, 1vh, 8px);
  position: relative;
}
.layout-split .pane-info {
  justify-content: flex-start;
  padding-left: clamp(24px, 3vw, 48px);
  padding-top: clamp(0px, 1vh, 8px);
  border-left: 1px solid var(--line);
}
.layout-stack .pane-art {
  align-items: center;
}
.layout-stack .pane-info {
  align-items: stretch;
}

.info-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4svh, 32px);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.layout-split .info-inner { margin: 0; max-width: 560px; }

/* ─────────────────────────────────────────────────────────────
   Cover art
   ───────────────────────────────────────────────────────────── */
.cover-wrap {
  position: relative;
  width: var(--cover-size, min(80svh, 56vw));
  aspect-ratio: 1 / 1;
  max-width: 100%;
}
.cover-wrap image-slot {
  width: 100%;
  height: 100%;
  --image-slot-bg: #16181f;
  --image-slot-border: var(--line);
  --image-slot-placeholder-color: var(--dim);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 8px 24px -8px rgba(0,0,0,0.6);
}
.cover-frame {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  pointer-events: none;
}
/* Corner ticks */
.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  opacity: 0.85;
}
.cover-frame::before { top: -6px;    left: -6px;    border-right: none; border-bottom: none; }
.cover-frame::after  { bottom: -6px; right: -6px;   border-left: none;  border-top: none; }

.art-stamp {
  position: absolute;
  bottom: clamp(8px, 1.5vh, 24px);
  right: clamp(0px, 1vw, 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
}
.layout-stack .art-stamp { display: none; }

/* ─────────────────────────────────────────────────────────────
   Context banner
   ───────────────────────────────────────────────────────────── */
.ctx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ctx-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(0.75); opacity: 0.7; }
}
.ctx-tag { color: var(--fg); font-weight: 500; }
.ctx-sep { color: var(--dim); }
.ctx-msg { color: var(--muted); text-transform: none; letter-spacing: 0.04em; font-family: var(--body); font-size: 12px; }

/* ─────────────────────────────────────────────────────────────
   Title block
   ───────────────────────────────────────────────────────────── */
.title-block { display: flex; flex-direction: column; gap: 14px; }

.meta-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.meta-row .dot { color: var(--line-2); }

.title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, 8.2vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
  /* slight optical compression — Archivo Black is wide */
  font-stretch: 100%;
}
.layout-split .title { font-size: clamp(48px, 5.4vw, 92px); }

/* Parenthetical modifier in the title — e.g. "Midnight Bloom (Konka Remix)" */
.title-mod {
  font-size: calc(1em * var(--mod-size, 0.62));
  opacity: var(--mod-dim, 0.55);
  letter-spacing: -0.005em;
  /* keep the modifier on its own visual line when there's room */
  display: inline-block;
}

.artist-row {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--display);
}
.artist-row .by {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
  position: relative;
  top: -2px;
}
.artist-row .artist {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: uppercase;
}
/* Featured/with/ft. modifier on artist — same dimming as title-mod */
.artist-mod {
  font-size: calc(1em * var(--mod-size, 0.62));
  opacity: var(--mod-dim, 0.55);
  letter-spacing: 0.03em;
  display: inline-block;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 4px;
  flex-wrap: wrap;
}
.tag-bar {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
}
.tag-left { color: var(--fg); }
.tag-sep  { color: var(--line-2); }
.tag-right { color: var(--muted); }
.tag-right.is-out {
  color: var(--accent);
  font-weight: 500;
  position: relative;
  padding-left: 14px;
}
.tag-right.is-out::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────────
   Service list
   ───────────────────────────────────────────────────────────── */
.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 32px 26px 1fr auto 22px;
  align-items: center;
  gap: 14px;
  padding: 16px 4px 16px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  transition: padding-left 200ms cubic-bezier(.2,.7,.2,1),
              background 200ms ease, color 200ms ease;
  overflow: hidden;
}
.svc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.svc:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%);
}
.svc:hover::before { transform: scaleY(1); }
.svc:hover .svc-arrow { transform: translateX(4px); color: var(--accent); }
.svc:hover .svc-name  { color: var(--accent); }

.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
}
.svc-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--fg);
}
.svc-icon svg { width: 100%; height: 100%; }

.svc-name {
  font-family: var(--display);
  font-size: clamp(18px, 2.1vw, 22px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 200ms ease;
}
.svc-spacer { display: none; }

.svc-action {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.svc-arrow {
  color: var(--muted);
  display: grid; place-items: center;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), color 200ms ease;
}

/* Primary CTA — first row, accent-filled */
.svc.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-color: transparent;
  margin-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
}
.svc.primary::before { display: none; }
.svc.primary .svc-num,
.svc.primary .svc-action,
.svc.primary .svc-arrow {
  color: color-mix(in oklab, var(--accent-ink) 75%, transparent);
}
.svc.primary .svc-name { color: var(--accent-ink); }
.svc.primary .svc-icon { color: var(--accent-ink); }
.svc.primary:hover {
  padding-left: 16px;
  background: var(--accent);
  filter: brightness(1.05);
}
.svc.primary:hover .svc-arrow { transform: translateX(4px); color: var(--accent-ink); }
.svc.primary:hover .svc-name  { color: var(--accent-ink); }

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; transition: color 150ms ease; }
.foot a:hover { color: var(--fg); }
.foot-left { display: flex; align-items: center; gap: 10px; }
.foot-right { display: flex; align-items: center; gap: 10px; }
.foot-mark { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ─────────────────────────────────────────────────────────────
   Section headers within the service list
   ───────────────────────────────────────────────────────────── */
.svc-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--dim);
  text-transform: uppercase;
}
.svc-section-head:first-child { padding-top: 4px; }
.sh-bar {
  display: inline-block;
  width: 14px; height: 2px;
  background: var(--line-2);
}
.svc-section-primary .sh-bar { background: var(--accent); }
.svc-section-stream  .sh-bar,
.svc-section-store   .sh-bar { background: var(--accent-2); }

.sh-label { color: var(--muted); }
.svc-section-primary .sh-label { color: var(--accent); letter-spacing: 0.3em; }
.svc-section-stream  .sh-label,
.svc-section-store   .sh-label { color: var(--accent-2); letter-spacing: 0.3em; }

.sh-count {
  margin-left: auto;
  color: var(--dim);
  font-size: 10px;
}

/* Stronger visual break before the store group */
.svc-section-store {
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 24px;
}

/* ─────────────────────────────────────────────────────────────
   Palette readout in Tweaks panel
   ───────────────────────────────────────────────────────────── */
.pal-readout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
}
.pal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.pal-swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
}
.pal-label { width: 70px; color: var(--dim); }
.pal-hex {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pal-tag {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--dim);
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pal-empty {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
  font-style: normal;
}

/* ─────────────────────────────────────────────────────────────
   Secondary-accent usage
   ───────────────────────────────────────────────────────────── */
.cover-frame::before { border-color: var(--accent); }
.cover-frame::after  { border-color: var(--accent-2); }

.svc.primary { box-shadow: inset 0 -3px 0 0 color-mix(in oklab, var(--accent-2) 40%, transparent); }

/* ─────────────────────────────────────────────────────────────
   Scroll hint (stack mode only) — fixed to bottom of viewport
   with a backdrop blur so it stays legible over any content.
   ───────────────────────────────────────────────────────────── */
.scroll-hint {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 6;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 28px 16px calc(18px + env(safe-area-inset-bottom));
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
  transition: opacity 360ms ease, transform 360ms ease;
}
/* Gradient + blur backdrop so the hint never clashes with content */
.scroll-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 12, 16, 0) 0%,
    rgba(11, 12, 16, 0.45) 55%,
    rgba(11, 12, 16, 0.78) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.scroll-hint .sh-text {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  animation: scroll-bob 2s cubic-bezier(.6,0,.4,1) infinite;
}
.scroll-hint svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.6;
  color: var(--accent);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
  animation: scroll-bob 2s cubic-bezier(.6,0,.4,1) infinite;
  animation-delay: 0.12s;
}
.scroll-hint.gone {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
@keyframes scroll-bob {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(6px); }
}
@media (max-width: 480px) {
  .layout-stack { padding: 24px 18px 32px; }
  .info-inner { gap: 22px; }
  .title { font-size: clamp(38px, 12vw, 56px); }
  .svc { grid-template-columns: 28px 22px 1fr auto 18px; gap: 10px; }
  .svc-name { font-size: 17px; }
  .ctx { font-size: 10px; padding: 7px 12px; }
  .ctx-msg { font-size: 11px; }
}

/* Very wide split — keep info column from getting too sparse */
@media (min-width: 1600px) {
  .layout-split { padding: 64px 80px; }
  .info-inner { max-width: 620px; }
}
