/* dg-sounds.css — /music (the list) and /audio/{id} (a sound's page), phase 5. The look of dg-look.css (Inter, names 15/550,
   handles 14 grey, the soft outline buttons); the sound's header follows the profile's (cover, name, owner, the stats row). */
/* /music */
.dg-musichead { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin: 4px 0 10px; }
.dg-musichead h1 { font: 700 22px Inter, system-ui, sans-serif; margin: 0; color: var(--dg-ink, #0F1419); }
.dg-musichead p { margin: 4px 0 0; color: var(--dg-sub, #536471); font-size: 14px; line-height: 1.4; }
.dg-sndadd { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #E21B2D; color: #fff !important; border: 0; border-radius: 999px; padding: 9px 16px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.dg-sndadd img { width: 16px; height: 16px; }
.dg-sndrow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--dg-line, #EFF3F4); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.dg-sndcov { position: relative; flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: #F2F4F6; cursor: pointer; display: grid; place-items: center; }
.dg-sndcov img { width: 100%; height: 100%; object-fit: cover; }
.dg-sndcov img.ph { width: 26px; height: 26px; object-fit: contain; }
.dg-sndcov[disabled] { cursor: default; opacity: .6; }
.dg-sndplay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .28); }
.dg-sndplay::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.dg-sndcov.on .dg-sndplay::before { width: 14px; height: 16px; border: 0; margin: 0; background: linear-gradient(90deg, #fff 0 5px, transparent 5px 9px, #fff 9px 14px); }
.dg-sndwho { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.dg-sndwho b { font: 550 15px Inter, system-ui, sans-serif; color: var(--dg-ink, #0F1419); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-sndwho small { font-size: 14px; color: var(--dg-sub, #536471); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.dg-sndwho small.dg-sndmeta { font-size: 13px; }
.dg-sndbadge { font-size: 11px; font-weight: 600; color: #E21B2D; background: #FDECEE; border-radius: 999px; padding: 1px 8px; }
.dg-snduse { flex: none; background: transparent; border: 1px solid rgba(15, 20, 25, .2); color: var(--dg-ink, #0F1419); border-radius: 999px; padding: 6px 14px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.dg-snduse:hover { background: #F7F9F9; }

/* /audio/{id}: the header, like a profile's */
.dg-sndtop { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--dg-line, #EFF3F4); border-radius: 16px; padding: 18px; margin: 4px 0 14px; }
.dg-sndcov.big { width: 168px; height: 168px; border-radius: 14px; }
.dg-sndcov.big img.ph { width: 64px; height: 64px; }
.dg-sndcov.big .dg-sndplay::before { border-width: 16px 0 16px 26px; }
.dg-sndcov.big.on .dg-sndplay::before { width: 24px; height: 28px; background: linear-gradient(90deg, #fff 0 9px, transparent 9px 15px, #fff 15px 24px); }
.dg-sndinfo { flex: 1; min-width: 0; }
.dg-sndinfo h1 { font: 700 22px/1.25 Inter, system-ui, sans-serif; margin: 0; color: var(--dg-ink, #0F1419); overflow-wrap: anywhere; }
.dg-sndartist { color: var(--dg-sub, #536471); font-size: 15px; margin-top: 2px; }
.dg-sndowner { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; text-decoration: none; min-width: 0; max-width: 100%; }
.dg-sndowner .av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font: 700 12px Inter, system-ui, sans-serif; flex: none; }
.dg-sndowner .av img { width: 100%; height: 100%; object-fit: cover; }
.dg-sndowner b { font: 550 15px Inter, system-ui, sans-serif; color: var(--dg-ink, #0F1419); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-sndowner small { font-size: 14px; color: var(--dg-sub, #536471); white-space: nowrap; }
.dg-sndstats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.dg-sndstats li { display: flex; flex-direction: column; }
.dg-sndstats b { font: 700 17px Inter, system-ui, sans-serif; color: var(--dg-ink, #0F1419); }
.dg-sndstats span { font-size: 14px; color: var(--dg-sub, #536471); }
.dg-sndgone { margin: 12px 0 0; color: #B8121F; background: #FDECEE; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.dg-sndacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.dg-snduse.big { display: inline-flex; align-items: center; gap: 8px; background: #E21B2D; border-color: #E21B2D; color: #fff; padding: 9px 18px; }
.dg-snduse.big:hover { background: #C8121F; }
.dg-snduse.big img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.dg-sndbtn { background: transparent; border: 1px solid rgba(15, 20, 25, .2); color: var(--dg-ink, #0F1419); border-radius: 999px; padding: 8px 16px; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.dg-sndh2 { font: 700 17px Inter, system-ui, sans-serif; margin: 6px 0 10px; color: var(--dg-ink, #0F1419); }

/* Add a sound */
.dg-sndform-h { font: 700 18px Inter, system-ui, sans-serif; }
.dg-sndform-p { margin: 4px 0 6px; color: var(--dg-sub, #536471); font-size: 14px; }
.dg-sndform label { display: block; font-weight: 600; font-size: 14px; margin-top: 10px; }
.dg-sndform input[type=text], .dg-sndform select, .dg-sndform textarea { display: block; width: 100%; margin-top: 4px; }
.dg-sndform input[type=file] { display: block; margin-top: 4px; max-width: 100%; }
.dg-sndform .dg-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; line-height: 1.4; }
.dg-sndform .dg-check input { margin-top: 3px; flex: none; }
.dg-sndform-pv { width: 100%; margin-top: 8px; }
.dg-sndform [data-msg].ok, #dgSoundReportForm [data-msg].ok { color: #0A7A3E; }

@media (max-width: 767px) {
  .dg-musichead { padding: 0 12px; align-items: flex-start; }
  .dg-musichead h1 { font-size: 20px; }
  .dg-sndrow { border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 0; border-top: 0; }
  .dg-sndtop { flex-direction: column; align-items: center; text-align: center; border-radius: 0; border-left: 0; border-right: 0; padding: 16px 12px; }
  .dg-sndcov.big { width: 140px; height: 140px; }
  .dg-sndstats { justify-content: center; gap: 18px; }
  .dg-sndacts { justify-content: center; }
  .dg-sndh2 { padding: 0 12px; }
}

/* narrow phones (FR): the badge never cut, the owner line wraps instead of overflowing */
.dg-sndbadge { flex: none; }
.dg-sndowner b { min-width: 0; max-width: 100%; }
@media (max-width: 767px) { .dg-sndowner { flex-wrap: wrap; justify-content: center; row-gap: 2px; } }
