/**
 * The VYNE+ Catalog — the fourth way to choose a sound (design: LOLA/V5).
 *
 * A card in step 1 opens a sheet over the page: every artist who has given us
 * tracks, A to Z, searchable by artist or song; pick an artist to see their
 * songs, play one, then choose it. The rules below are the design's own, with
 * the wizard's variables (--green, --paper, --line …) left as they are, so the
 * sheet wears whichever edition's palette it was opened from.
 */

/* The sheet is appended to <body>, outside .wyne-cfg, so it cannot inherit the
   wizard's palette — without these it came up transparent, with the page
   showing straight through it. The bright edition's own values.
   (Dejan, 28. 9. 2026.) */
.cat-ov {
  --bg: #f4ede0; --bg-1: #ebe2d0; --bg-2: #e3d8c1; --bg-3: #d9ccb1;
  --paper: #faf5e9;
  --line: rgba(38, 30, 16, 0.12); --line-strong: rgba(38, 30, 16, 0.28);
  --gold: #b8924d; --gold-soft: #c9a661; --gold-deep: #8a6f33;
  --green: #1f3522; --green-soft: #2d4d31;
  --ink: #261e10; --ink-soft: #4a3f2a; --ink-mute: #7a6f5a;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}
.cat-ov * { box-sizing: border-box; }
.cat-sheet { background: var(--bg); }

/* ===== VYNE+ Catalog — 4th sound option ===== */
.sound-card.cat-card { background: linear-gradient(160deg, rgba(184,146,77,0.12), var(--paper) 62%); border-color: rgba(138,111,51,0.5); }
.sound-card.cat-card .ic { background: var(--gold-deep); color: var(--paper); }
.sound-card .badge-new { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid rgba(138,111,51,0.45); padding: 4px 8px; }
.cat-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cat-cta .hint { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-mute); margin-top: 5px; }
.cat-open, .cat-change { background: var(--green); color: var(--paper); border: none; padding: 14px 22px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; flex: 0 0 auto; }
.cat-open:hover { background: var(--green-soft); }
.cat-change { background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); padding: 11px 16px; letter-spacing: 0.2em; }
.cat-change:hover { border-color: var(--green); color: var(--green); }
.loaded-track .thumb.mono { font-family: var(--serif); font-size: 19px; background: linear-gradient(145deg, var(--c1, #2d4d31), var(--c2, #1f3522)); color: #f5ede0; }

.cat-ov { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 3vh 3vw; }
.cat-ov[hidden] { display: none; }
.cat-scrim { position: absolute; inset: 0; background: rgba(20,14,6,0.58); backdrop-filter: blur(5px); animation: catFade .25s ease; }
.cat-sheet { position: relative; width: min(1100px, 100%); height: min(88vh, 860px); background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,0.35); display: flex; flex-direction: column; animation: catUp .32s cubic-bezier(.2,.8,.2,1); }
@keyframes catFade { from { opacity: 0; } }
@keyframes catUp { from { opacity: 0; transform: translateY(18px); } }
.cat-head { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 18px; padding: 24px 30px 18px; border-bottom: 1px solid var(--line); }
.cat-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); }
.cat-head h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 38px; line-height: 1.05; color: var(--green); margin-top: 8px; }
.cat-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); color: var(--ink-soft); font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; padding: 9px 14px; cursor: pointer; margin-bottom: 14px; transition: border-color .2s, color .2s; }
.cat-back[hidden] { display: none; }
.cat-back:hover { border-color: var(--green); color: var(--green); }
.cat-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); background: var(--paper); padding: 0 14px; height: 46px; width: 300px; }
.cat-search:focus-within { border-color: var(--green); }
.cat-search svg { width: 16px; height: 16px; color: var(--ink-mute); flex: 0 0 auto; }
.cat-search input { border: none; background: transparent; outline: none; font-family: var(--sans); font-size: 14px; color: var(--ink); width: 100%; }
.cat-x { width: 46px; height: 46px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); font-size: 24px; line-height: 1; cursor: pointer; }
.cat-x:hover { border-color: var(--green); color: var(--green); }
.cat-az { display: flex; gap: 2px; padding: 10px 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; background: var(--bg-1); }
.cat-az::-webkit-scrollbar { display: none; }
.cat-az button { flex: 1 0 30px; min-width: 30px; height: 34px; background: none; border: none; font-family: var(--serif); font-size: 18px; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s; }
.cat-az button:hover:not(:disabled) { background: var(--paper); color: var(--green); }
.cat-az button.on { background: var(--green); color: var(--paper); }
.cat-az button:disabled { color: rgba(38,30,16,0.22); cursor: default; }
.cat-body { position: relative; flex: 1; overflow-y: auto; padding: 4px 30px 34px; overscroll-behavior: contain; }
.cat-sec { padding-top: 22px; }
.cat-sec-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-sec-h .l { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold-deep); }
.cat-sec-h .n { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-artist { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.cat-artist:hover { border-color: var(--gold-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(38,30,16,0.08); }
.cat-artist.picked { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.cat-mono { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; color: #f5ede0; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.cat-mono.lg { width: 96px; height: 96px; font-size: 36px; }
.cat-a-body { flex: 1; min-width: 0; }
.cat-a-name { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-a-meta { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }
.cat-a-go { color: var(--gold-deep); font-size: 16px; flex: 0 0 auto; transition: transform .2s; }
.cat-artist:hover .cat-a-go { transform: translateX(3px); }
.cat-hero { display: flex; align-items: center; gap: 22px; padding: 26px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cat-hero .nm { font-family: var(--serif); font-size: 40px; line-height: 1.05; color: var(--ink); }
.cat-hero .sub { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-mute); margin-top: 4px; }
.cat-hero .mt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); margin-top: 10px; }
.cat-tracks { display: flex; flex-direction: column; }
.cat-track { display: grid; grid-template-columns: 42px 30px minmax(0,1fr) 22px auto; align-items: center; gap: 14px; padding: 14px 12px; border-bottom: 1px solid var(--line); transition: background .2s; }
.cat-track:hover { background: rgba(184,146,77,0.06); }
.cat-track.playing { background: rgba(31,53,34,0.05); }
.cat-track.chosen { background: rgba(184,146,77,0.11); }
.cat-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-deep); background: transparent; color: var(--gold-deep); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.cat-play:hover, .cat-track.playing .cat-play { background: var(--gold-deep); color: var(--paper); }
.cat-play svg { width: 13px; height: 13px; }
.cat-t-no { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); }
.cat-t-body { min-width: 0; }
.cat-t-name { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.2; }
.cat-t-meta { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 3px; }
.cat-t-prog { display: block; height: 2px; background: var(--line); margin-top: 9px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.cat-track.playing .cat-t-prog { opacity: 1; }
.cat-t-prog i { display: block; height: 100%; width: 0; background: var(--gold-deep); }
.cat-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; opacity: 0; }
.cat-track.playing .cat-eq { opacity: 1; }
.cat-eq i { width: 3px; background: var(--gold-deep); height: 30%; animation: catEq .9s ease-in-out infinite; }
.cat-eq i:nth-child(2) { animation-delay: .2s; } .cat-eq i:nth-child(3) { animation-delay: .4s; } .cat-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes catEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.cat-choose { background: var(--green); color: var(--paper); border: 1px solid var(--green); padding: 12px 18px; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; min-width: 116px; transition: background .2s; }
.cat-choose:hover { background: var(--green-soft); }
.cat-track.chosen .cat-choose { background: transparent; color: var(--gold-deep); border-color: var(--gold-deep); }
.cat-note { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mute); margin-top: 18px; }
.cat-empty { padding: 60px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-mute); }
@media (max-width: 860px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-head { grid-template-columns: 1fr auto; }
  .cat-search { grid-column: 1 / -1; width: 100%; order: 3; }
}
@media (max-width: 560px) {
  .cat-ov { padding: 0; }
  .cat-sheet { height: 100dvh; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-track { grid-template-columns: 40px minmax(0,1fr) auto; }
  .cat-t-no, .cat-eq { display: none; }
  .cat-body, .cat-head { padding-left: 18px; padding-right: 18px; }
}

/* The catalog's panel is a single row in the design; ours inherited the 216px
   floor that keeps the taller upload and record panels from jumping, and stood
   two thirds empty. (Dejan, 8. 10. 2026.) */
.wyne-cfg .sound-detail.cat-detail { min-height: 0; padding: 16px 20px; }

/* --- a phone opens an artist in place ------------------------------------
 * The songs fold out under the artist instead of taking over the sheet, and
 * the arrow turns to say which way it goes. Above the list, two buttons open
 * or close every artist at once. (Dejan, 16. 10. 2026.) */
.cat-ov .cat-bulk { display: flex; gap: 8px; padding: 2px 0 14px; }
.cat-ov .cat-bulk button {
  flex: 1; background: none; border: 1px solid var(--line, rgba(38,30,16,.18));
  border-radius: 3px; padding: 9px 10px; cursor: pointer;
  font-family: var(--mono, ui-monospace, monospace); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute, #7a6f5a);
}
.cat-ov .cat-bulk button:hover { border-color: var(--green, #1f3522); color: var(--green, #1f3522); }
.cat-ov .cat-artist .cat-a-go { transition: transform .2s ease; }
.cat-ov .cat-artist.is-open .cat-a-go { transform: rotate(180deg); }
.cat-ov .cat-songs { margin: -4px 0 10px; padding: 2px 0 0; }
.cat-ov .cat-songs .cat-track { background: rgba(38, 30, 16, .025); }
@media (min-width: 861px) {
  .cat-ov .cat-bulk, .cat-ov .cat-songs { display: none; }
}
