:root {
  --ink: #161616;
  --paper: #242424;
  --cream: #f7f1e7;
  --white: #fffdf7;
  --canvas: #11110f;
  --muted: #625f59;
  --orange: #ff7a35;
  --yellow: #ffdc55;
  --pink: #f06be7;
  --purple: #716cff;
  --mint: #65d6ae;
  --grey: #d9d4cb;
  --line: #0b0b0b;
  --radius-xs: 5px;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--mono);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button {
  appearance: none;
  -webkit-appearance: none;
  color: inherit;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.noise { display: none; }

.site-header {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
}
.brand {
  /* min-width: 220px; */
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--orange);
  text-decoration: none;
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
}
.brand-mark::before, .brand-mark::after, .brand-mark i {
  content: "";
  position: absolute;
  border: 1px solid var(--orange);
  border-radius: 50%;
}
.brand-mark::before { width: 21px; height: 21px; }
.brand-mark::after { width: 11px; height: 11px; }
.brand-mark i { width: 4px; height: 4px; background: var(--orange); }

.nav-tabs { display: flex; align-items: flex-end; justify-content: flex-end; gap: 3px; margin-left: auto; padding: 0 9px; }
.nav-tab {
  min-width: 126px;
  height: 45px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nav-tab:hover { background: rgba(255,255,255,.1); }
/* .nav-tab.is-active { background: var(--paper); color: var(--ink); } */
.view { display: none; }
.view.is-active { display: block; }

#discover-view {
  width: 100%;
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 68px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
}
.hero { padding: 0; }
.hero-panel {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
}
.search-box {
  width: min(760px, 100%);
  min-height: 66px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 0 auto;
  padding-left: 18px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: left;
}
.search-box:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.search-box svg { width: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.search-box input { width: 100%; padding: 18px 3px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 20px; }
.search-box input::placeholder { color: #77736c; }
.search-box button {
  align-self: stretch;
  padding: 0 26px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--yellow);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.search-box button:hover { background: var(--orange); }
.search-box button:disabled { opacity: .55; cursor: progress; }

.eyebrow { margin: 0 0 8px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 22px; height: 2px; margin: 0 8px 2px 0; background: var(--orange); }
h1, h2, h3 { margin-top: 0; }

.results-section {
  width: 100%;
  margin: clamp(30px, 5vw, 52px) 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2, .collection-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: .88;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.text-button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--yellow);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.text-button:hover { background: var(--orange); }

.artist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.artist-option {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--grey);
  text-align: left;
  cursor: pointer;
}
.artist-option:nth-child(3n + 1) { background: var(--yellow); }
.artist-option:nth-child(3n + 3) { background: var(--paper); }
.artist-option:hover { background: var(--orange); }
.artist-avatar {
  width: 53px;
  height: 53px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 25px;
}
.artist-details { min-width: 0; flex: 1; }
.artist-details strong { display: block; font-family: var(--display); font-size: 24px; line-height: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.artist-details span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.artist-arrow { font-size: 21px; }

.artist-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--yellow);
}
.artist-summary .artist-avatar { width: 55px; height: 55px; }
.artist-summary h3 { margin: 0 0 3px; font-family: var(--display); font-size: 29px; text-transform: uppercase; }
.artist-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.back-button { margin-left: auto; background: var(--ink); color: var(--white); }

.album-grid, .favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.album-card {
  min-width: 0;
  min-height: 168px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.album-card:nth-child(3n + 1) { background: var(--yellow); }
.album-card:nth-child(3n + 2) { background: var(--grey); }
.album-card:nth-child(3n + 3) { background: var(--cream); }
.cover-wrap {
  grid-row: 1 / span 2;
  position: relative;
  min-height: 166px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #aaa;
}
.open-album-button { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; background: transparent; cursor: pointer; }
.open-album-button:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
.album-cover { width: 100%; height: 100%; display: block; position: relative; object-fit: cover; transition: filter .2s, transform .2s; }
.album-card:hover .album-cover { transform: scale(1.025); filter: contrast(1.05); }
.cover-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); }
.cover-placeholder::before, .cover-placeholder::after { content: ""; position: absolute; border: 1px solid #6a6869; border-radius: 50%; }
.cover-placeholder::before { width: 70%; aspect-ratio: 1; }
.cover-placeholder::after { width: 42%; aspect-ratio: 1; }
.cover-placeholder span { color: var(--orange); font-size: 27px; }
.favorite-button, .collection-button {
  position: absolute;
  z-index: 2;
  top: 8px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}
.favorite-button { right: 8px; }
.collection-button { left: 8px; font-size: 12px; }
.collection-button:hover, .collection-button.is-collected { background: var(--ink); color: var(--yellow); }
.favorite-button svg { width: 14px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.favorite-button:hover, .favorite-button.is-favorite { background: var(--orange); }
.favorite-button.is-favorite svg { fill: var(--ink); }
.album-info { min-width: 0; padding: 14px 16px 10px; }
.album-year {
  width: max-content;
  margin: 0 0 10px auto;
  padding: 2px 5px;
  background: var(--pink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
}
.album-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 2.8vw, 35px);
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.album-artist {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}
.album-artist:hover { color: var(--orange); }
.card-open-button {
  min-height: 39px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.card-open-button:hover { background: var(--orange); color: var(--ink); }

.collection-view {
  width: 100%;
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 68px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0;
}
.collection-header { margin: 0 0 34px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.favorites-grid { margin: 0 auto; }

.album-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: none;
  overflow: hidden;
}
.album-dialog::backdrop { background: var(--canvas); }
.dialog-close {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 5;
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
#dialog-content { height: 100%; }
.dialog-layout { display: grid; grid-template-columns: minmax(280px, 36%) 1fr; height: 100%; min-height: 0; }
.dialog-visual { padding: 30px; overflow-y: auto; background: var(--ink); color: var(--white); }
.dialog-cover { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; border: 1px solid #777; border-radius: var(--radius-sm); background: #333; }
.dialog-visual .eyebrow { width: max-content; margin: 22px 0 8px; padding: 2px 5px; background: var(--pink); color: var(--ink); }
.dialog-visual h2 { margin: 0; font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: .86; text-transform: uppercase; }
.dialog-artist { margin: 10px 0 0; color: #bbb; font-size: 13px; text-transform: uppercase; }
.dialog-actions { display: grid; gap: 8px; margin-top: 24px; }
.primary-action, .secondary-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border: 0;
  border-radius: var(--radius-xs);
  text-decoration: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.primary-action { background: var(--yellow); color: var(--ink); }
.secondary-action { background: rgba(255,255,255,.1); color: var(--white); }
.shop-label { margin: 13px 0 0; color: #aaa; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.shop-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-action { display: grid; gap: 3px; padding: 11px 10px; border: 1px solid #777; border-radius: var(--radius-xs); color: white; text-decoration: none; }
.shop-action:hover { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.shop-action strong { font-size: 11px; text-transform: uppercase; }
.shop-action span { color: #aaa; font-size: 9px; }
.shop-action:hover span { color: var(--ink); }
.dialog-main { padding: clamp(30px, 5vw, 62px); overflow: auto; }
.dialog-main h3 { margin: 0 0 7px; font-family: var(--display); font-size: clamp(36px, 5vw, 60px); line-height: .9; text-transform: uppercase; }
.dialog-intro { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.track-list { margin: 0; padding: 0; overflow: hidden; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-xs); }
.track-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 11px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--yellow);
}
.track-item:nth-child(even) { background: var(--grey); }
.track-item:last-child { border-bottom: 0; }
.track-number, .track-duration { color: var(--muted); font-size: 12px; }
.track-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.youtube-link { display: inline-flex; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-xs); color: var(--ink); background: var(--cream); text-decoration: none; font-size: 9px; font-weight: 900; }
.youtube-link:hover { background: var(--orange); }
.track-loading { min-height: 230px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.dialog-error { padding: 30px 0; color: var(--muted); line-height: 1.6; }

.empty-state, .error-state, .loading-state {
  min-height: 270px;
  display: grid;
  place-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--yellow);
  text-align: center;
}
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 23px; }
.empty-state h2, .error-state h3 { margin: 0 0 8px; font-family: var(--display); font-size: 29px; line-height: .95; text-transform: uppercase; }
.empty-state p, .error-state p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-state button { margin-top: 18px; padding: 12px 17px; border: 0; border-radius: var(--radius-xs); background: var(--ink); color: var(--white); cursor: pointer; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.loader { width: 34px; height: 34px; border: 3px solid rgba(0,0,0,.15); border-top-color: var(--orange); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-xs); background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 800; transform: translateY(80px); opacity: 0; transition: .2s; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.install-banner {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  line-height: 1.5;
  animation: slideUp .25s ease;
}
.install-banner p { margin: 0; flex: 1; }
.install-banner strong { color: var(--yellow); }
.install-banner-close { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Mise en page mobile unique, appliquée à toutes les largeurs */
  .brand { min-width: 175px; }
  .nav-tab { min-width: 105px; }
  .album-grid, .favorites-grid { grid-template-columns: 1fr; }
  .site-header {
    width: 100%;
    height: calc(60px + env(safe-area-inset-top));
    margin-top: 0;
    padding-top: env(safe-area-inset-top);
    top: 0;
    border-left: 0;
    border-right: 0;
  }
  .brand { min-width: 53px; width: 53px; padding: 0 11px; font-size: 0; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-tabs { width: min(300px, calc(100% - 53px)); flex: 0 1 300px; padding: 0 4px; gap: 2px; }
  .nav-tab { min-width: 0; flex: 1; height: 46px; padding: 0 4px; font-size: 12px; letter-spacing: -.02em; }
  #discover-view {
    width: 100%;
    min-height: calc(100vh - 60px - env(safe-area-inset-top));
    min-height: calc(100dvh - 60px - env(safe-area-inset-top));
    margin-top: 0;
    padding: 16px 12px 42px;
    border-top: 0;
    border-radius: 0;
  }
  .hero { padding: 0; }
  .search-box { grid-template-columns: 32px 1fr; gap: 0; padding: 0; }
  .search-box svg { justify-self: center; }
  .search-box button { grid-column: 1 / -1; min-height: 48px; border-top: 0; border-left: 0; border-radius: var(--radius-xs); }
  .results-section { margin-top: 28px; }
  .collection-view {
    width: 100%;
    min-height: calc(100vh - 60px - env(safe-area-inset-top));
    min-height: calc(100dvh - 60px - env(safe-area-inset-top));
    padding: 28px 12px 42px;
    border-radius: 0;
  }
  .section-heading { align-items: center; }
  .section-heading h2, .collection-header h1 { font-size: 47px; }
  .text-button { max-width: 105px; padding: 8px; }
  .artist-list { grid-template-columns: 1fr; }
  .artist-option { min-height: 92px; }
  .artist-summary { align-items: flex-start; }
  .artist-summary .back-button { font-size: 0; }
  .artist-summary .back-button::after { content: "←"; font-size: 18px; }
  .album-grid, .favorites-grid { gap: 10px; }
  .album-card { min-height: 140px; grid-template-columns: 118px minmax(0, 1fr); }
  .cover-wrap { min-height: 138px; }
  .favorite-button, .collection-button { top: 6px; width: 28px; height: 28px; }
  .favorite-button { right: 6px; }
  .collection-button { left: 6px; }
  .album-info { padding: 10px 11px 7px; }
  .album-year { margin-bottom: 7px; }
  .album-title { font-size: 24px; }
  .album-artist { margin-top: 7px; font-size: 12px; }
  .card-open-button { min-height: 38px; padding: 0 10px; font-size: 11px; }
  .collection-header { margin-bottom: 24px; }
  .album-dialog { overflow-y: auto; }
  #dialog-content { height: auto; min-height: 100%; }
  .dialog-layout { grid-template-columns: 1fr; height: auto; min-height: 100vh; min-height: 100dvh; }
  .dialog-visual { display: grid; grid-template-columns: 110px 1fr; gap: 17px; padding: calc(20px + env(safe-area-inset-top)) 20px 20px; overflow: visible; }
  .dialog-visual .eyebrow { margin-top: 2px; }
  .dialog-visual h2 { font-size: 29px; }
  .dialog-actions { grid-column: 1 / -1; margin-top: 0; }
  .dialog-main { padding: 28px 12px 38px; }
  .dialog-main h3 { font-size: 41px; }
  .track-item { grid-template-columns: 20px 1fr auto; gap: 7px; padding: 8px 10px; }
  .track-duration { display: none; }
  .track-name { font-size: 15px; }
  .youtube-link { padding: 6px; font-size: 0; }
  .youtube-link::after { content: "▶"; font-size: 9px; }

/* Direction graphique inspirée de l'affiche fournie */
body {
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 30px 30px;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  min-height: calc(92px + env(safe-area-inset-top));
  background:
    linear-gradient(90deg, rgba(113,108,255,.18), transparent 45%),
    var(--ink);
  border: 0;
}
.brand {
  min-width: 62px;
  width: 62px;
  padding: 0 10px;
  background: var(--yellow);
  border-right: 3px solid #050505;
  font-size: 0;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--purple);
  border: 4px solid #050505;
  box-shadow: 5px 5px 0 #050505;
}
.brand-mark::before, .brand-mark::after, .brand-mark i { border-color: var(--yellow); }
.brand-mark i { background: var(--yellow); }
.nav-tabs {
  width: min(calc(100% - 12px), 430px);
  max-width: 430px;
  min-width: 0;
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  display: grid;
  grid-template-columns: 74px max-content max-content;
  align-items: end;
  justify-content: center;
  gap: 6px;
  flex: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  transform: translateX(-50%);
}
.nav-tab {
  position: relative;
  z-index: 1;
  width: auto;
  /* height: 60px; */
  margin-left: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0 clamp(8px, 2.8vw, 14px);
  border: 4px solid #050505;
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  font-family: var(--display);
  font-size: 22px;
  line-height: .9;
  letter-spacing: .025em;
  text-shadow: 3px 3px 0 rgba(255,255,255,.78);
  white-space: nowrap;
  overflow: hidden;
  transition: height .2s, background .2s, color .2s;
}
.nav-tab:nth-child(1) { background: var(--yellow); color: var(--ink); }
.nav-tab:nth-child(2) { background: var(--purple); color: var(--ink); text-shadow: 4px 4px 0 var(--yellow); }
.nav-tab:nth-child(3) { background: var(--pink); color: var(--ink); text-shadow: 3px 3px 0 var(--yellow); }
.brand.nav-tab {
  width: 100%;
  padding: 0;
  text-decoration: none;
  text-shadow: none;
  height: 60px;
}
.nav-tab svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-tab:first-child { margin-left: 0; }
/* .nav-tab.is-active {
  height: 74px;
} */
/* .nav-tab:hover { background: var(--pink); color: var(--ink); } */

#discover-view, .collection-view {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0,0,0,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.065) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 0;
  color: var(--ink);
  padding: 25px 14px 48px;
}
#discover-view { background-color: var(--yellow); }
#favorites-view { background-color: var(--purple); }
#collection-view { background-color: var(--pink); }

.recommendations-section {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 4px solid var(--ink);
}
.recommendations-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.recommendations-heading > div { min-width: 0; }
.recommendations-heading p {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.recommendations-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(50px, 15vw, 70px);
  line-height: .8;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--purple);
}
.recommendations-heading span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 900;
}
.recommendations-refresh {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 13px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--pink);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
}
.recommendations-refresh span { display: inline; margin: 0 0 0 4px; font-size: 19px; }
.recommendations-refresh:disabled { opacity: .55; cursor: progress; }
.recommendations-grid { gap: 18px; }
.recommendations-loading,
.recommendations-message {
  min-height: 132px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 22px;
  border: 3px solid var(--ink);
  border-radius: 15px;
  background: rgba(255,255,255,.42);
  text-align: center;
}
.recommendations-loading p,
.recommendations-message p { margin: 0; font-weight: 800; }
.recommendations-message strong {
  font-family: var(--display);
  font-size: 27px;
  text-transform: uppercase;
}
.hero, .results-section, .collection-header, .favorites-grid, #favorites-content, #collection-content {
  position: relative;
  z-index: 1;
}

.search-box {
  width: min(860px, 100%);
  min-height: 72px;
  background: var(--white);
  border: 3px solid #050505;
  border-radius: 14px;
}
.search-box:focus-within { outline: 3px solid var(--pink); outline-offset: 4px; }
.search-box svg { width: 26px; stroke-width: 2.4; }
.search-box input {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}
.search-box button {
  min-width: 0;
  min-height: 54px;
  border-left: 0;
  background: var(--yellow);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .02em;
}
.search-box button:hover { background: var(--pink); }

.results-section { margin-top: clamp(48px, 7vw, 82px); }
.section-heading {
  flex-direction: column;
  align-items: stretch;
  gap: 17px;
  margin-bottom: 34px;
  padding-bottom: 23px;
  border-bottom: 3px solid rgba(0,0,0,.82);
}
.section-heading > div { width: 100%; min-width: 0; }
.section-heading h2, .collection-header h1 {
  max-width: 850px;
  color: var(--ink);
  font-size: clamp(53px, 15vw, 70px);
  line-height: .82;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-shadow: 4px 4px 0 var(--purple);
}
.section-heading h2 { max-width: 100%; }
.text-button {
  max-width: 138px;
  align-self: flex-end;
  padding: 10px 13px;
  border: 3px solid #050505;
  border-radius: 11px;
  background: var(--pink);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .02em;
}
.text-button:hover { background: var(--yellow); }

.artist-list { gap: 16px; }
.artist-option {
  min-height: 106px;
  padding: 15px;
  border: 3px solid #050505;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  transition: transform .15s;
}
.artist-option:nth-child(3n + 1) { background: var(--yellow); }
.artist-option:nth-child(3n + 2) { background: var(--purple); }
.artist-option:nth-child(3n + 3) { background: var(--pink); }
.artist-option:hover { background: var(--mint); transform: translate(-2px, -2px); }
.artist-avatar {
  width: 58px;
  height: 58px;
  border: 3px solid #050505;
  background: var(--cream);
  color: var(--ink);
  font-size: 28px;
}
.artist-details strong { font-size: 28px; }
.artist-details span, .artist-summary p { color: #34312d; font-weight: 700; }
.artist-arrow { font-size: 29px; font-weight: 900; }
.artist-summary {
  margin-bottom: 30px;
  padding: 17px;
  border: 3px solid #050505;
  border-radius: 14px;
  background: var(--mint);
  color: var(--ink);
}
.artist-summary h3 { font-size: 34px; }

.album-grid, .favorites-grid { gap: 18px; }
.album-card {
  min-height: 158px;
  grid-template-columns: 126px minmax(0, 1fr);
  border: 3px solid #050505;
  border-radius: 15px;
  color: var(--ink);
}
.album-card:nth-child(3n + 1) { background: var(--yellow); }
.album-card:nth-child(3n + 2) { background: var(--purple); }
.album-card:nth-child(3n + 3) { background: var(--pink); }
.cover-wrap { min-height: 152px; border-right: 3px solid #050505; }
.album-info { padding: 12px 12px 8px; }
.album-year {
  padding: 4px 8px;
  border: 2px solid #050505;
  border-radius: 999px;
  background: var(--mint);
  font-weight: 900;
}
.album-title { font-size: 28px; }
.album-artist { color: #302d29; font-size: 13px; font-weight: 900; }
.favorite-button, .collection-button {
  border: 3px solid #050505;
}
.favorite-button:hover, .favorite-button.is-favorite { background: var(--pink); }
.card-open-button {
  min-height: 42px;
  border-top: 3px solid #050505;
  background: #171717;
  color: var(--white);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .03em;
}
.card-open-button:hover { background: var(--mint); color: var(--ink); }

.collection-header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 3px solid rgba(0,0,0,.82);
}
#favorites-view .collection-header h1 { color: var(--white); text-shadow: 5px 5px 0 var(--pink); }
#collection-view .collection-header h1 { color: var(--ink); text-shadow-color: var(--yellow); }
.artist-groups { min-width: 0; max-width: 100%; display: grid; gap: 14px; }
.artist-group { width: 100%; min-width: 0; max-width: 100%; display: grid; gap: 14px; }
.artist-group-header {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 12px 13px;
  border: 3px solid #050505;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.artist-group-header:hover { background: #2d2d2d; }
.artist-group-header:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.artist-group-header h2 {
  width: 0;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 30px;
  line-height: .9;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 3px 3px 0 var(--purple);
}
.artist-group-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 2px solid #050505;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
}
.artist-group-grid[hidden] { display: none; }
#favorites-view .artist-group-count { background: var(--pink); }
#collection-view .artist-group-count { background: var(--yellow); }
.empty-state, .error-state, .loading-state {
  padding: 28px 18px;
  border: 3px solid #050505;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
}
.empty-state h2, .error-state h3 { font-size: 36px; }
.empty-state p, .error-state p { color: #37332e; }
.empty-state button {
  border: 3px solid #050505;
  background: var(--purple);
  font-family: var(--display);
  font-size: 14px;
}

.album-dialog { background: var(--cream); }
.dialog-visual {
  background-color: #1b1b1b;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 30px 30px;
}
.dialog-cover { border: 4px solid #050505; }
.dialog-visual .eyebrow { background: var(--mint); border: 2px solid #050505; color: var(--ink); }
.dialog-visual h2 { font-size: 34px; text-shadow: 3px 3px 0 var(--purple); }
.dialog-main {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.dialog-main h3 { font-size: 48px; text-shadow: 3px 3px 0 var(--pink); }
.primary-action { background: var(--yellow); border: 3px solid #050505; }
.secondary-action { background: var(--purple); color: var(--white); border: 3px solid #050505; }
.shop-action { border: 3px solid #050505; background: var(--pink); }
.track-list { border: 3px solid #050505; border-radius: 13px; }
.track-item { border-bottom: 2px solid #050505; background: var(--yellow); }
.track-item:nth-child(even) { background: var(--pink); }
.track-name { font-size: 18px; }
.youtube-link { border: 2px solid #050505; background: var(--mint); font-weight: 900; }
.dialog-close { border: 3px solid #050505; background: var(--yellow); }
.toast { border: 3px solid #050505; background: var(--mint); }
