/* MIXART — pages Music et Sound Effect (js/audio.js) : liste d'écoute SoundZa.
   Même matière que le site : noir, Helvetica Neue, verre et liseré chromé de GET STARTED. */

.sz-featured { margin-bottom: 0; }

/* colonne : type (effets / ambiances) puis familles dépliables */
.sz-types { display: flex; gap: calc(2 * var(--u)); margin: 0 0 calc(16 * var(--u)) calc(-12 * var(--u)); }
.sz-types .gx-chip { height: calc(30 * var(--u)); padding: 0 calc(12 * var(--u)); font-size: calc(13 * var(--u)); }
.sz-fam { margin-bottom: calc(10 * var(--u)); }
.sz-fam-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: calc(4 * var(--u)) 0; text-align: left; transition: color 0.25s ease;
}
.sz-fam-head:hover { color: #cfcfcf; }
.sz-fam-head svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.3s var(--ease-out); }
.sz-fam.is-open .sz-fam-head svg { transform: rotate(180deg); }
.sz-fam ul { display: none; padding-bottom: calc(6 * var(--u)); }
.sz-fam.is-open ul { display: block; animation: sz-drop 0.35s var(--ease-out); }
@keyframes sz-drop { from { opacity: 0; transform: translateY(calc(-4 * var(--u))); } }
.sz-side .gx-opt { justify-content: space-between; }
.sz-fam-head { gap: calc(8 * var(--u)); }
.sz-fam-end { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); }
.sz-fam-head .gx-tag { color: #8a8a8a; }
.sz-chip-n { margin-left: calc(4 * var(--u)); font-size: 0.82em; opacity: 0.6; font-variant-numeric: tabular-nums; }
.gx-chip.is-on .sz-chip-n { opacity: 0.75; }
.gx-dcount { font-variant-numeric: tabular-nums; }

/* ---------- la liste ---------- */
.sz-list { border-top: 1px solid rgba(255,255,255,0.08); }
.sz-row {
  position: relative;
  display: grid; align-items: center;
  grid-template-columns: calc(44 * var(--u)) minmax(0, 1.25fr) minmax(0, 1.6fr) calc(92 * var(--u)) minmax(0, 0.9fr) auto;
  gap: 0 calc(20 * var(--u));
  padding: calc(12 * var(--u)) calc(14 * var(--u));
  margin: 0 calc(-14 * var(--u));
  border-radius: calc(12 * var(--u));
  animation: gx-in 0.5s var(--ease-out) both; animation-delay: calc(min(var(--i), 14) * 22ms);
  transition: background-color 0.25s ease;
}
.sz-row::after { content: ""; position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); bottom: 0; height: 1px; background: rgba(255,255,255,0.06); }
.sz-row:hover, .sz-row.is-open, .sz-row.is-playing, .sz-row.is-paused { background: rgba(255,255,255,0.035); }

/* ---------- le bouton d'écoute ----------
   Un disque de verre au liseré chromé (celui de GET STARTED). Au repos, un triangle ;
   en lecture, un petit égaliseur qui danse, et l'anneau autour avance avec le son ;
   au survol pendant la lecture, l'égaliseur laisse place à la pause. */
.sz-play {
  position: relative; display: grid; place-items: center;
  width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%;
  color: #fff;
  background: var(--glass-clear);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25), 0 calc(8 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,0.35);
  transition: transform 0.35s var(--ease-out), background 0.3s ease, box-shadow 0.3s ease;
}
.sz-play::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: var(--rim-w); background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.85;
}
.sz-play:hover, .sz-play:focus-visible {
  transform: scale(1.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.22) 45%, rgba(255,255,255,0.14) 100%);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), 0 0 calc(22 * var(--u)) rgba(255,255,255,0.16);
}
.sz-play:active { transform: scale(0.96); }
.sz-ring { position: absolute; inset: calc(-4 * var(--u)); width: calc(100% + 8 * var(--u)); height: calc(100% + 8 * var(--u)); transform: rotate(-90deg); pointer-events: none; }
.sz-ring circle { fill: none; stroke-width: 1.4; }
.sz-ring-bg { stroke: transparent; transition: stroke 0.3s ease; }
.sz-ring-fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 128.81; stroke-dashoffset: 128.81; filter: drop-shadow(0 0 2px rgba(255,255,255,0.6)); }
.sz-row.is-playing .sz-ring-bg, .sz-row.is-paused .sz-ring-bg, .sz-row.is-loading .sz-ring-bg { stroke: rgba(255,255,255,0.14); }
.sz-ico { position: absolute; width: calc(15 * var(--u)); height: calc(15 * var(--u)); fill: currentColor; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); transition: opacity 0.2s ease, transform 0.3s var(--ease-out); }
.sz-ico-play { transform: translateX(calc(1 * var(--u))); }
.sz-ico-pause { opacity: 0; transform: scale(0.6); }
.sz-eq { position: absolute; display: flex; align-items: flex-end; gap: calc(2 * var(--u)); height: calc(14 * var(--u)); opacity: 0; transition: opacity 0.2s ease; }
.sz-eq i { display: block; width: calc(2.4 * var(--u)); height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: sz-eq 0.9s ease-in-out infinite; animation-play-state: paused; }
.sz-eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.2s; }
.sz-eq i:nth-child(3) { animation-duration: 1.05s; animation-delay: -0.5s; }
.sz-eq i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.35s; }
@keyframes sz-eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.sz-row.is-playing .sz-ico-play, .sz-row.is-loading .sz-ico-play { opacity: 0; transform: scale(0.6); }
.sz-row.is-playing .sz-eq { opacity: 1; }
.sz-row.is-playing .sz-eq i { animation-play-state: running; }
.sz-row.is-playing .sz-play:hover .sz-eq { opacity: 0; }
.sz-row.is-playing .sz-play:hover .sz-ico-pause { opacity: 1; transform: none; }
.sz-row.is-loading .sz-ring { animation: sz-spin 0.9s linear infinite; }
.sz-row.is-loading .sz-ring-fg { stroke-dashoffset: 96 !important; }
@keyframes sz-spin { to { transform: rotate(270deg); } }

/* titre et sous-titre (un clic déplie la fiche) */
.sz-info { display: flex; flex-direction: column; min-width: 0; gap: calc(3 * var(--u)); text-align: left; color: inherit; }
.sz-title { font-size: calc(15 * var(--u)); color: #e4e4e4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.25s ease; }
.sz-sub { font-size: calc(12 * var(--u)); color: #6e6e6e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sz-info:hover .sz-title, .sz-row.is-playing .sz-title { color: #fff; }

/* forme d'onde : trait fin au repos, vraie forme une fois l'aperçu décodé */
.sz-wave { position: relative; height: calc(36 * var(--u)); cursor: pointer; }
.sz-wave canvas { display: block; width: 100%; height: 100%; }
.sz-row.has-wave .sz-wave canvas { animation: sz-wave-in 0.5s var(--ease-out); }
@keyframes sz-wave-in { from { opacity: 0; transform: scaleY(0.4); } }
.sz-time { position: absolute; right: 0; bottom: calc(-14 * var(--u)); font-size: calc(10.5 * var(--u)); letter-spacing: 0.04em; color: #6e6e6e; font-variant-numeric: tabular-nums; }
.sz-meta { font-size: calc(12 * var(--u)); color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sz-chips { display: flex; gap: calc(6 * var(--u)); min-width: 0; overflow: hidden; }
.sz-chips span {
  flex: none; padding: calc(2 * var(--u)) calc(8 * var(--u)); border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16); color: #9a9a9a;
  font-size: calc(10.5 * var(--u)); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}

/* télécharger : pastille sombre, comme « Download the App » */
.sz-dl {
  display: inline-flex; align-items: center; gap: calc(7 * var(--u));
  height: calc(32 * var(--u)); padding: 0 calc(13 * var(--u)) 0 calc(11 * var(--u)); border-radius: 999px;
  background: #1e1e1e; color: #d0d0d0; font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.sz-dl svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sz-dl:hover, .sz-dl:focus-visible { background: #2c2c2c; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.sz-dl-txt { min-width: calc(30 * var(--u)); text-align: center; font-variant-numeric: tabular-nums; }
.sz-dl.is-busy { color: #fff; }
.sz-dl.is-busy svg { animation: sz-bob 0.9s ease-in-out infinite; }
@keyframes sz-bob { 50% { transform: translateY(calc(2 * var(--u))); } }
.sz-dl.is-done { background: #fff; color: #0a0a0a; }

/* fiche dépliée */
.sz-detail { grid-column: 2 / -1; padding: calc(14 * var(--u)) 0 calc(6 * var(--u)); animation: sz-drop 0.35s var(--ease-out); }
.sz-desc { margin: 0 0 calc(12 * var(--u)); max-width: 70ch; font-size: calc(13.5 * var(--u)); line-height: 1.5; color: #a8a8a8; }
.sz-facts { margin: 0; display: grid; gap: calc(6 * var(--u)); }
.sz-facts div { display: grid; grid-template-columns: calc(80 * var(--u)) 1fr; gap: calc(12 * var(--u)); font-size: calc(12.5 * var(--u)); }
.sz-facts dt { color: #6e6e6e; text-transform: uppercase; letter-spacing: 0.06em; font-size: calc(10.5 * var(--u)); padding-top: calc(2 * var(--u)); }
.sz-facts dd { margin: 0; color: #cfcfcf; display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); }
.sz-facts a { color: #cfcfcf; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.sz-facts a:hover { color: #fff; }
.sz-tag { padding: calc(1 * var(--u)) calc(8 * var(--u)); border-radius: 999px; background: #1e1e1e; color: #bdbdbd; font-size: calc(11.5 * var(--u)); transition: background-color 0.2s ease, color 0.2s ease; }
.sz-tag:hover { background: #2f2f2f; color: #fff; }

.sz-note { font-size: calc(11 * var(--u)); letter-spacing: 0.04em; color: #8a8a8a; }
.sz-foot { display: flex; justify-content: center; align-items: center; min-height: calc(80 * var(--u)); }
.sz-spin { width: calc(18 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.18); border-top-color: #fff; animation: sz-spin2 0.8s linear infinite; }
.sz-spin[hidden], .sz-more[hidden] { display: none; }
@keyframes sz-spin2 { to { transform: rotate(360deg); } }
.sz-credit { margin: calc(10 * var(--u)) 0 calc(120 * var(--u)); font-size: calc(10 * var(--u)); letter-spacing: 0.08em; text-transform: uppercase; color: #5e5e5e; text-align: center; }
.sz-credit a { color: #9a9a9a; }
.sz-credit a:hover { color: #fff; }

.sz-toast {
  position: fixed; left: 50%; bottom: calc(110 * var(--u)); z-index: 60;
  max-width: min(90vw, calc(520 * var(--u))); padding: calc(10 * var(--u)) calc(18 * var(--u)); border-radius: 999px;
  background: rgba(30,30,30,0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 calc(14 * var(--u)) calc(34 * var(--u)) rgba(0,0,0,0.5);
  color: #eee; font-size: calc(13 * var(--u));
  opacity: 0; transform: translate(-50%, calc(8 * var(--u))); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.sz-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* écrans moyens : on retire les puces, puis le tempo */
@media (max-width: 1280px) {
  .sz-row { grid-template-columns: calc(44 * var(--u)) minmax(0, 1.2fr) minmax(0, 1.5fr) calc(86 * var(--u)) auto; }
  .sz-chips { display: none; }
}
@media (max-width: 900px) {
  .sz-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 14px; }
  .sz-play { width: 44px; height: 44px; }
  .sz-wave { grid-column: 2 / 3; grid-row: 2; height: 30px; }
  .sz-meta { display: none; }
  .sz-dl { grid-column: 3; grid-row: 1; }
  .sz-detail { grid-column: 1 / -1; }
  .sz-title { font-size: 15px; } .sz-sub { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sz-eq i, .sz-row.is-loading .sz-ring, .sz-spin { animation: none; }
}

/* ---------- Freesound : source, compte, licences, fenêtres ---------- */
.sz-src { display: inline-flex; padding: calc(3 * var(--u)); border-radius: 999px; background: #1e1e1e; box-shadow: inset 0 1px 0 rgba(255,255,255,0.035); }
.sz-src-btn { height: calc(28 * var(--u)); padding: 0 calc(13 * var(--u)); border-radius: 999px; color: #a9a9a9; font-size: calc(13.5 * var(--u)); transition: background-color 0.25s ease, color 0.25s ease; }
.sz-src-btn:hover { color: #fff; }
.sz-src-btn.is-on { background: #d0d0d0; color: #0a0a0a; }
.sz-acct { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(12.5 * var(--u)); color: #8a8a8a; }
.sz-acct:empty { display: none; }
.sz-acct-user { color: #dcdcdc; }
.sz-acct-user::before { content: ""; display: inline-block; width: calc(7 * var(--u)); height: calc(7 * var(--u)); margin-right: calc(6 * var(--u)); border-radius: 50%; background: #5fd38a; vertical-align: middle; }
.sz-acct-out { color: #8a8a8a; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.25); }
.sz-acct-out:hover { color: #fff; }
.sz-acct-in { text-decoration: none; font-size: calc(13.5 * var(--u)); }
.sz-acct-note { color: #b8864a; }
.sz-side-note { margin: calc(8 * var(--u)) 0 0; font-size: calc(10.5 * var(--u)); line-height: 1.45; color: #5f5f5f; }

.sz-lic {
  display: inline-block; margin-right: calc(8 * var(--u)); padding: calc(1.5 * var(--u)) calc(7 * var(--u));
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); color: #cfcfcf;
  font-size: calc(10 * var(--u)); letter-spacing: 0.05em; vertical-align: 1px;
}
.sz-lic.is-nc { border-color: rgba(191,97,45,0.7); color: #e0a07a; }
.sz-lic.is-blocked { border-color: rgba(255,255,255,0.12); color: #6e6e6e; text-decoration: line-through; }
.sz-dl:disabled { opacity: 0.35; pointer-events: none; }
.sz-attr { color: #bdbdbd; user-select: text; }
.sz-copy { margin-left: calc(4 * var(--u)); }

.sz-dialog { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.sz-dialog[hidden] { display: none; }
.sz-dialog-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.25s ease; }
.sz-dialog-card {
  position: relative; width: min(460px, 100%); padding: 26px 26px 20px; border-radius: 18px;
  background: #151515; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 30px 80px rgba(0,0,0,0.6);
  opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.sz-dialog.is-open .sz-dialog-bg { opacity: 1; }
.sz-dialog.is-open .sz-dialog-card { opacity: 1; transform: none; }
.sz-dialog h2 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.sz-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #b5b5b5; }
.sz-dialog p a { color: #fff; }
.sz-dialog-small { font-size: 12px !important; color: #7a7a7a !important; }
.sz-dialog-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 13.5px; color: #e4e4e4; cursor: pointer; }
.sz-dialog-check input { margin-top: 3px; accent-color: #fff; }
.sz-dialog-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.sz-dialog-cancel { height: 38px; padding: 0 16px; border-radius: 999px; color: #b5b5b5; font-size: 13px; }
.sz-dialog-cancel:hover { color: #fff; background: rgba(255,255,255,0.06); }
.sz-dialog-ok {
  position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 999px;
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; text-decoration: none;
  background: var(--glass-clear); box-shadow: inset 0 1px 2px rgba(255,255,255,0.25);
}
.sz-dialog-ok::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; background: var(--rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.sz-dialog-ok:disabled { opacity: 0.4; }
@media (max-width: 900px) { .sz-src-btn { height: 28px; font-size: 13px; padding: 0 12px; } .gx-tools { flex-wrap: wrap; } }
.sz-src[hidden] { display: none; }
