/* ==========================================================================
   Release page (/release/{id}). Cover in a rounded frame with a soft glow and the catalogue number as a badge,
   facts, tracklist, line up and notes in one column on the right.
   Uses base.css tokens only.
   ========================================================================== */

.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; } /* 44px touch target */
.breadcrumbs { margin-bottom: var(--s-2); }
.breadcrumbs [aria-current="page"] { overflow-wrap: anywhere; }

.release { display: grid; gap: var(--s-6); align-items: start; }

/* ---- Sleeve ---------------------------------------------------------- */
.release__media { min-width: 0; max-width: 30rem; isolation: isolate; }
.release__sleeve {
  position: relative; padding: var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius-card) + 4px);
  box-shadow: var(--shadow-2), 0 30px 80px -40px var(--accent);
}
.release__sleeve::before {
  content: ""; position: absolute; inset: -12% -8% auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(20px);
}
.release__catno {
  position: absolute; left: calc(var(--s-3) + .65rem); top: calc(var(--s-3) + .65rem);
  padding: .25rem .7rem; border-radius: 99px; max-width: calc(100% - 3rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(8px);
  color: var(--text); font-size: .75rem; font-weight: 600; letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.release__cover { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); border-radius: var(--radius-card); }
.release__cover--empty {
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface-2)) 0%, var(--surface-2) 60%);
}
.release__cover--empty img { width: 40%; height: auto; opacity: .28; }

/* ---- Head ------------------------------------------------------------ */
.release__main { min-width: 0; display: grid; gap: var(--s-6); }
.release__head { display: grid; gap: var(--s-3); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); position: relative; }
.release__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 35%, transparent) 30%, transparent 75%); }
.release__artist { font-family: var(--font-brand); font-weight: var(--fw-display); font-synthesis: none; font-size: var(--fs-lg); letter-spacing: .04em; color: var(--accent); overflow-wrap: anywhere; }
.release__title {
  font-size: var(--fs-2xl); line-height: 1; overflow-wrap: anywhere;
}

/* Album title is data: Latin letters in blackletter, Cyrillic letters in the Cyrillic display face (per glyph) */
.release__title { font-family: var(--font-brand); }

/* ---- Facts ----------------------------------------------------------- */
.release__facts { max-width: 40rem; column-gap: 0; }
.release__facts dt { padding-right: var(--s-5); }
.release__price { color: var(--accent); font-weight: 600; font-size: var(--fs-md); }
.release__expected { color: var(--accent); font-weight: 600; }
.release__facts .catno { font-size: var(--fs-sm); }

.release__notice { max-width: 40rem; }
.release__notice p + p { margin-top: .25rem; color: var(--text-muted); }
.release__notice .notice__title { color: var(--text); margin: 0; }

/* ---- Sections -------------------------------------------------------- */
.release__section .section-title { margin-bottom: var(--s-3); }
.release__section h2 { font-size: var(--fs-lg); }

.tracklist { counter-reset: track; max-width: 40rem; }
.tracklist__item {
  counter-increment: track; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-3);
  padding-block: .55rem; overflow-wrap: anywhere; line-height: 1.45;
}
.tracklist__item + .tracklist__item { border-top: 1px solid var(--line); }
.tracklist__item::before {
  content: counter(track); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right;
}

.lineup { max-width: 40rem; }
.lineup__item { display: grid; gap: .1rem; padding-block: .6rem; }
.lineup__item + .lineup__item { border-top: 1px solid var(--line); }
.lineup__name { font-weight: 600; overflow-wrap: anywhere; }
.lineup__role { color: var(--text-muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
@media (min-width: 30em) {
  .lineup__item { grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: var(--s-4); align-items: baseline; }
  .lineup__role { font-size: var(--fs-base); }
}

.release__info { max-width: 62ch; color: var(--text-muted); overflow-wrap: anywhere; }
.release__info p + p { margin-top: 1em; }
.release__info a { color: var(--accent); }

.release__back { margin-top: var(--s-2); }
.release__back .btn { padding-left: 0; }
.release__back .btn:hover { background: transparent; }

/* ---- Wide layout: sleeve stays in view while the details scroll ------- */
@media (min-width: 64em) {
  .release { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); }
  .release__media { max-width: none; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
@media (min-width: 90em) {
  .release { gap: var(--s-9); }
}

@media (max-width: 44.99em) {
  .release__title { font-size: clamp(2rem, 9vw, 2.75rem); }
}

/* Small sources (320 px, the label has no better files yet): the sleeve is capped so the cover is shown at about 1.25x
   its pixel size at most (cover 400 px + frame) and stays crisp instead of being stretched to the column. */
.release__media--small { max-width: 27.5rem; }

/* Cover as a link to the large picture, extra photos under it, other formats of the release */
.release__zoom { display: block; border-radius: var(--radius-card); cursor: zoom-in; }
.release__zoom:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.release__thumbs { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: var(--s-2); }
.release__thumb {
  display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); cursor: zoom-in; transition: border-color var(--t-fast);
}
.release__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.release__thumb:hover { border-color: var(--accent); }
.release__thumb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.release__formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.release__formats a { font-weight: 600; }
