/* The Discover tab (discover/view.js) and the dialogs of social.js: public songs, creators, a public song's page.
   The covers and the player bar are Create's (.cr-art, .cr-player in create.css). Phone first: two cards to a row; wider screens
   fit as many 190 px cards as there is room for. The tab does not scroll; .ds-scroll does, above the player bar. */
.view.discover { overflow: hidden; --cr-pl-h: 64px; }
.ds { display: flex; flex-direction: column; height: 100%; }
.ds-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ds-page { max-width: 1180px; margin: 0 auto; padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 14px; }
.ds-page h2 { margin: 6px 0 8px; font-size: 16px; }
.ds-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ds-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.ds-head .cr-search { flex: 1 1 220px; max-width: 460px; }
.ds-head #ds-me { margin-left: auto; }
.ds-mebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 12px 3px 4px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink); }
.ds-mebtn:hover { border-color: var(--ink); }
.ds-tabs { align-self: flex-start; }
.ds-tabs button { padding: 7px 14px; font-size: 13px; }
.ds-wait { display: flex; align-items: center; gap: 8px; margin: 24px 4px; font-size: 14px; color: var(--muted); }
.ds-wait .cr-spin { position: static; flex: none; width: 16px; height: 16px; border-color: var(--line-strong); border-top-color: var(--ink); }
.ds-soft { color: var(--faint); }
.ds-more { display: flex; justify-content: center; margin-top: 16px; }
.ds .cr-empty .btn { margin-top: 10px; }

/* a creator's picture */
.ds-av { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; position: relative;
  background: linear-gradient(135deg, hsl(var(--h1) 70% 58%), hsl(var(--h2) 70% 46%)); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; }
.ds-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-av.xs { width: 20px; height: 20px; font-size: 10px; }
.ds-av.sm { width: 30px; height: 30px; font-size: 13px; }
.ds-av.md { width: 64px; height: 64px; font-size: 24px; }
.ds-av.xl { width: 96px; height: 96px; font-size: 38px; }

/* creators to look at */
.ds-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.ds-person { flex: none; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); }
.ds-person-b { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: var(--ink); text-align: center; }
.ds-person-b b, .ds-person-b small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-person-b b { font-size: 13px; }
.ds-person-b small { font-size: 11px; color: var(--muted); }
.ds-person-b:hover b { text-decoration: underline; }
.ds-you { min-height: 34px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.ds-follow { min-width: 92px; }
.ds-follow[aria-pressed="true"] { background: var(--raised); color: var(--muted); }
.ds-follow[aria-pressed="false"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* song cards */
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.ds-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds-cover { display: block; padding: 0; border: 0; background: none; border-radius: 16px; }
.ds-cover .cr-art.lg { box-shadow: var(--shadow); }
.ds-cover .cr-dur { right: 8px; bottom: 8px; font-size: 11px; line-height: 17px; padding: 0 5px; }
.ds-cover .cr-ov svg.i { width: 40px; height: 40px; }
.ds-cover:hover .cr-ov, .ds-cover:focus-visible .cr-ov, .ds-card.on .cr-ov { opacity: 1; }
.ds-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ds-title { padding: 0; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-title:hover { text-decoration: underline; }
.ds-card.on .ds-title { color: var(--cr-a2); }
.ds-by { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 0; border: 0; background: none; font-size: 12.5px; color: var(--muted); text-align: left; }
.ds-by > span:not(.ds-av) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-by:hover { color: var(--ink); }
.ds-style { margin: 0; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-style:empty { display: none; }
.ds-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ds-stats > span, .ds-like, .ds-cm { display: inline-flex; align-items: center; gap: 3px; }
.ds-stats svg.i { width: 13px; height: 13px; }
.ds-like, .ds-cm { min-height: 28px; padding: 0 2px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.ds-like:hover, .ds-cm:hover { color: var(--ink); }
.ds-like[aria-pressed="true"] { color: var(--cr-a2); }
.ds-like[aria-pressed="true"] svg.i { fill: currentColor; }
.ds-like-bar { flex: none; width: auto; padding: 0 8px; gap: 4px; font-size: 12px; }
.ds-when { margin-left: auto; color: var(--faint); }

/* a creator's page */
.ds-back { align-self: flex-start; font-size: 13px; }
.ds-prof { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ds-prof-t { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ds-prof h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ds-prof-h { margin: 0; font-size: 13px; color: var(--muted); }
.ds-about { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ds-counts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.ds-counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ds-prof-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* a public song (dialog) */
.ds-song { display: flex; flex-direction: column; gap: 10px; }
.ds-song h4 { margin: 8px 0 0; font-size: 13px; }
.ds-song-top { display: flex; flex-wrap: wrap; gap: 16px; }
.ds-song-top > .cr-art.lg { flex: 0 0 150px; width: 150px; align-self: flex-start; }
.ds-song-t { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ds-song-t .ds-by { font-size: 14px; color: var(--ink); }
.ds-song-t .ds-by > span:not(.ds-av) { display: flex; flex-direction: column; }
.ds-song-t .ds-by small { font-size: 12px; color: var(--muted); }
.ds-song-t .ds-stats { font-size: 13px; }
.ds-caption { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.ds-song-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-style-full { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.ds-lyrics { margin: 8px 0 0; font: 14px/1.55 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.ds-cm-form { display: flex; gap: 6px; }
.ds-cm-form input { flex: 1; min-width: 0; min-height: 38px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; color: var(--ink); }
.ds-cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ds-cm-list li { display: flex; gap: 8px; align-items: flex-start; }
.ds-cm-list li > div { min-width: 0; }
.ds-cm-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: 12px; color: var(--muted); }
.ds-cm-text { margin: 1px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ds-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.ds-linkbtn.ds-soft { font-weight: 400; color: var(--faint); }
.ds-linkbtn:hover { text-decoration: underline; }
.ds-more-by { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ds-mini { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; }
.ds-mini:hover { border-color: var(--ink); }
.ds-mini > span { min-width: 0; display: flex; flex-direction: column; }
.ds-mini b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-mini small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.ds-mini small svg.i { width: 11px; height: 11px; }

/* publishing and the creator page editor (social.js); the Public tag on a song's row in Create and the Library */
.ds-pub-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.ds-pub .form-actions { flex-wrap: wrap; }
.ds-pub .form-actions .btn { flex: 1 1 140px; }
.btn.danger { color: var(--rec); border-color: color-mix(in srgb, var(--rec) 45%, var(--line-strong)); }
.cr-tag.ds-public { color: var(--live, #17a35a); border-color: color-mix(in srgb, var(--live, #17a35a) 40%, var(--line)); background: color-mix(in srgb, var(--live, #17a35a) 8%, transparent); }
.ds-handle { display: flex; align-items: center; gap: 0; }
.ds-handle i { display: grid; place-items: center; align-self: stretch; padding: 0 10px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px; background: var(--raised);
  font-style: normal; font-weight: 600; color: var(--muted); }
.ds-handle input { border-radius: 0 12px 12px 0; }
.ds-linkbox { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font: 13px ui-monospace, Menlo, monospace; color: var(--ink); }

/* reactions, and the activity on your songs */
.ds-emoji { font-style: normal; font-size: 1.15em; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ds-react { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-react button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; min-width: 44px; justify-content: center; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ds-react button .ds-emoji { font-size: 18px; }
.ds-react button span:empty { display: none; }
.ds-react button:hover { border-color: var(--ink); }
.ds-react button[aria-pressed="true"] { border-color: var(--cr-a2); background: color-mix(in srgb, var(--cr-a2) 10%, var(--surface)); color: var(--ink); }
.ds-head #ds-me { display: inline-flex; align-items: center; gap: 6px; }
.ds-bell { position: relative; }
.ds-bell i { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--cr-a2); color: #fff;
  font: 700 10px/17px var(--font); font-style: normal; text-align: center; }
html[data-social-new] #tab-discover { position: relative; }
html[data-social-new] #tab-discover::after { content: ""; position: absolute; top: 7px; left: calc(50% + 9px); width: 8px; height: 8px; border-radius: 50%; background: var(--cr-a2); }
.ds-act { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ds-act li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px; border-radius: 12px; font-size: 14px; }
.ds-act li + li { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.ds-act li.new { background: color-mix(in srgb, var(--cr-a2) 7%, transparent); }
.ds-act li > div { min-width: 0; }
.ds-act p { margin: 0; overflow-wrap: anywhere; }
.ds-act small { margin-left: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.ds-act-text { margin-top: 2px !important; color: var(--muted); white-space: pre-wrap; }

@media (min-width: 620px) {
  .ds-page { padding: 20px 24px 36px; gap: 16px; }
  .ds-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
  .ds-song-top > .cr-art.lg { flex-basis: 200px; width: 200px; }
}
