/* ============================================================
   Vil MacKissock — full stylesheet
   ============================================================ */

:root {
  --paper:      #f2f1ee;
  --paper-2:    #e9e7e2;
  --ink:        #101116;
  --ink-soft:   #55565e;
  --ink-faint:  #8d8e96;
  --line:       #d9d7d1;
  --accent:     #1740c4;
  --accent-ink: #ffffff;
  --card:       #ffffff;

  --shell-1:    #f7f7f8;
  --shell-2:    #d6d7dc;
  --shell-edge: #b3b5bd;
  --lcd-1:      #dfe6ea;
  --lcd-2:      #cfd9df;
  --lcd-ink:    #12181d;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --pad: clamp(20px, 5vw, 72px);

  /* easings — entrada/sortida, moviment i hover */
  --out:    cubic-bezier(.165, .84, .44, 1);      /* ease-out-quart */
  --out-2:  cubic-bezier(.215, .61, .355, 1);     /* ease-out-cubic */
  --in-out: cubic-bezier(.645, .045, .355, 1);    /* ease-in-out-cubic */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0b0d12;
    --paper-2:   #12151c;
    --ink:       #edecea;
    --ink-soft:  #a2a4ad;
    --ink-faint: #6d707a;
    --line:      #23262f;
    --accent:    #6d92ff;
    --accent-ink:#0b0d12;
    --card:      #14171f;
    --shell-1:   #34363d;
    --shell-2:   #1d1f25;
    --shell-edge:#0a0b0e;
    --lcd-1:     #b9c6cd;
    --lcd-2:     #9fb0b9;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ───────────────── animacions base ───────────────── */

@keyframes rise      { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade      { from { opacity: 0; } }
@keyframes paneIn    { from { opacity: 0; transform: scale(.985); } }
@keyframes popIn     { from { opacity: 0; transform: scale(.96) translateY(10px); } }
@keyframes eq        { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* revelació en fer scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--out), transform .55s var(--out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* entrada del hero, en cascada */
.hero__head > *,
.hero__body > *,
.hero__player { animation: rise .6s var(--out) both; }

.hero__head .hero__name  { animation-delay: .04s; }
.hero__player            { animation-delay: .12s; animation-name: popIn; }
.hero__body .hero__lede  { animation-delay: .17s; }
.hero__body .hero__quote { animation-delay: .21s; }
.hero__body .socials     { animation-delay: .25s; }
.hero__body .stats       { animation-delay: .29s; }
.hero__body .latest      { animation-delay: .33s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ─────────────────────────── NAV ─────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--out-2), background .3s var(--out-2);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__brand {
  display: none;
  align-items: center;
  text-decoration: none;
  flex: none;
}
/* només apareix a l'esquerra quan sona música */
.is-playing-any .nav__brand { display: inline-flex; }

/* petit equalitzador quan sona alguna cosa */
.eq { display: none; gap: 2px; align-items: flex-end; height: 13px; flex: none; }
.is-playing-any .eq { display: inline-flex; }
.eq i {
  display: block; width: 2px; height: 100%; border-radius: 1px;
  background: var(--accent); transform-origin: bottom;
  animation: eq .9s linear infinite;
}
.eq i:nth-child(2) { animation-delay: .3s; }
.eq i:nth-child(3) { animation-delay: .15s; }

.nav__links {
  display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px);
  margin-left: auto;
  min-width: 0; flex: 1;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  font-size: 14px; text-decoration: none; color: var(--ink-soft);
  white-space: nowrap; flex: none;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-here { color: var(--ink); }

.nav__cta {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; color: var(--ink); text-decoration: none;
  font-size: 14px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s var(--out);
}
.nav__cta svg { width: 15px; height: 15px; fill: currentColor; }
.nav__cta:active { transform: scale(.96); }

@media (hover: hover) and (pointer: fine) {
  .nav__cta:hover { background: #1db954; color: #fff; border-color: #1db954; }
}
@media (max-width: 620px) {
  /* una sola fila: [espai eq] enllaços a l'esquerra ······ Spotify a la dreta */
  .nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 9px 11px;
    gap: 0;
  }

  /* el slot de l'equalitzador sempre ocupa lloc: quan comença a sonar
     apareix sense desplaçar els enllaços */
  .nav__brand,
  .is-playing-any .nav__brand {
    display: inline-flex;
    flex: none;
    width: 13px;
    margin-right: 5px;
  }
  .eq,
  .is-playing-any .eq {
    display: inline-flex;
    height: 11px;
    opacity: 0;
    transition: opacity .25s var(--out-2);
  }
  .is-playing-any .eq { opacity: 1; }

  .nav__links {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(9px, 3.4vw, 18px);
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0;
  }
  .nav__links a {
    font-size: clamp(10.5px, 3.15vw, 13px);
    letter-spacing: -.01em;
    flex: none;
  }

  .nav__cta {
    flex: none;
    margin-left: auto;    /* sempre enganxat a la dreta */
    width: 32px; height: 32px;
    padding: 0;
    justify-content: center;
  }
  .nav__cta > span { display: none; }
  .nav__cta svg { width: 16px; height: 16px; }
}

/* ─────────────────────────── HERO ─────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head player"
    "body player";
  align-content: start;
  column-gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5vw, 68px) var(--pad) clamp(44px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.hero__head   { grid-area: head; }
.hero__body   { grid-area: body; }
.hero__player { grid-area: player; }

.hero__name {
  margin: 0;
  font-size: clamp(1.85rem, 9.5vw, 7.2rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 700;
  white-space: nowrap;
}

.hero__lede {
  margin: clamp(22px, 3vw, 34px) 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__quote {
  margin: 18px 0 0; max-width: 44ch;
  font-size: 14px; font-style: italic; color: var(--ink-faint);
  border-left: 2px solid var(--line); padding-left: 14px;
}

/* ---- icones socials ---- */

.socials {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 0; padding: 0;
}
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-soft);
  transition: color .18s ease, background .18s ease,
              border-color .18s ease, transform .18s var(--out);
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:active { transform: scale(.93); }

@media (hover: hover) and (pointer: fine) {
  .socials a:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
  [data-brand="spotify"]:hover    { background: #1db954; }
  [data-brand="instagram"]:hover  { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
  [data-brand="tiktok"]:hover     { background: #010101; }
  [data-brand="youtube"]:hover    { background: #ff0000; }
  [data-brand="soundcloud"]:hover { background: #ff5500; }
  [data-brand="apple"]:hover      { background: #fa243c; }
  [data-brand="deezer"]:hover     { background: #a238ff; }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) {
  [data-brand="tiktok"]:hover { background: #25f4ee; color: #010101 !important; }
}

/* ---- xifres ---- */

.stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px); margin: 34px 0 0; }
.stats div { margin: 0; }
.stats dt {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.stats dd {
  margin: 4px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}

/* ---- últim llançament ---- */

.latest {
  display: flex; align-items: center; gap: 15px;
  margin-top: 34px; padding: 11px 16px 11px 11px;
  width: 100%; max-width: 400px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); color: inherit; font: inherit;
  text-align: left; cursor: pointer;
  transition: transform .25s var(--out), box-shadow .25s var(--out), border-color .25s var(--out);
}
.latest:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .latest:hover {
    transform: translateY(-3px); border-color: transparent;
    box-shadow: 0 18px 36px -20px rgba(0,0,0,.55), 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  }
  .latest:hover .latest__go { background: var(--accent); }
  .latest:hover .latest__go svg { fill: var(--accent-ink); }
}
.latest img {
  flex: none; width: 60px; height: 60px; border-radius: 10px;
  object-fit: cover; background: var(--paper-2);
}
.latest__meta { flex: 1; min-width: 0; display: block; }
.latest__tag {
  display: block; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
}
.latest__meta strong {
  display: block; margin-top: 4px; font-size: 15.5px;
  letter-spacing: -.018em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.latest__meta > span:last-child { display: block; color: var(--ink-faint); font-size: 12.5px; }
.latest__go {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); transition: background .18s ease;
}
.latest__go svg { width: 15px; height: 15px; fill: var(--paper); margin-left: 2px; transition: fill .18s ease; }

/* ───────────────────────── SECCIONS ───────────────────────── */

.section { padding: clamp(52px, 7vw, 104px) var(--pad); border-bottom: 1px solid var(--line); }

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 32px; margin-bottom: clamp(28px, 4vw, 52px);
}
.section__head h2 {
  margin: 0; font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  letter-spacing: -.035em; font-weight: 650;
}
.section__head p { margin: 0; max-width: 48ch; color: var(--ink-soft); font-size: 14.5px; }
.section__head a { color: var(--accent); text-underline-offset: 3px; }

kbd {
  font: inherit; font-size: 12px; font-family: var(--mono);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; background: var(--card);
}

/* ═══════════════════════════ iPod ═══════════════════════════ */

.hero__player {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; width: 300px;
}

.ipod {
  --w: 300px;
  width: var(--w);
  padding: 17px 17px 21px;
  border-radius: 26px;
  background: linear-gradient(150deg, var(--shell-1) 0%, var(--shell-2) 58%, var(--shell-1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 0 0 1px var(--shell-edge),
    0 2px 3px rgba(0,0,0,.14),
    0 30px 60px -24px rgba(0,0,0,.55);
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  outline-offset: 6px;
  /* evita que el focus o un reflow mogui visualment el cos */
  transform: none;
}
.ipod:focus,
.ipod:focus-visible {
  outline: none;
  transform: none;
}
.ipod *:focus,
.ipod *:focus-visible {
  outline: none;
}
.wheel__btn,
.wheel__center {
  -webkit-tap-highlight-color: transparent;
}

.ipod__screen {
  border-radius: 5px;
  padding: 9px;
  background: linear-gradient(180deg, #14161a, #26292f);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.75), 0 1px 0 rgba(255,255,255,.6);
}

.screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(175deg, var(--lcd-1), var(--lcd-2));
  color: var(--lcd-ink);
  font-size: 12px;
  line-height: 1.25;
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 22px rgba(20,40,60,.22);
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(197deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 42%);
  mix-blend-mode: soft-light;
}

.screen__bar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  padding: 3px 6px;
  background: linear-gradient(180deg, #f4f7f8, #c3ced4);
  border-bottom: 1px solid #8c9aa2;
  font-size: 10.5px; font-weight: 600;
}
.screen__title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -.01em;
}
.screen__battery {
  flex: none; width: 15px; height: 8px; border: 1px solid #4a545a; border-radius: 1.5px;
  position: relative; background: linear-gradient(180deg, #7de07d, #3aa93a); background-clip: padding-box;
}
.screen__battery::after {
  content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px;
  background: #4a545a; border-radius: 0 1px 1px 0;
}

/* ---- llistes ---- */

.screen__body { flex: 1; min-height: 0; display: flex; animation: paneIn .18s var(--out) both; }

.list {
  flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none;
  overflow: hidden; position: relative;
}
.list__inner {
  position: absolute; inset: 0;
  transition: transform .18s var(--out);
  will-change: transform;
}

.list li {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px;
  height: 22px;
  border-bottom: 1px solid rgba(120,140,155,.28);
  overflow: hidden;
  white-space: nowrap;
}
.list li .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.list li .arw { flex: none; opacity: .45; font-size: 11px; }
.list li .num { flex: none; width: 13px; text-align: right; opacity: .45; font-variant-numeric: tabular-nums; }
.list li .thumb {
  flex: none; width: 15px; height: 15px; border-radius: 1.5px; object-fit: cover;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.3);
}

.list li.is-sel {
  background: linear-gradient(180deg, #6ea8f0 0%, #2f6fd0 48%, #1c56b4 52%, #3b7fdc 100%);
  color: #fff; border-bottom-color: transparent;
}
.list li.is-sel .arw, .list li.is-sel .num { opacity: .8; }
.list li.is-cur .lbl::after { content: " ♪"; opacity: .65; }

.preview {
  flex: none; width: 42%;
  border-left: 1px solid rgba(120,140,155,.35);
  padding: 8px;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}
.preview.is-on { display: flex; }
.preview img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  transition: opacity .18s var(--out);
}
.preview img.is-swap { opacity: 0; }
.preview p { margin: 0; font-size: 9.5px; opacity: .7; line-height: 1.3; }

/* ---- ara sonant ---- */

.now {
  flex: 1; min-height: 0; display: flex; gap: 9px; padding: 9px; align-items: center;
  animation: paneIn .2s var(--out) both;
}
.now__art { flex: none; width: 40%; }
.now__art img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  transition: opacity .2s var(--out);
}
.now__art img.is-swap { opacity: 0; }
.now__info { flex: 1; min-width: 0; }
.now__count { margin: 0 0 5px; font-size: 9.5px; opacity: .6; }
.now__title {
  margin: 0; font-weight: 700; font-size: 12.5px; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.now__sub {
  margin: 1px 0 9px; font-size: 10.5px; opacity: .68;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.now__bar {
  height: 7px; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1px rgba(60,80,95,.5);
}
.now__bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(180deg, #6ea8f0, #2059ba);
  transition: width .25s linear;
}
.now__times {
  margin: 3px 0 0; display: flex; justify-content: space-between;
  font-size: 9px; opacity: .6; font-variant-numeric: tabular-nums;
}
.now__note { margin: 7px 0 0; font-size: 8.5px; opacity: .5; }

/* ---- spotify i text ---- */

.spot { flex: 1; min-height: 0; background: #000; animation: fade .2s var(--out) both; }
.spot iframe { width: 100%; height: 100%; border: 0; display: block; }

.text {
  flex: 1; min-height: 0; padding: 9px 10px; overflow: hidden;
  font-size: 10.5px; line-height: 1.45;
  animation: paneIn .2s var(--out) both;
}
.text h3 { margin: 0 0 5px; font-size: 12px; }
.text p { margin: 0 0 6px; opacity: .8; }
.text .k { opacity: .55; }

/* ---- click wheel ---- */

.wheel {
  position: relative;
  width: 192px; height: 192px;
  margin: 24px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #ffffff 0%, #f0f0f1 40%, #dcdde0 78%, #cbccd0 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.95),
    inset 0 -1px 3px rgba(0,0,0,.12),
    0 0 0 1px var(--shell-edge),
    0 3px 8px -3px rgba(0,0,0,.35);
  cursor: grab;
  touch-action: none;
}
.wheel:active { cursor: grabbing; }

.wheel__btn {
  position: absolute;
  background: none; border: 0; padding: 0;
  color: #6f7178; font: inherit;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  display: grid; place-items: center;
  width: 46px; height: 34px;
  transition: color .15s ease, transform .1s var(--out);
}
.wheel__btn.is-hit { color: var(--accent); transform: scale(.88); }
.wheel__btn svg { width: 17px; height: 17px; fill: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .wheel__btn:hover { color: #2c2e34; }
}

.wheel__btn--menu { top: 5px;  left: 50%; translate: -50% 0; }
.wheel__btn--play { bottom: 5px; left: 50%; translate: -50% 0; }
.wheel__btn--prev { left: 4px;  top: 50%; translate: 0 -50%; }
.wheel__btn--next { right: 4px; top: 50%; translate: 0 -50%; }

.wheel__center {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 74px; height: 74px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #fdfdfd, #e6e7ea 70%, #d2d3d7 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.12),
    inset 0 1px 1px rgba(255,255,255,.9),
    0 2px 5px -1px rgba(0,0,0,.28);
  transition: transform .1s var(--out);
}
.wheel__center:active, .wheel__center.is-hit { transform: scale(.93); }

/* ---- targeta sota l'iPod ---- */

.deck { width: 100%; text-align: center; }
.deck__label {
  margin: 0 0 8px; font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
}
.deck__title {
  margin: 0; font-size: 1.15rem; font-weight: 650;
  letter-spacing: -.025em; line-height: 1.2; text-wrap: balance;
}
.deck__album { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; text-wrap: balance; }
.deck__spotify {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 15px;
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s var(--out);
}
.deck__spotify svg { width: 15px; height: 15px; fill: currentColor; }
.deck__spotify:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .deck__spotify:hover { background: #1db954; color: #fff; border-color: #1db954; }
}
.deck__help {
  margin: 18px 0 0; font-size: 12px; line-height: 1.7;
  color: var(--ink-faint); text-wrap: pretty;
}
.deck__help kbd { font-size: 10.5px; padding: 0 4px; }
.deck__help strong { color: var(--ink-soft); font-weight: 600; }

/* ─────────────────────── DISCOGRAFIA ─────────────────────── */

.filters { display: flex; gap: 6px; }
.filter {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 13px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s var(--out);
}
.filter:active { transform: scale(.95); }
.filter.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .filter:hover:not(.is-on) { color: var(--ink); border-color: var(--ink-faint); }
}

.years { display: grid; gap: clamp(36px, 5vw, 64px); }

.year { margin: 0 0 20px; display: flex; align-items: center; gap: 16px; }
.year h3 {
  margin: 0; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.year::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.rel { position: relative; }
.rel__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
}
.rel__meta, .rel__title, .rel__sub { display: block; }
.rel__art {
  display: block;
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent);
  transition: transform .35s var(--out), box-shadow .35s var(--out);
}
.rel__art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.rel__btn:active .rel__art { transform: scale(.975); }

.rel__play {
  position: absolute; right: 11px; bottom: 11px;
  width: 42px; height: 42px; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.4);
  transition: opacity .25s var(--out), transform .25s var(--out);
}
.rel__play svg { width: 16px; height: 16px; fill: var(--ink); margin-left: 2px; }

@media (hover: hover) and (pointer: fine) {
  .rel__play { opacity: 0; transform: translateY(8px); }
  .rel__btn:hover .rel__play,
  .rel__btn:focus-visible .rel__play { opacity: 1; transform: none; }
  .rel__btn:hover .rel__art {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -20px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  }
}

.rel__meta { margin-top: 13px; }
.rel__title { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.rel__sub { margin-top: 3px; font-size: 13px; color: var(--ink-faint); }
.rel__sub .dot { opacity: .5; margin: 0 6px; }
.rel.is-current .rel__title { color: var(--accent); }
.rel.is-current .rel__art { box-shadow: 0 0 0 2px var(--accent), 0 10px 24px -14px rgba(0,0,0,.5); }

/* ─────────────────────── VÍDEOS ─────────────────────── */

.vidgroup + .vidgroup { margin-top: clamp(36px, 5vw, 60px); }

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.videos--small { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }

.vid { text-decoration: none; display: block; }
.vid__thumb {
  display: block;
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-2); aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent);
}
.vid__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--out), filter .3s ease;
}
.vid__thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.93) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23101116'/%3E%3C/svg%3E") no-repeat 54% 50% / 16px;
  opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .25s var(--out), transform .25s var(--out);
}
.vid:active .vid__thumb img { transform: scale(1.02); }
@media (hover: hover) and (pointer: fine) {
  .vid:hover .vid__thumb img { transform: scale(1.045); filter: brightness(.8); }
  .vid:hover .vid__thumb::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.vid__title {
  display: block; margin-top: 11px; font-size: 14.5px;
  font-weight: 500; letter-spacing: -.012em; color: var(--ink-soft);
  transition: color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .vid:hover .vid__title { color: var(--ink); }
}

/* ─────────────────────── SOBRE ─────────────────────── */

.about {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}

.about__text h2 { margin: 0 0 24px; font-size: clamp(1.65rem, 3.2vw, 2.6rem); letter-spacing: -.035em; font-weight: 650; }
.about__text p { margin: 0 0 18px; color: var(--ink-soft); max-width: 62ch; text-wrap: pretty; }
.about__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink) !important; }
.about__text em { font-style: normal; color: var(--ink); font-weight: 500; }
.about__text strong { font-weight: 600; color: var(--ink); }

blockquote {
  margin: 30px 0 0; padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: var(--card); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.05rem; letter-spacing: -.012em; text-wrap: pretty;
}
blockquote cite {
  display: block; margin-top: 12px; font-size: 12.5px; font-style: normal;
  color: var(--ink-faint); letter-spacing: 0;
}

.portrait { margin: 0 0 22px; max-width: 280px; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}
.portrait figcaption { margin-top: 12px; font-size: 12.5px; color: var(--ink-faint); }
.embed { border-radius: var(--r-md); overflow: hidden; }
.embed iframe { width: 100%; border: 0; display: block; border-radius: var(--r-md); }

/* ─────────────────────── FOOTER ─────────────────────── */

.foot { padding: clamp(44px, 6vw, 76px) var(--pad) 40px; }
.foot__name {
  margin: 0 0 22px; font-size: clamp(2rem, 7.6vw, 4.8rem);
  font-weight: 700; letter-spacing: -.045em; line-height: 1;
}
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; padding: 0; }
.foot__links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  transition: color .18s ease, background .18s ease,
              border-color .18s ease, transform .18s var(--out);
}
.foot__links svg { width: 15px; height: 15px; fill: currentColor; }
.foot__links a:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .foot__links a:hover { color: #fff; border-color: transparent; transform: translateY(-2px); }
}
.foot__fine { margin: 0; font-size: 12px; color: var(--ink-faint); max-width: 60ch; line-height: 1.6; }

/* ═══════════════════════ RESPONSIU ═══════════════════════ */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "player" "body";
    justify-items: start;
  }
  .hero__player {
    width: 100%; max-width: 420px;
    margin: 30px 0 4px;
    align-self: start;
  }
  .about { grid-template-columns: 1fr; }
  .about__side { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .portrait { margin: 0; }
}

@media (max-width: 720px) {
  .hero { justify-items: stretch; }
  .hero__player { max-width: none; align-items: center; }
  .about__side { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .filters { width: 100%; }
  .filter { flex: 1; }
}

/* telèfons: l'iPod s'ajusta a l'amplada disponible */
@media (max-width: 560px) {
  .ipod {
    --w: min(300px, calc(100vw - 2 * var(--pad)));
    padding: 15px 15px 19px;
    border-radius: 24px;
  }
  .wheel {
    width: min(192px, calc(var(--w) - 84px));
    height: min(192px, calc(var(--w) - 84px));
    margin-top: 20px;
  }
  .wheel__center { width: 38%; height: 38%; }
  .hero__quote { display: none; }
  .socials { gap: 8px; }
  .socials a { width: 42px; height: 42px; }
  .stats { gap: 20px; }
  .stats div { min-width: 82px; }
  .deck__help { font-size: 11.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr)); gap: 16px; }
  .rel__title { font-size: 14px; }
  .rel__sub { font-size: 12px; }
  .rel__play { width: 36px; height: 36px; right: 8px; bottom: 8px; }
  .videos, .videos--small { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vid__title { font-size: 13px; }
  .vid__kind { font-size: 11.5px; }
  .foot__links a { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
  .videos, .videos--small { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
