/* Base (from the design's <helmet> style block) */
html, body { margin: 0; background: #efece4; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
.lower { text-transform: lowercase; }

/* Hover styles: the design's `style-hover` attributes.
   !important is required because the base values are inline styles. */
.h-blue:hover { color: #2438ff !important; }
.h-footer:hover { color: #7d8bff !important; }
/* footer bottom row: credit on the left, "admin" (reserved area, same tab) on the right */
.foot-credit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(239, 236, 228, 0.16); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #9a968c; }
.foot-admin { color: #9a968c; transition: color 0.2s; }
.foot-admin:hover { color: #7d8bff; }
.foot-admin:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
@media (max-width: 600px) { .foot-credit { flex-direction: column; align-items: flex-start; } }
@media (pointer: coarse) { .foot-admin { display: inline-block; padding: 14px 12px; margin: -14px -12px; } }
.btn-prev:hover { background: #121212 !important; color: #efece4 !important; }
.btn-next:hover { background: #121212 !important; }
.btn-listen:hover { background: #2438ff !important; color: #fff !important; }
.rel-row:hover { background: #2438ff !important; color: #fff !important; }
.rel-sub { color: #5b5850; }
.rel-row:hover .rel-sub { color: inherit; }

/* Artists list: active (hovered) name is blue, as in the design's colB */
.artist-link { color: #121212; }
.artist-link:hover, .artist-link.is-active { color: #2438ff; }
.artist-link-slash { margin-left: 22px; font-weight: 300; color: #2438ff; } /* inline: glued to the last word */

/* ---- Display headings that fit their box (never broken inside a word) ----
   render.mjs puts the text widths in em on the heading (--fit-all: one line, --fit-two: the wider line of
   the best split in two, --fit-word: the longest word; site/fit.mjs) and makes its box a size container
   (.fit-box), so the FIRST paint is already right: one line as big as allowed (--fit-max) while that is
   >= --fit-min; else two lines (split at a space) if that is >= --fit-min; else --fit-min wrapping at
   spaces only; never bigger than what keeps the longest word inside the box. In CSS terms, with
   A / T / W = the box divided by all / two / word:  min(max, T', max(A, clamp(0, (min - A) * 1e6, T')))
   where T' = max(T, min(min, W)): the clamp() is 0 when A >= min (one line: A) and T' when A < min.
   main.js ("fit") then measures the real text and sets --fit-px (a few % at most).
   --fit-size: min = max (shrink-only headings: never bigger, only smaller when a word does not fit). */
.fit-box { container-type: inline-size; }
[data-fit] {
  --fit-min: var(--fit-size, 16px); --fit-max: var(--fit-size, 16px);
  --fit-a: calc(100cqi / var(--fit-all, 1));
  --fit-t: max(calc(100cqi / var(--fit-two, var(--fit-all, 1))), min(var(--fit-min), calc(100cqi / var(--fit-word, 1))));
  font-size: var(--fit-px, min(var(--fit-max), var(--fit-t), max(var(--fit-a), clamp(0px, (var(--fit-min) - var(--fit-a)) * 1000000, var(--fit-t)))));
  overflow-wrap: normal; word-break: keep-all; hyphens: none; text-wrap: balance;
}
#artist-name { --fit-min: clamp(30px, 4vw, 44px); --fit-max: clamp(48px, 9.5vw, 150px); }
.cat-h1 { --fit-size: clamp(56px, 11vw, 170px); }
.sec-title { --fit-size: clamp(56px, 8vw, 120px); }
.artist-link { --fit-size: clamp(40px, 6.6vw, 96px); }
.rel-name { --fit-size: 36px; }
.foot-word { font-size: clamp(20px, 8.2vw, 124px); } /* "FUTURA / DISCHI" on one line down to 320px */

/* ---- Header (render.mjs header()): in the page flow at the top. main.js ("header") pins it as a bar that
   slides away when scrolling down and comes back when scrolling up; the slot keeps its height (no layout
   shift, the hero's --hdr stays right). Without JS: a normal header. ---- */
.site-hdr {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  /* the row keeps the old square logo's 64px: in-flow header = 104px (= the hero's --hdr) with the wide mark */
  grid-template-rows: minmax(64px, auto);
  padding: 20px clamp(16px,3vw,40px);
}
.hdr-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; }
.hdr-right { display: flex; justify-content: flex-end; min-width: 0; }
/* "Shop" (merch, new tab): a dark pill, blue on hover */
.shop-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid #121212; background: #121212; color: #efece4; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.shop-pill:hover { background: #2438ff; border-color: #2438ff; color: #fff; }
.shop-arrow { display: inline-block; transition: transform 0.2s; }
.shop-pill:hover .shop-arrow { transform: translate(2px, -2px); }
.shop-pill:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
/* touch: a hit area of at least 44px around the (smaller) pill */
@media (pointer: coarse) {
  .shop-pill::after { content: ""; position: absolute; left: -4px; right: -4px; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }
}
/* Logo: the letters only (render.mjs markSvg, currentColor), no square. Wide mark (~3.8:1): sized by width.
   Desktop 168px wide (~44px tall, the letters ~3x the old 64px square's) inside the same 64px row (.site-hdr
   grid-template-rows): the in-flow header keeps its 104px (hero --hdr unchanged). Compact when pinned and on small screens. */
.hdr-logo { display: block; width: clamp(96px, 30vw, 168px); color: #121212; line-height: 0; border-radius: 4px; transition: color 0.2s; }
.hdr-logo svg { display: block; width: 100%; height: auto; aspect-ratio: 371 / 97; overflow: visible; }
.hdr-logo:hover { color: #2438ff; }
.hdr-logo:focus-visible { outline-offset: 6px; }
/* tap target of at least 44x44 around the (shorter) mark, like the Shop pill: vertical only (the gaps to the
   nav and the pill stay free), inside the 64px row */
.hdr-logo { position: relative; }
.hdr-logo::after { content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }
/* pinned: a fixed cream bar (blurred where supported), compact, above the content but below the floating
   previews, the lightbox (top layer) and the page-transition curtain. Hidden = slid up AND, once the slide
   is over, visibility: hidden (nothing off-screen is focusable or read; main.js makes it reachable for a
   Tab key press: .is-reach). Rule / shadow only while shown (no hairline at the top of the viewport). */
.site-hdr.is-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: 10px; padding-bottom: 10px; grid-template-rows: auto;
  /* same inner edges as the 1440px page column */
  padding-left: max(clamp(16px,3vw,40px), calc((100% - 1440px) / 2 + clamp(16px,3vw,40px)));
  padding-right: max(clamp(16px,3vw,40px), calc((100% - 1440px) / 2 + clamp(16px,3vw,40px)));
  background: rgba(239,236,228,0.97);
  transform: translateY(-100%); visibility: hidden;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-hdr.is-fixed { background: rgba(239,236,228,0.84); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-hdr.is-fixed.is-shown { transform: none; visibility: visible; box-shadow: 0 1px 0 rgba(18,18,18,0.16), 0 14px 28px -24px rgba(18,18,18,0.5); }
.site-hdr.is-fixed.is-reach { visibility: visible; transform: none; transition: none !important; }
.site-hdr.is-fixed .hdr-logo { width: 120px; }
/* visibility: on at once when showing, off only after the slide out */
.site-hdr { transition: transform 0.3s cubic-bezier(.2,.7,.1,1), box-shadow 0.3s, visibility 0s linear 0s; }
.site-hdr.is-fixed:not(.is-shown) { transition: transform 0.3s cubic-bezier(.2,.7,.1,1), box-shadow 0.3s, visibility 0s linear 0.3s; }
.site-hdr.no-anim, .site-hdr.no-anim * { transition: none !important; }
@media (max-width: 600px) {
  .site-hdr.is-fixed { gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .site-hdr.is-fixed .hdr-nav { row-gap: 4px; }
  .site-hdr.is-fixed .hdr-logo { width: 92px; }
}
/* anchors and keyboard focus never land under the pinned bar (main.js sets --hdr-bar to its height) */
html.hdr-js { scroll-padding-top: var(--hdr-bar, 0px); }
@media print {
  .hdr-slot { height: auto !important; }
  .site-hdr.is-fixed { position: static; transform: none; box-shadow: none; background: none; padding: 20px clamp(16px,3vw,40px); }
}

/* Covers */
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder {
  position: relative; display: block; width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, #e4e0d6 0 10px, #dcd8ce 10px 20px);
}
.cover-placeholder[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.4; color: #5b5850;
}

.btn-prev:focus-visible, .btn-next:focus-visible, .btn-listen:focus-visible, a:focus-visible, .rel-link:focus-visible::after {
  outline: 2px solid #ff6a1a; outline-offset: 3px;
}

/* Artist preview: [hidden] must win over the inline display of img/placeholder */
[data-artist-frame] [hidden], .artist-float [hidden] { display: none !important; }

/* Scroll reveal: hidden from the first paint only under html.js, which the inline head script sets
   when motion is allowed (no JS / reduced motion: never hidden). main.js adds .is-revealed. */
html.js [data-reveal]:not(.is-revealed), html.js [data-ig-card]:not(.ig-in) { opacity: 0; }

/* Home marquee: names link to the artist page */
.marquee-link:hover { color: #121212 !important; }

/* Artist page ("scheda") */
.artist-bio p { margin: 0 0 1em; }
/* When text and photo stack (narrow screens) the photo comes first, smaller */
@media (max-width: 1099px) {
  .artist-hero-photo { order: -1; flex-basis: auto !important; width: min(300px, 74%) !important; margin: 0 auto !important; }
}
.artist-bio p:last-child { margin-bottom: 0; }
.artist-photo-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, #e4e0d6 0 10px, #dcd8ce 10px 20px);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #5b5850;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
  border: 1.5px solid #121212; border-radius: 999px; background: transparent; color: #121212;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-arrow { display: inline-block; transition: transform 0.2s; }
.social-pill:hover { background: #2438ff; border-color: #2438ff; color: #fff; }
.social-pill:hover .social-arrow { transform: translate(2px, -2px); }
.disc-row { color: #121212; }
.disc-listen { padding: 8px 14px; border-radius: 999px; background: #121212; color: #efece4; transition: background 0.2s, color 0.2s; }
.rel-row:hover .disc-listen { background: #fff; color: #2438ff; }
@media (max-width: 480px) {
  .disc-listen { padding: 8px 10px; }
}

/* Artist page media: YouTube facade (click to load) and Spotify player */
.yt-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; overflow: hidden;
  background: #121212; box-shadow: 0 30px 60px -20px rgba(18,18,18,0.35);
}
.yt-facade { position: absolute; inset: 0; display: block; color: #fff; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.3s; }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 55%, rgba(18,18,18,0.6)); pointer-events: none; }
.yt-play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: clamp(64px, 11vw, 104px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  border-radius: 50%; background: #2438ff; color: #fff; border: 1.5px solid #121212;
  box-shadow: 0 16px 40px -12px rgba(18,18,18,0.6);
  transform: translate(-50%, -50%); transition: transform 0.25s cubic-bezier(.2,.8,.2,1), background 0.2s;
}
.yt-play svg { width: 42%; height: 42%; }
.yt-note {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; right: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #efece4;
}
.yt-facade:hover img, .yt-facade:focus-visible img { transform: scale(1.03); }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { background: #ff6a1a; transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:focus-visible { outline-offset: -4px; }
.yt-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.sp-frame { border-radius: 12px; overflow: hidden; background: #121212; box-shadow: 0 30px 60px -20px rgba(18,18,18,0.35); }
.sp-open { margin-top: 16px; }
@media (max-width: 480px) {
  .yt-host { display: none; }
}

/* Catalog: artisti | catalogo anchors */
.cat-nav-link { padding: 6px 0; border-bottom: 1.5px solid currentColor; }
.cat-nav-link:hover { color: #2438ff; }

/* ---- Catalog accordions: one <details> per name, closed by default (works without JS) ---- */
.cat-group { position: relative; border-top: 1.5px solid #121212; scroll-margin-top: 24px; }
.cat-part .cat-group:last-of-type { border-bottom: 1.5px solid #121212; }
.cat-sum {
  display: grid; grid-template-columns: minmax(0,1fr) auto 48px; grid-template-areas: "name thumbs chev" "meta thumbs chev";
  align-items: center; gap: 10px 24px; padding: 26px 0; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.cat-sum::-webkit-details-marker { display: none; }
.cat-sum::marker { content: ""; }
.cat-name { grid-area: name; margin: 0; font-weight: 800; transition: color 0.2s; }
/* letter-spacing in em on the fitted span itself (an inherited em value would be the h3's, in px) */
.cat-name-t { display: block; letter-spacing: -0.05em; line-height: 0.9; --fit-size: clamp(36px, 5vw, 72px); }
.cat-slash { font-weight: 300; color: #2438ff; }
.cat-meta { grid-area: meta; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: #5b5850; }
.cat-thumbs { grid-area: thumbs; display: flex; align-items: center; padding-left: 12px; }
.cat-thumb {
  position: relative; display: block; width: 56px; height: 56px; margin-left: -12px; border-radius: 4px; overflow: hidden;
  background: #dcd8ce; box-shadow: 0 0 0 1.5px #efece4, 0 10px 20px -12px rgba(18,18,18,0.5);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.cat-thumb:nth-child(1) { transform: rotate(-4deg); z-index: 3; }
.cat-thumb:nth-child(2) { transform: rotate(3deg); z-index: 2; }
.cat-thumb:nth-child(3) { transform: rotate(-1deg); z-index: 1; }
.cat-chev {
  grid-area: chev; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #121212;
  display: flex; align-items: center; justify-content: center; justify-self: end;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-sum:hover .cat-name { color: #2438ff; }
.cat-sum:hover .cat-chev { background: #2438ff; border-color: #2438ff; color: #fff; }
.cat-sum:hover .cat-thumb:nth-child(1) { transform: rotate(-8deg) translateX(-4px); }
.cat-sum:hover .cat-thumb:nth-child(3) { transform: rotate(4deg) translateX(4px); }
.cat-acc[open] > .cat-sum .cat-chev { transform: rotate(180deg); background: #121212; border-color: #121212; color: #efece4; }
.cat-sum:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 4px; }
.cat-body { padding: 0 0 32px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-empty { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #5b5850; padding: 10px 0; }

/* Release item: ONE markup (cover, title + note, type, year), laid out as a row (lista) or a card (griglia) */
.cat-rel {
  position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 90px 60px; grid-template-areas: "cover title type year";
  gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(18,18,18,0.18);
}
/* 256 rows after "Apri tutti": off-screen items skip layout/paint; the intrinsic size is the measured row
   (list) / card (grid) height, and `auto` remembers the real size once rendered, so nothing jumps. */
.cat-rel { content-visibility: auto; contain-intrinsic-size: auto 600px auto 48px; } /* content box: + 2x10px padding + 1px border = the 69px row */
.cat-cover { grid-area: cover; position: relative; display: block; width: 48px; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: #dcd8ce; }
.cat-title { grid-area: title; min-width: 0; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.cat-note { display: block; margin-top: 2px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #5b5850; }
.cat-type, .cat-year { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.cat-type { grid-area: type; }
.cat-year { grid-area: year; text-align: right; }
.cat-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole row / card is the link */
.cat-link:focus-visible { outline: none; }
.cat-rel:has(.cat-link:focus-visible) { outline: 2px solid #ff6a1a; outline-offset: 3px; }
.cat-badge {
  position: absolute; z-index: 2; right: 8px; bottom: 8px; display: none; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: #121212; color: #efece4; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
  white-space: nowrap; pointer-events: none; transition: background 0.2s, color 0.2s;
}
/* lista */
.cat-rel.has-link { transition: background 0.2s, color 0.2s; }
.cat[data-view="lista"] .cat-rel.has-link .cat-title > a::before { content: "▶ "; font-size: 0.6em; vertical-align: 0.25em; color: #2438ff; }
.cat[data-view="lista"] .cat-rel.has-link:hover, .cat[data-view="lista"] .cat-rel.has-link:focus-within { background: #2438ff; color: #fff; }
.cat[data-view="lista"] .cat-rel.has-link:hover .cat-note, .cat[data-view="lista"] .cat-rel.has-link:focus-within .cat-note,
.cat[data-view="lista"] .cat-rel.has-link:hover .cat-title > a::before, .cat[data-view="lista"] .cat-rel.has-link:focus-within .cat-title > a::before { color: inherit; }

/* griglia (also painted before main.js when the head script picked it: html[data-cat-view]) */
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-list {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 16px; padding-top: 4px;
}
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel {
  grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "cover cover" "title title" "type year";
  align-items: start; gap: 6px 10px; padding: 0; border-bottom: 0;
}
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-cover {
  width: 100%; margin-bottom: 6px; border-radius: 8px; box-shadow: 0 18px 36px -24px rgba(18,18,18,0.6);
}
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-cover img { transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-title { font-size: clamp(17px,1.5vw,20px); line-height: 1.12; transition: color 0.2s; }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-type,
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-year { font-size: 11px; color: #5b5850; letter-spacing: 0.04em; }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-badge { display: inline-flex; }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.has-link:hover .cat-badge,
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.has-link:focus-within .cat-badge { background: #2438ff; color: #fff; }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.has-link:hover .cat-title,
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.has-link:focus-within .cat-title { color: #2438ff; }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.has-link:hover .cat-cover img { transform: scale(1.04); }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-empty { grid-column: 1 / -1; }
/* grid cards: their height follows the column width and the title length, so no fixed estimate fits;
   rendering them normally avoids any jump (the grid also has 2-5x fewer rows than the list) */
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel { content-visibility: visible; }
.cat-badge-t { display: none; }
@media (min-width: 600px) {
  :is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px 20px; }
  .cat-badge-t { display: inline; }
}
@media (min-width: 1024px) {
  :is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-list { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1280px) {
  :is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-list { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

/* Toolbar (main.js removes [hidden]) */
.cat-tools[hidden], .cat-none[hidden], .cat-group[hidden], .cat-part[hidden], .cat-rel[hidden] { display: none !important; }
.cat-tools {
  display: grid; grid-template-columns: minmax(220px,1fr) auto auto; grid-template-areas: "search acts views" "count count count";
  align-items: center; gap: 14px 20px; margin-top: clamp(32px,4vw,48px); padding: 18px 0; border-top: 1.5px solid #121212; border-bottom: 1.5px solid #121212;
}
.cat-search { grid-area: search; position: relative; min-width: 0; }
.cat-search-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cat-search input {
  width: 100%; height: 48px; padding: 0 18px; border: 1.5px solid #121212; border-radius: 999px; background: #fbfaf6; color: #121212;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: 0.02em; -webkit-appearance: none; appearance: none;
}
.cat-search input::placeholder { color: #6f6b62; }
.cat-search input:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
.cat-acts { grid-area: acts; display: flex; gap: 8px; }
.cat-views { grid-area: views; display: inline-flex; padding: 3px; border: 1.5px solid #121212; border-radius: 999px; }
.cat-btn, .cat-view {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-btn { border: 1.5px solid #121212; background: transparent; color: #121212; height: 48px; }
.cat-btn:hover { background: #121212; color: #efece4; }
.cat-view { border: 0; background: transparent; color: #121212; }
.cat-view[aria-pressed="true"] { background: #121212; color: #efece4; }
.cat-view[aria-pressed="false"]:hover { color: #2438ff; }
.cat-btn:focus-visible, .cat-view:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
.cat-count { grid-area: count; margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: #5b5850; }
.cat-none { margin: 40px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #5b5850; }
@media (max-width: 899px) {
  .cat-tools { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "search search" "acts views" "count count"; }
}
@media (max-width: 600px) {
  .cat-sum { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name chev" "meta thumbs"; gap: 12px 16px; padding: 22px 0; }
  .cat-thumb { width: 36px; height: 36px; margin-left: -8px; }
  .cat-thumbs { justify-self: end; }
  .cat-rel { grid-template-columns: 44px minmax(0,1fr) auto; grid-template-areas: "cover title year" "cover type year"; gap: 2px 12px; }
  .cat-rel { contain-intrinsic-size: auto 340px auto 44px; } /* 65px row, the common case (long titles: remembered once rendered) */
  .cat-cover { width: 44px; }
  .cat-title { font-size: 18px; }
  .cat-type { font-size: 11px; color: #5b5850; }
  .cat-tools { grid-template-areas: "search search" "acts acts" "views views" "count count"; }
  .cat-acts .cat-btn { flex: 1 1 0; padding: 0 10px; }
  .cat-views { justify-self: stretch; }
  .cat-view { flex: 1 1 0; }
}

/* ---- Hero: full screen (header + hero = one viewport), covers stacked over the title ---- */
.hero {
  --hdr: 104px;
  --stack: clamp(200px, min(40vw, 100vh - 430px), 540px);
  --stack: clamp(200px, min(40vw, 100svh - 430px), 540px);
  display: flex; flex-direction: column;
  min-height: calc(100vh - var(--hdr));
  min-height: calc(100svh - var(--hdr));
  padding: 0 clamp(16px,3vw,40px) clamp(16px,2.6vh,28px);
}
.hero-stage {
  position: relative; flex: 1 1 auto; display: grid; place-items: center;
  min-height: calc(var(--stack) * 1.22); padding: clamp(8px,2vh,24px) 0 calc(var(--stack) * 0.2);
}
.hero-word {
  position: absolute; inset: 0; z-index: 1; margin: 0; pointer-events: none; user-select: none;
  display: flex; flex-direction: column; justify-content: space-between; white-space: nowrap;
  padding: clamp(4px,1.5vh,16px) 0 clamp(8px,2.5vh,28px);
  font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.86; font-size: clamp(42px, 12.2vw, 176px);
}
.hero-word br { display: none; }
.hi-w, .hi-slash { display: inline-block; } /* intro: words move as a whole (never split inside a word) */
.hero-word-2 { display: block; text-align: right; }
.hero-stack {
  position: relative; z-index: 2; width: var(--stack); aspect-ratio: 1;
  transform: translate(8%, -2%); touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.slide-card {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden; background: #dcd8ce;
  box-shadow: 0 30px 60px -20px rgba(18,18,18,0.45);
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1), opacity 0.8s;
  -webkit-user-drag: none;
}
.slide-card img { -webkit-user-drag: none; pointer-events: none; }
.hero-stack.is-swiping .slide-card { transition: none; }
.hero-stack.is-swiping { cursor: grabbing; }
.hero-controls {
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(220px,1fr) auto; align-items: end;
  gap: 16px clamp(20px,3vw,48px); border-top: 1.5px solid #121212; padding-top: 16px;
}
.hero-now { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.hero-num { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: clamp(44px,5vw,80px); line-height: 0.8; letter-spacing: -0.06em; color: #2438ff; }
.hero-of { white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 400; letter-spacing: 0; color: #121212; }
.hero-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-title-cur { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hero-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #5b5850; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.btn-prev, .btn-next { width: 56px; height: 56px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.btn-prev { border: 1.5px solid #121212; background: transparent; color: #121212; }
.btn-next { border: none; background: #2438ff; color: #fff; }
/* min-width: the longest label ("▶ Ascolta su Spotify": 20 characters of JetBrains Mono, + 1ch of slack) always fits, so the button
   never changes width when main.js switches it to "Ascolta qui" or when the slide changes */
.btn-listen {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; padding: 0 24px; border-radius: 999px; min-width: calc(21ch + 56px);
  background: #121212; color: #efece4; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap;
}

/* The "levetta": draggable knob on a segmented track */
.scrub { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.scrub[data-scrub-wrap]:not(.is-ready) { visibility: hidden; } /* useless without JS */
.scrub-head { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #5b5850; }
.scrub-track { position: relative; height: 40px; cursor: pointer; touch-action: none; }
.scrub-rail { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(18,18,18,0.18); }
.scrub-tick { position: absolute; top: -4px; width: 1.5px; height: 10px; margin-left: -0.75px; background: rgba(18,18,18,0.35); }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #2438ff; }
.scrub-thumb {
  position: absolute; top: 50%; width: 46px; height: 28px; margin: -14px 0 0 -23px; border-radius: 999px;
  background: #121212; box-shadow: 0 6px 16px -6px rgba(18,18,18,0.6); cursor: grab;
  display: flex; align-items: center; justify-content: center;
  transition: left 0.45s cubic-bezier(.2,.8,.2,1), background 0.2s, transform 0.2s;
}
.scrub-thumb > span { width: 14px; height: 8px; border-left: 2px solid #efece4; border-right: 2px solid #efece4; position: relative; }
.scrub-thumb > span::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #efece4; }
.scrub-track:hover .scrub-thumb, .scrub-thumb:focus-visible { background: #2438ff; }
.scrub-track.is-drag .scrub-thumb { transition: none; cursor: grabbing; transform: scale(1.08); background: #2438ff; }
.scrub-thumb:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-controls { grid-template-columns: minmax(0,1fr) auto; }
  .hero-controls .scrub { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 600px) {
  .hero { --stack: clamp(170px, min(76vw, 100vh - 420px), 360px); --stack: clamp(170px, min(76vw, 100svh - 420px), 360px); }
  .hero-controls { grid-template-columns: minmax(0,1fr); gap: 10px; padding-top: 12px; }
  .hero-controls .scrub { grid-row: auto; }
  .hero-actions { justify-content: flex-start; flex-wrap: nowrap; }
  .hero-actions .btn-listen { flex: 1 1 auto; justify-content: center; min-width: 0; } /* fills the row: same width whatever the label */
  .btn-prev, .btn-next, .btn-listen { height: 48px; }
  .btn-prev, .btn-next { width: 48px; flex: none; }
  .hero-now { gap: 12px; }
  .hero-stack { transform: translate(8%, -11%); }
  .hero-word { bottom: calc(var(--stack) * 0.1); }
  .hero-stage { padding-bottom: calc(var(--stack) * 0.14); min-height: calc(var(--stack) * 1.12); }
}

/* "Ultime uscite": the title link covers the whole row; the artist link sits above it */
.rel-row { position: relative; }
.rel-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rel-artist { position: relative; z-index: 2; }
.rel-artist:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rel-listen { white-space: nowrap; margin-left: 6px; opacity: 0.85; }
.rel-row:focus-within { background: #2438ff; color: #fff; }
.rel-row:focus-within .rel-sub { color: inherit; }

/* Artists: floating photo preview attached to the hovered name, following the mouse */
.artist-float {
  position: fixed; left: 0; top: 0; z-index: 50; width: clamp(240px, 21vw, 300px); pointer-events: none;
  opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.artist-float-card {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(135deg,#e4e0d6 0 10px,#dcd8ce 10px 20px);
  box-shadow: 0 30px 60px -20px rgba(18,18,18,0.45);
  transform: rotate(2deg) scale(0.86); transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.artist-float.is-on { opacity: 1; visibility: visible; transition: opacity 0.2s; }
.artist-float:not(.is-on) { transition: opacity 0.2s, visibility 0s 0.2s; }
.artist-float.is-on .artist-float-card { transform: rotate(2deg) scale(1); }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .artist-float { display: none !important; }
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

/* ---- Instagram wall: the latest posts pasted on the page, draggable on desktop (main.js) ---- */
.ig { position: relative; padding: clamp(80px,11vw,160px) clamp(16px,3vw,40px) 0; scroll-margin-top: 16px; }
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; }
.ig-head-l { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ig-handle {
  align-self: flex-start; font-weight: 700; font-size: clamp(26px,3.4vw,48px); letter-spacing: -0.04em; line-height: 1;
  color: #2438ff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ig-handle:hover { color: #121212; text-decoration-color: #ff6a1a; }
.ig-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 380px; }
.ig-hint { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6; color: #5b5850; }
.ig-follow {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px;
  background: #121212; color: #efece4; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.04em; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.ig-follow:hover { background: #2438ff; color: #fff; }
.ig-follow:hover .social-arrow { transform: translate(2px, -2px); }
.ig-follow .ig-glyph { width: 16px; height: 16px; }
.ig-follow.is-magnet { transition: background 0.2s, color 0.2s, transform 0.12s linear; }

.ig-wall {
  --gap: clamp(10px, 1.4vw, 20px); --cols: 6;
  position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center;
  gap: calc(var(--gap) * 2.2) var(--gap); margin: clamp(32px,4vw,56px) auto 0; padding: 24px 0 32px;
  touch-action: pan-y;
}
.ig-card {
  position: relative; display: block; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  padding: 6px 6px 0; background: #fbfaf6; color: #121212; border-radius: 3px;
  box-shadow: 0 18px 36px -18px rgba(18,18,18,0.5), 0 1px 0 rgba(18,18,18,0.06);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  transition: box-shadow 0.3s;
}
.ig-card::before { /* a strip of tape */
  content: ""; position: absolute; z-index: 3; left: 50%; top: -9px; width: 56px; height: 18px; margin-left: -28px;
  background: rgba(239,236,228,0.78); box-shadow: 0 1px 2px rgba(18,18,18,0.12); transform: rotate(calc(var(--r, 0deg) * -1.6));
}
.ig-card:nth-child(3n)::before { background: rgba(36,56,255,0.55); }
.ig-card:nth-child(5n+1)::before { background: rgba(255,106,26,0.6); }
.ig-media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 0.8); background: #dcd8ce; }
.ig-media img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.ig-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(135deg, #e4e0d6 0 10px, #dcd8ce 10px 20px);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #5b5850;
}
.ig-ph .ig-glyph { width: 28px; height: 28px; }
.ig-badge {
  position: absolute; z-index: 2; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px; border-radius: 999px; background: #121212; color: #efece4;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
}
.ig-over {
  position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 14px; background: linear-gradient(180deg, rgba(36,56,255,0.35), rgba(36,56,255,0.94) 55%); color: #fff;
  opacity: 0; transition: opacity 0.25s;
}
.ig-cap {
  font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.ig-open { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; }
.ig-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 2px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.02em; white-space: nowrap; color: #121212;
}
.ig-meta .ig-glyph { flex: none; color: #2438ff; }
.ig-card:hover, .ig-card:focus-visible { z-index: 5; box-shadow: 0 30px 60px -20px rgba(18,18,18,0.55); }
.ig-card:hover .ig-over, .ig-card:focus-visible .ig-over { opacity: 1; }
.ig-card:hover .ig-media img { transform: scale(1.05); }
.ig-card:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 4px; }
.ig-card.is-lifted { box-shadow: 0 50px 90px -24px rgba(18,18,18,0.6); }
.ig-card.is-lifted .ig-over { opacity: 0; }
/* drag: JS sets the transform inline; while dragging no CSS transition fights it */
.ig-wall.is-live .ig-card { touch-action: pan-y; }
.ig-wall.is-live .ig-card:hover { cursor: grab; }
.ig-card.is-lifted, .ig-card.is-lifted:hover { cursor: grabbing; }

/* Floating cursor label ("apri" / "segui" / "molla"), fine pointers only, inside the Instagram section */
.ig-cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: #ff6a1a; color: #121212; display: grid; place-items: center; pointer-events: none;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: lowercase;
  opacity: 0; transform: translate3d(-200px,-200px,0) scale(0.3); transition: opacity 0.2s, scale 0.25s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.ig-cursor.is-on { opacity: 1; }
.ig.has-cursor [data-cursor], .ig.has-cursor [data-cursor] * { cursor: none !important; }

@media (max-width: 1100px) { .ig-wall { --cols: 4; } }
@media (max-width: 760px) {
  .ig-side { max-width: none; }
  .ig-wall {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-left: calc(-1 * clamp(16px,3vw,40px)); margin-right: calc(-1 * clamp(16px,3vw,40px));
    padding: 28px clamp(16px,3vw,40px) 36px; gap: 18px; touch-action: auto; scrollbar-width: none;
  }
  .ig-wall::-webkit-scrollbar { display: none; }
  .ig-wall.is-few { justify-content: safe center; }
  .ig-card { flex: none; width: min(62vw, 280px); scroll-snap-align: center; transform: rotate(calc(var(--r, 0deg) * 0.35)); }
}
@media (hover: none), (pointer: coarse) {
  .ig-cursor { display: none !important; }
}

/* ---- "In tour": tour posters at the bottom of the home (pasted like the Instagram polaroids) ---- */
.tour { padding: clamp(80px,11vw,160px) clamp(16px,3vw,40px) 0; scroll-margin-top: 16px; }
.tour-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; }
.tour-grid {
  list-style: none; margin: clamp(32px,4vw,56px) 0 0; padding: 12px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(28px,4vw,56px) clamp(16px,3vw,48px);
}
.news-item { flex: 1 1 min(320px, 100%); max-width: 520px; min-width: min(260px, 100%); list-style: none; }
.news-card { height: 100%; overflow: hidden; background: #fbfaf6; border-radius: 6px; box-shadow: 0 22px 44px -22px rgba(18,18,18,0.35); }
.news-image { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.news-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(18px,2.5vw,28px); }
.news-body h3 { margin: 0; font-size: clamp(26px,3vw,42px); line-height: .98; letter-spacing: -.04em; }
.news-body p { margin: 0; line-height: 1.55; }
.news-category { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #2438ff; }
.news-artists { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.news-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; background: #121212; color: #efece4; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.news-link:hover { background: #2438ff; color: #fff; }
.artist-news { padding: clamp(64px,8vw,112px) clamp(16px,3vw,40px) 0; }
.artist-news h2 { margin: 0 0 24px; font-size: clamp(42px,7vw,88px); letter-spacing: -.06em; }
.artist-news ul { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid #121212; }
.artist-news-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid rgba(18,18,18,.2); }
.artist-news-row strong { font-size: clamp(20px,2.5vw,30px); }
.tour-item { flex: 0 1 clamp(150px, 28vw, 400px); min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.tour-card {
  display: block; padding: 8px; background: #fbfaf6; border-radius: 3px; color: #121212;
  box-shadow: 0 22px 44px -22px rgba(18,18,18,0.55), 0 1px 0 rgba(18,18,18,0.06);
  transform: rotate(var(--r, 0deg)); transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
}
.tour-poster { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #121212; }
.tour-poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tour-card:hover, .tour-card:focus-visible { transform: translateY(-10px) rotate(0deg) scale(1.02); box-shadow: 0 40px 70px -26px rgba(18,18,18,0.6); }
.tour-card:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 4px; }
.tour-meta { margin: 4px 0 0; display: flex; flex-direction: column; gap: 4px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: #5b5850; }
.tour-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(17px,1.6vw,22px); letter-spacing: -0.03em; color: #121212; overflow-wrap: anywhere; }
.tour-ticket, .tour-lb-ticket {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #121212; color: #efece4; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.tour-ticket:hover, .tour-lb-ticket:hover { background: #2438ff; color: #fff; }
.tour-ticket:focus-visible, .tour-lb-ticket:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }

/* Lightbox (native <dialog>: modal, focus kept inside, Esc closes) */
.tour-lb { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 12px; background: #efece4; color: #121212; overflow: auto; }
.tour-lb::backdrop { background: rgba(18,18,18,0.86); }
.tour-lb[open] { animation: tour-lb-in 0.35s cubic-bezier(.2,.8,.2,1); }
@keyframes tour-lb-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.tour-lb-box { position: relative; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(220px,1fr); gap: 24px 32px; padding: clamp(16px,3vw,32px); }
.tour-lb-fig { margin: 0; display: flex; align-items: center; justify-content: center; background: #121212; border-radius: 6px; min-height: min(72vh, 680px); } /* stable box: no jump between posters */
.tour-lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.tour-lb-side { display: flex; flex-direction: column; gap: 14px; align-self: end; padding-bottom: 4px; }
.tour-lb-count { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; color: #5b5850; }
.tour-lb-title { margin: 0; font-weight: 800; font-size: clamp(32px,4vw,56px); letter-spacing: -0.05em; line-height: 0.95; overflow-wrap: anywhere; }
.tour-lb-meta { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.6; }
.tour-lb-meta:empty { display: none; }
.tour-lb-ticket[hidden], .tour-lb-nav[hidden] { display: none; }
.tour-lb-nav { display: flex; gap: 10px; }
.tour-lb-btn, .tour-lb-close { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #121212; background: transparent; color: #121212; font-size: 20px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.tour-lb-btn:hover, .tour-lb-close:hover { background: #121212; color: #efece4; }
.tour-lb-close { position: absolute; top: 12px; right: 12px; z-index: 1; background: #efece4; font-size: 26px; line-height: 1; }
.tour-lb-btn:focus-visible, .tour-lb-close:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
html.tour-lb-open { overflow: hidden; }
@media (max-width: 760px) {
  .tour-lb-box { grid-template-columns: minmax(0,1fr); padding: 60px 12px 16px; }
  .tour-lb-fig { min-height: min(56vh, 460px); }
  .tour-lb-fig img { max-height: calc(100dvh - 300px); }
  .tour-lb-side { align-self: stretch; }
}
@media (max-width: 400px) {
  .tour-grid { gap: 28px 14px; }
  .tour-item { flex-basis: calc(50% - 7px); }
  .tour-card { padding: 5px; }
}

/* ---- Home hero intro (main.js "intro"): html.hi is set by the inline head script when it will play,
   so the start state is painted from the first frame (only opacity here; main.js animates from it).
   html.hi-run: while it plays (CSS transitions off, so they never fight the WAAPI keyframes).
   Fails open: without html.js (no JS, reduced motion, head fail-safe) none of this applies. ---- */
html.js.hi [data-intro], html.js.hi .hero-stack .slide-card { opacity: 0 !important; }
html.hi-run .slide-card, html.hi-run .scrub-thumb, html.hi-run [data-intro] { transition: none !important; }

/* Reduced motion: no reveal, no marquee, no card transitions (autoplay is stopped in main.js) */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-ig-card] { opacity: 1; }
  .pt-curtain { display: none !important; }
  [data-marquee] { transform: none !important; }
  .slide-card, .rel-row, .artist-link, .social-pill, .social-arrow, .disc-listen, .scrub-thumb, .artist-float, .artist-float-card, .ig-card, .ig-over, .ig-media img, .ig-follow, .ig-handle, .yt-facade img, .yt-play { transition: none !important; }
  .yt-facade:hover img, .yt-facade:focus-visible img { transform: none; }
  .yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { transform: translate(-50%, -50%); }
  .ig-card:hover .ig-media img { transform: none; }
  .tour-card, .tour-ticket, .tour-lb-ticket, .tour-lb-btn, .tour-lb-close { transition: none !important; }
  .tour-lb[open] { animation: none; }
  .tour-card:hover, .tour-card:focus-visible { transform: rotate(var(--r, 0deg)); }
  .cat-chev, .cat-thumb, .cat-name, .cat-rel, .cat-cover img, .cat-title, .cat-badge, .cat-btn, .cat-view { transition: none !important; }
  .site-hdr, .site-hdr.is-fixed:not(.is-shown), .shop-pill, .shop-arrow { transition: none !important; } /* the header shows / hides instantly */
  .shop-pill:hover .shop-arrow { transform: none; }
  .cat-rel.has-link:hover .cat-cover img { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Page transitions (see README) ----
   1) Browsers with cross-document view transitions: @view-transition (inline in <head>) + these
      pseudo-elements: the old page lifts away and dims, the new one rises in with a wipe; the clicked
      artist name morphs into the big name of the artist page (view-transition-name: fd-artist). */
::view-transition { background: #121212; }
::view-transition-old(root) { animation: pt-vt-old 0.6s cubic-bezier(.76,0,.24,1) both; }
::view-transition-new(root) { animation: pt-vt-new 0.6s cubic-bezier(.76,0,.24,1) both; }
::view-transition-group(fd-artist) { animation-duration: 0.6s; animation-timing-function: cubic-bezier(.76,0,.24,1); }
/* the two names (different fonts) swap quickly instead of a long double-exposure crossfade */
::view-transition-old(fd-artist) { animation: pt-name-out 0.6s linear both; }
::view-transition-new(fd-artist) { animation: pt-name-in 0.6s linear both; }
@keyframes pt-name-out { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pt-name-in { 0%, 20% { opacity: 0; } 70%, 100% { opacity: 1; } }
/* a name with no partner on the other page just leaves / arrives with its page */
::view-transition-old(fd-artist):only-child { animation: pt-vt-old 0.6s cubic-bezier(.76,0,.24,1) both; }
::view-transition-new(fd-artist):only-child { animation: pt-vt-rise 0.6s cubic-bezier(.76,0,.24,1) both; }
@keyframes pt-vt-old { to { transform: translateY(-8vh) scale(0.96); opacity: 0.3; } }
@keyframes pt-vt-new { from { transform: translateY(14vh); clip-path: inset(100% 0 0 0); } to { transform: none; clip-path: inset(0 0 0 0); } }
@keyframes pt-vt-rise { from { transform: translateY(14vh); opacity: 0; } }

/* 2) Fallback curtain (main.js): closes over the old page, covers the new one from its first paint
      (html.pt-cover), then opens upwards. Decorative, pointer-transparent, never focusable. */
.pt-curtain {
  position: fixed; inset: 0; z-index: 1000; display: none; flex-direction: column; justify-content: space-between;
  padding: clamp(20px,3vw,40px); background: #2438ff; color: #efece4; pointer-events: none;
  transform: translateY(100%); will-change: transform;
}
html.pt-close .pt-curtain, html.pt-cover .pt-curtain, html.pt-open .pt-curtain { display: flex; }
html.pt-cover .pt-curtain { transform: none; }
html.pt-close .pt-curtain { animation: pt-curtain-in 0.4s cubic-bezier(.76,0,.24,1) forwards; }
html.pt-open .pt-curtain { animation: pt-curtain-out 0.45s cubic-bezier(.76,0,.24,1) forwards; }
.pt-curtain-mark { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.pt-curtain-slash { color: #121212; }
.pt-curtain-label {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.86; overflow-wrap: normal; word-break: keep-all; hyphens: none;
  /* --pt-chars (head.js / main.js): letters of the longest word; ~1em each in Archivo 125% caps, so a long
     name shrinks instead of breaking inside a word */
  font-size: min(clamp(44px, 11vw, 170px), calc((100vw - 2 * clamp(20px, 3vw, 40px)) / var(--pt-chars, 1)));
}
.pt-curtain-label::before { content: var(--pt-label, ""); }
html.pt-close .pt-curtain-label { animation: pt-label-in 0.5s cubic-bezier(.2,.8,.2,1) 0.06s both; }
html.pt-open .pt-curtain-label { animation: pt-label-out 0.45s cubic-bezier(.76,0,.24,1) both; }
@keyframes pt-curtain-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pt-curtain-out { from { transform: none; } to { transform: translateY(-100%); } }
@keyframes pt-label-in { from { transform: translateY(60%); opacity: 0; } }
@keyframes pt-label-out { to { transform: translateY(-40%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- Home "ultime uscite": numbered list of the flagged releases (render.mjs latestRow) ----
   Each row is one link: N° | Spotify cover | artist (big) + title + TIPO · ANNO | artist photo | Ascolta ↗ */
.ul-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid #121212; }
.ul-more .ul-list { border-top: 0; }
.ul-item { border-bottom: 1px solid rgba(18, 18, 18, 0.18); }
.ul-row {
  display: grid; grid-template-columns: 40px 88px minmax(0, 1fr) 48px auto; align-items: center; gap: 20px;
  padding: 14px 12px; color: #121212; transition: background 0.2s, color 0.2s; position: relative;
}
.ul-row:hover, .ul-row:focus-within { background: #2438ff; color: #fff; }
/* the row's Spotify link (on the title) is stretched over the whole row; artist name / photo links sit above it */
.ul-link { color: inherit; }
.ul-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ul-link:focus-visible { outline: none; }
.ul-link:focus-visible::after { outline: 2px solid #ff6a1a; outline-offset: -2px; }
.ul-artist-link, .ul-face-link { position: relative; z-index: 2; color: inherit; }
.ul-artist-link { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: 6px; transition: text-decoration-color 0.2s; }
.ul-artist-link:hover, .ul-artist-link:focus-visible { text-decoration-color: currentColor; }
.ul-artist-link:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
.ul-face-link { transition: box-shadow 0.2s, transform 0.2s; }
.ul-face-link:hover, .ul-face-link:focus-visible { box-shadow: 0 0 0 3px #2438ff; transform: scale(1.06); }
.ul-row:hover .ul-face-link:hover, .ul-row:focus-within .ul-face-link:focus-visible { box-shadow: 0 0 0 3px #fff; }
/* 44px hit area around the photo link on touch */
.ul-face-link::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
@media (pointer: coarse) { .ul-face-link::before { inset: -7px; } }
.ul-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ul-cover { display: block; width: 88px; height: 88px; border-radius: 6px; overflow: hidden; background: #dcd8ce; box-shadow: 0 10px 20px -12px rgba(18, 18, 18, 0.45); }
.ul-cover .cover-img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ul-row:hover .ul-cover .cover-img { transform: scale(1.06); }
.ul-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ul-artist { --fit-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.95; }
.ul-title { font-weight: 500; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.ul-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: #5b5850; }
.ul-row:hover .ul-meta, .ul-row:focus-within .ul-meta { color: inherit; opacity: 0.85; }
.ul-face {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: #dcd8ce; color: #5b5850; font-weight: 700; font-size: 18px; border: 1.5px solid #efece4; box-shadow: 0 0 0 1px rgba(18, 18, 18, 0.12);
}
.ul-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ul-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: #121212; color: #efece4; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.ul-row:hover .ul-cta, .ul-row:focus-within .ul-cta { background: #fff; color: #2438ff; }
.ul-more { border-bottom: 1px solid rgba(18, 18, 18, 0.18); }
.ul-more-btn {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin: 16px 12px;
  padding: 10px 18px; border: 1.5px solid #121212; border-radius: 999px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; transition: background 0.2s, color 0.2s;
}
.ul-more-btn::-webkit-details-marker { display: none; }
.ul-more-btn::after { content: "↓"; }
.ul-more[open] > .ul-more-btn::after { content: "↑"; }
.ul-more-btn:hover { background: #121212; color: #efece4; }
.ul-more-btn:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
.ul-more-close, .ul-more[open] .ul-more-open { display: none; }
.ul-more[open] .ul-more-close { display: inline; }
.ul-all { display: inline-block; margin-top: 20px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .ul-row { grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 14px; padding: 12px 4px; }
  .ul-num, .ul-cta-t { display: none; }
  .ul-cover { width: 64px; height: 64px; }
  /* the artist photo sits on the cover's corner */
  .ul-face { grid-column: 1; grid-row: 1; align-self: end; justify-self: end; width: 30px; height: 30px; margin: 0 -8px -8px 0; font-size: 12px; position: relative; z-index: 1; overflow: visible; }
  .ul-face img { border-radius: 50%; }
  .ul-face-link { z-index: 2; }
  .ul-face-link::before { inset: -7px; }
  .ul-cover { grid-column: 1; grid-row: 1; }
  .ul-text { grid-column: 2; grid-row: 1; }
  .ul-cta { grid-column: 3; grid-row: 1; justify-content: center; width: 36px; height: 36px; padding: 0; }
  .ul-artist { --fit-size: 24px; }
  .ul-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .ul-row, .ul-cta, .ul-cover .cover-img, .ul-more-btn, .ul-artist-link, .ul-face-link { transition: none !important; }
  .ul-face-link:hover, .ul-face-link:focus-visible { transform: none; }
  .ul-row:hover .ul-cover .cover-img { transform: none; }
}

/* ---- Home: slogan + manifesto right under the hero (render.mjs manifestoSection, copy in site/content.mjs) ----
   The slogan is a fitted display heading (Archivo 900 125% caps, [data-fit]): a fixed size (--fit-size) wrapping
   between words only; a word too long for the box shrinks. Each word reveals on its own (data-reveal="word"). */
.mf { padding: clamp(72px,10vw,150px) clamp(16px,3vw,40px) clamp(64px,8vw,120px); }
.mf-kicker { margin: 0 0 clamp(20px,2.6vw,36px); font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #5b5850; }
.mf-slash { color: #2438ff; }
.mf-slogan {
  margin: 0; color: #121212;
  font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.92;
  --fit-size: clamp(36px, 7.4vw, 118px);
}
.mf-w { display: inline-block; }
/* "domani": blue, with a hand-drawn orange underline that draws itself in once revealed */
.mf-blu {
  color: #2438ff; padding-bottom: 0.04em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M4 15C38 7 70 19 104 12S166 5 196 13' fill='none' stroke='%23ff6a1a' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.17em no-repeat;
  transition: background-size 0.9s cubic-bezier(.2,.8,.2,1) 0.45s;
}
html.js .mf-blu:not(.is-revealed) { background-size: 0% 0.17em; }
.mf-arancio { color: #ff6a1a; }
.mf-body {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 32px 56px;
  margin-top: clamp(40px,5vw,72px); padding-top: clamp(20px,2vw,28px); border-top: 1.5px solid #121212;
}
.mf-text { margin: 0; max-width: 34ch; font-weight: 500; font-size: clamp(22px, 2.5vw, 40px); line-height: 1.22; letter-spacing: -0.025em; text-wrap: pretty; }
.acc { font-style: normal; color: #2438ff; }
.mf-cta {
  display: inline-flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 8px 8px 28px; border-radius: 999px;
  background: #121212; color: #efece4; font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: 0.04em; white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.mf-cta-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #efece4; color: #121212; font-size: 18px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), background 0.2s, color 0.2s;
}
.mf-cta:hover { background: #2438ff; color: #fff; }
.mf-cta:hover .mf-cta-arrow { transform: translateX(4px); background: #fff; color: #2438ff; }
.mf-cta:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
@media (max-width: 760px) {
  .mf-body { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .mf-cta { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-blu, .mf-cta, .mf-cta-arrow { transition: none !important; }
  .mf-cta:hover .mf-cta-arrow { transform: none; }
}

/* ---- In-site Spotify player (main.js "player"): play affordance on the front cover + the dock ---- */
.slide-play {
  position: absolute; inset: 0; z-index: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(circle at 50% 50%, rgba(18,18,18,0.38), rgba(18,18,18,0.08) 70%); color: #fff;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
html.sp-ready .slide-play { display: flex; }
.slide-play-btn {
  display: grid; place-items: center; width: clamp(64px, 22%, 96px); aspect-ratio: 1; padding-left: 4px; border-radius: 50%;
  background: #2438ff; color: #fff; border: 1.5px solid #121212; box-shadow: 0 16px 40px -12px rgba(18,18,18,0.6);
  transform: scale(0.86); transition: transform 0.3s cubic-bezier(.2,.8,.2,1), background 0.2s;
}
.slide-play-btn svg { width: 42%; height: 42%; }
.slide-play-t {
  padding: 6px 12px; border-radius: 999px; background: #121212; color: #efece4;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
}
.slide-card.is-active:hover .slide-play, .slide-card.is-active:focus-visible .slide-play { opacity: 1; }
.slide-card.is-active:hover .slide-play-btn, .slide-card.is-active:focus-visible .slide-play-btn { transform: none; background: #ff6a1a; }
.hero-stack.is-swiping .slide-play { opacity: 0 !important; }
/* touch: no hover, so a small permanent play badge on the front cover */
@media (hover: none), (pointer: coarse) {
  .slide-card.is-active .slide-play { opacity: 1; background: none; align-items: flex-end; justify-content: flex-end; padding: 12px; }
  .slide-card.is-active .slide-play .slide-play-btn { width: 52px; transform: none; }
  .slide-play-t { display: none; }
}

/* The dock: fixed at the bottom, above the page (header 40) and below the floating previews (50+), the
   lightbox (top layer) and the page-transition curtain (1000). Slides up; hidden = not focusable. */
.sp-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; pointer-events: none; font-family: 'Bricolage Grotesque', sans-serif;
  padding: 0 max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0.45s;
}
.sp-dock[hidden] { display: none; }
.sp-dock.is-open { transform: none; visibility: visible; transition: transform 0.45s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.sp-dock:focus { outline: none; }
.sp-dock-in {
  pointer-events: auto; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 88px minmax(0, 240px) minmax(0, 1fr) 44px; align-items: center; gap: 16px;
  padding: 12px; border-radius: 16px; background: #121212; color: #efece4;
  box-shadow: 0 30px 70px -20px rgba(18,18,18,0.7), 0 0 0 1px rgba(239,236,228,0.08);
}
.sp-dock-cover { width: 88px; height: 88px; border-radius: 8px; object-fit: cover; display: block; background: #2438ff; }
.sp-dock-cover[hidden] { display: none; }
.sp-dock-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-dock-kicker { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9a968c; }
.sp-dock-kicker span { color: #7d8bff; }
.sp-dock-title {
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-dock-open { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 32px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; color: #efece4; text-decoration: underline; text-underline-offset: 4px; }
.sp-dock-open:hover, .sp-dock-open-sm:hover { color: #7d8bff; }
.sp-dock-player { position: relative; min-width: 0; height: 152px; border-radius: 12px; overflow: hidden; background: #282828; }
.sp-dock-player iframe { display: block; width: 100%; height: 152px; border: 0; }
.sp-dock-player.is-loading::before {
  content: "carico il player…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #9a968c;
}
.sp-dock-side { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: start; }
.sp-dock-close {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(239,236,228,0.6); background: transparent; color: #efece4;
  font-size: 24px; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.sp-dock-close:hover { background: #efece4; color: #121212; }
.sp-dock-open-sm { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; border: 1.5px solid rgba(239,236,228,0.6); color: #efece4; font-size: 18px; }
.sp-dock-close:focus-visible, .sp-dock-open:focus-visible, .sp-dock-open-sm:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
/* text link when the player cannot show (no load signal in time: .is-stuck), and on mobile whenever the plain
   iframe fallback is in use (.is-fallback: the icon-only ↗ is not enough there) */
.sp-dock-alt {
  grid-column: 1 / -1; display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: #efece4; color: #121212; font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.04em;
  text-align: center; transition: background 0.2s, color 0.2s;
}
.sp-dock-alt:hover { background: #2438ff; color: #fff; }
.sp-dock-alt:focus-visible { outline: 2px solid #ff6a1a; outline-offset: 3px; }
.sp-dock.is-stuck .sp-dock-alt { display: flex; }
/* the page keeps room for the dock while it is open (the footer is never hidden under it) */
html.sp-dock-on body { padding-bottom: calc(var(--sp-dock-h, 0px) + 8px); }
@media (max-width: 760px) {
  .sp-dock { padding: 0 0 env(safe-area-inset-bottom); background: #121212; }
  .sp-dock-in { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding: 8px max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); border-radius: 0; box-shadow: 0 -16px 40px -20px rgba(18,18,18,0.6); }
  .sp-dock-cover, .sp-dock-info { display: none; }
  .sp-dock-open-sm { display: inline-flex; }
  .sp-dock.is-fallback .sp-dock-alt { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-dock, .sp-dock.is-open { transition: none !important; }
  .slide-play, .slide-play-btn, .sp-dock-alt { transition: none !important; }
}

/* ---- "Chi siamo" page (render.mjs renderAbout, copy in site/content.mjs) ---- */
.ab-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; }
.ab-head { margin-top: 24px; }
.ab-h1 {
  margin: 0; font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 0.86; --fit-size: clamp(56px, 13vw, 210px);
}
.ab-stats {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: clamp(20px,2.4vw,32px) 0 0; padding-top: 16px; border-top: 1.5px solid #121212;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.ab-dot { color: #2438ff; }
.ab-mf .mf-slogan { --fit-size: clamp(34px, 6.2vw, 100px); }
.ab-cols {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(32px,5vw,80px); align-items: start;
  margin-top: clamp(40px,5vw,72px); padding-top: clamp(20px,2vw,28px); border-top: 1.5px solid #121212;
}
.ab-text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 52ch; }
.ab-text p { margin: 0 0 1em; }
.ab-text p:last-child { margin-bottom: 0; }
.ab-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px clamp(32px,5vw,80px); align-items: end;
  padding: clamp(28px,4vw,56px); border-radius: 16px; background: #121212; color: #efece4;
}
.ab-box .sec-title { color: #efece4; }
.ab-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.ab-mail {
  max-width: 100%; font-weight: 700; font-size: clamp(26px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere;
  color: #efece4; text-decoration: underline; text-decoration-color: #ff6a1a; text-decoration-thickness: 3px; text-underline-offset: 8px;
  transition: color 0.2s;
}
.ab-mail:hover { color: #7d8bff; }
.ab-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ab-box .social-pill { border-color: rgba(239,236,228,0.7); color: #efece4; }
.ab-box .social-pill:hover { border-color: #2438ff; }
.ab-faq { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.06em; color: #9a968c; min-height: 44px; display: inline-flex; align-items: center; }
.ab-faq:hover { color: #7d8bff !important; }
.ab-artists { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.ab-artist {
  display: inline-block; font-weight: 700; font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.05em; line-height: 1.05; color: #121212;
  overflow-wrap: normal; word-break: keep-all; transition: color 0.2s;
}
.ab-artist:hover { color: #2438ff; }
.ab-artist .artist-link-slash { margin-left: 0.18em; }
@media (max-width: 760px) {
  .ab-cols, .ab-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .ab-artist { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-mail, .ab-artist { transition: none !important; }
}

/* ---- Every song link plays in the dock (render.mjs playAttrs, main.js "player") ----
   Label pairs: "Ascolta qui" once the player is bound (html.sp-ready), the old label otherwise (no JS).
   Both labels share one grid cell; the inactive one is only invisible, so the box keeps the width of the longer
   one in both states and nothing shifts when html.sp-ready arrives. */
.pl-pair { display: inline-grid; justify-items: center; vertical-align: bottom; }
.pl-pair > span { grid-area: 1 / 1; white-space: nowrap; }
.pl-js { visibility: hidden; }
html.sp-ready .pl-js { visibility: visible; }
html.sp-ready .pl-nojs { visibility: hidden; }
.ul-cta-ico { display: none; }
@media (max-width: 760px) { .ul-cta-ico { display: inline-grid; } }
/* the playing release: accent bar + "now playing" bars before its title (aria-current="true" on the link) */
.pl-eq { display: none; align-items: flex-end; gap: 2px; height: 0.7em; margin-right: 0.35em; vertical-align: baseline; }
.pl-eq i { display: block; width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; animation: pl-eq 0.9s ease-in-out infinite; }
.pl-eq i:nth-child(2) { animation-delay: -0.3s; }
.pl-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes pl-eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.is-playing .pl-eq { display: inline-flex; color: #2438ff; }
.ul-item.is-playing .ul-row, .cat-rel.is-playing, .disc-row.is-playing { box-shadow: inset 4px 0 0 #2438ff; }
.ul-item.is-playing .ul-row:hover .pl-eq, .disc-row.is-playing:hover .pl-eq, .cat[data-view="lista"] .cat-rel.is-playing:hover .pl-eq { color: inherit; }
.ul-item.is-playing .ul-cta, .disc-row.is-playing .disc-listen { background: #2438ff; color: #fff; }
.cat-rel.is-playing .cat-badge { display: inline-flex; background: #2438ff; color: #fff; }
/* grid cards: no side bar (it would cut the text), a blue ring around the cover instead */
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.is-playing { box-shadow: none; }
:is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.is-playing .cat-cover { outline: 3px solid #2438ff; outline-offset: 3px; }
.slide-card.is-playing { outline: 3px solid #2438ff; outline-offset: 4px; }
/* grid cards: the play badge turns orange on hover / focus once the player is bound */
html.sp-ready :is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.can-play:hover .cat-badge,
html.sp-ready :is(.cat[data-view="griglia"], html[data-cat-view="griglia"] .cat) .cat-rel.can-play:focus-within .cat-badge { background: #ff6a1a; color: #121212; transform: scale(1.06); }
/* dock live region: announced, not shown */
.sp-dock-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .pl-eq i { animation: none; transform: scaleY(0.7); }
}
