/* DSK Music Library 0.5.1 — live category page additions (all 12 categories; cover layout EPIC only). */
.dsk-ml--pilot .dsk-ml__flag--pilot { border-style: solid; border-color: rgba(184,161,116,.35); }
.dsk-ml-pl__state { margin: 0; padding: 28px 20px; border-top: 1px solid var(--dsk-line); color: #b5afa5; font-size: 12px; letter-spacing: .03em; }
.dsk-ml-pl__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dsk-ml-pl-track { transition: background .3s ease; }
.dsk-ml-pl-track.is-playing { background: linear-gradient(110deg, rgba(26,23,16,.95), rgba(12,11,9,.6)); }
.dsk-ml-pl-track.is-playing .dsk-ml-track__rank { color: var(--dsk-gold); }
.dsk-ml-pl-player .dsk-ml-play { transition: background .2s ease, color .2s ease; }
.dsk-ml-pl-player .dsk-ml-play:hover, .dsk-ml-pl-player .dsk-ml-play.is-playing { background: #2a2416 !important; color: #f0dcae; }
.dsk-ml-pl-player .dsk-ml-play svg.dsk-ml-i--pause { fill: none; stroke: currentColor; stroke-width: 2.4; }
/* Seek bar (native range input = keyboard + touch accessible) */
.dsk-ml-pl-seek { -webkit-appearance: none; appearance: none; flex: 1; min-width: 40px; height: 24px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.dsk-ml-pl-seek:focus-visible { outline: 2px solid #d6bd8b; outline-offset: 2px; }
.dsk-ml-pl-seek::-webkit-slider-runnable-track { height: 3px; background: #39362f; }
.dsk-ml-pl-seek::-moz-range-track { height: 3px; background: #39362f; }
.dsk-ml-pl-seek::-moz-range-progress { height: 3px; background: var(--dsk-gold); }
.dsk-ml-pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: var(--dsk-gold); border: 0; }
.dsk-ml-pl-seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--dsk-gold); border: 0; }
/* Like */
.dsk-ml--pilot .dsk-ml-like { color: #d2cabc; transition: color .2s ease; }
.dsk-ml--pilot .dsk-ml-like:hover svg.dsk-ml-i { color: #e3cf9f; }
.dsk-ml--pilot .dsk-ml-like.is-liked svg.dsk-ml-i { fill: var(--dsk-gold); color: var(--dsk-gold); }
.dsk-ml--pilot .dsk-ml-like.is-liked small { color: var(--dsk-gold); }
.dsk-ml--pilot .dsk-ml-like:disabled { opacity: .6; cursor: progress; }
.dsk-ml-badge--ai { border-color: #5c5236; }
/* License dialog: info mode hides the agreement controls */
.dsk-ml-pl-dialog.is-info [data-pl-agree-row], .dsk-ml-pl-dialog.is-info [data-pl-go] { display: none; }
.dsk-ml-pl-dialog .dsk-ml-dialog__ver b { color: #e6cf95; }
/* Empty category: same dark/gold language as the track rows */
.dsk-ml-pl__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 34px 28px; border-top: 1px solid var(--dsk-line); border-bottom: 1px solid var(--dsk-line); background: linear-gradient(110deg, rgba(20,18,13,.85), rgba(12,11,9,.35)); }
.dsk-ml-pl__empty-eyebrow { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--dsk-gold); }
.dsk-ml-pl__empty-title { font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; color: #f2ede4; }
.dsk-ml-pl__empty-text { font-size: 12.5px; line-height: 1.6; color: #b5afa5; max-width: 520px; }
@media (max-width: 600px) {
  .dsk-ml-pl__empty { padding: 26px 18px; }
  .dsk-ml-pl__empty-title { font-size: 22px; }
  .dsk-ml-pl-player { gap: 9px; }
}
/* 0.4.2 (D133): the two longest single-word category titles (MOTIVATIONAL., ADVENTURE.) are wider than the phone content box at
   the 64px mobile size and pushed the page 1px+ wider. Shrink ONLY those titles, ONLY when they would not fit (width / text-to-font
   ratio, 2.5rem = mobile side padding); at widths where they fit they stay exactly 64px. */
@media (max-width: 600px) {
  .dsk-ml--motivational .dsk-ml__h1--cat { font-size: min(64px, calc((100vw - 2.5rem) / 5.9)); }
  .dsk-ml--adventure .dsk-ml__h1--cat { font-size: min(64px, calc((100vw - 2.5rem) / 4.9)); }
}

/* 0.5.0 (D134) — Volume: mute button + native range (keyboard: arrows/Home/End/PageUp/PageDown; touch target 40 px).
   Same language as the seek bar. Desktop/tablet: inline after the duration. Phones (<=600px): its own line under the seek bar. */
.dsk-ml-pl { --dsk-ml-pl-v: 5; } /* sentinel read by pilot.js 0.5.0 */
.dsk-ml-pl-volgrp { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dsk-ml-pl-mute { width: 40px; height: 40px; min-width: 40px; padding: 0; display: grid; place-content: center; border: 0 !important; background: transparent !important; color: #a59d8f; cursor: pointer; transition: color .2s ease; }
.dsk-ml-pl-mute:hover, .dsk-ml-pl-mute:focus-visible { color: #e3cf9f; }
.dsk-ml-pl-mute.is-muted { color: var(--dsk-gold); }
.dsk-ml-pl-mute svg.dsk-ml-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dsk-ml-pl-mute:focus-visible, .dsk-ml-pl-vol:focus-visible { outline: 2px solid #d6bd8b; outline-offset: 2px; }
.dsk-ml-pl-vol { -webkit-appearance: none; appearance: none; width: 84px; height: 40px; margin: 0; background: transparent; cursor: pointer; --v: 100%; }
.dsk-ml-pl-vol[hidden] { display: none; }
.dsk-ml-pl-vol::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--dsk-gold) var(--v), #39362f var(--v)); }
.dsk-ml-pl-vol::-moz-range-track { height: 3px; background: #39362f; }
.dsk-ml-pl-vol::-moz-range-progress { height: 3px; background: var(--dsk-gold); }
.dsk-ml-pl-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: var(--dsk-gold); border: 0; }
.dsk-ml-pl-vol::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--dsk-gold); border: 0; }
@media (max-width: 600px) {
  .dsk-ml-pl-player { flex-wrap: wrap; row-gap: 4px; }
  .dsk-ml-pl-volgrp { flex-basis: 100%; }
  .dsk-ml-pl-vol { width: auto; flex: 0 1 180px; min-width: 0; }
}

/* 0.5.0 (D134) — Track cover, EPIC pilot only (.dsk-ml-pl--covers is set by pilot.js only when the list carries
   data-covers="1" and the category is enabled). Square thumbnail at the far left; never a background of the row.
   No artwork = neutral dark CSS placeholder (no image file). */
.dsk-ml-pl--covers .dsk-ml-track.has-cover { grid-template-columns: 96px 30px minmax(0, 1fr) 340px; column-gap: 16px; }
.dsk-ml-track__cover { width: 96px; aspect-ratio: 1 / 1; align-self: center; overflow: hidden; border: 1px solid rgba(184,161,116,.18); background: linear-gradient(150deg, #1a1813 0%, #11100d 55%, #0b0b0a 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.dsk-ml-track__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 980px) {
  .dsk-ml-pl--covers .dsk-ml-track.has-cover { grid-template-columns: 80px 27px minmax(0, 1fr); }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__cover { width: 80px; align-self: start; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__side { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
  /* Phones: cover + rank + title on top; player and actions use the full row width below (no horizontal scrolling). */
  .dsk-ml-pl--covers .dsk-ml-track.has-cover { grid-template-columns: 64px 22px minmax(0, 1fr); row-gap: 0; column-gap: 11px; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-badge { white-space: normal; max-width: 100%; } /* 0.5.1: narrow title column at 320 px */
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__main { display: contents; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__cover { width: 64px; grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__rank { grid-column: 2; grid-row: 1; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__titleline { grid-column: 3; grid-row: 1; min-width: 0; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__tags { grid-column: 3; grid-row: 2; margin-bottom: 0; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-player { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; }
  .dsk-ml-pl--covers .dsk-ml-track.has-cover .dsk-ml-track__side { grid-column: 1 / -1; grid-row: 4; }
}

/* D135: new long category titles only; same scoped approach as D133.
 * Measured at 64px: Halloween 317.8px, Witchcraft 331.7px (available 280px at 320).
 * Do not change existing titles, cards, track rows or artwork dimensions. */
@media (max-width: 600px) {
  .dsk-ml--halloween .dsk-ml__h1--cat { font-size: min(64px, calc((100vw - 2.5rem) / 5.1)); }
  .dsk-ml--witchcraft .dsk-ml__h1--cat { font-size: min(64px, calc((100vw - 2.5rem) / 5.3)); }
}

/* D147: the server/cached envelope reserves the exact list height (no CLS) but stays invisible until pilot.js has rendered the
   live list (aria-busy -> false), so a cached page never shows outdated tracks or counts. Failsafe: revealed after 8 s if the
   script never runs; <noscript> reveals it immediately. */
#dsk-ml-pl[aria-busy="true"] > article.dsk-ml-pl-track { visibility: hidden; animation: dsk-ml-pl-reveal 0s linear 8s forwards; }
@keyframes dsk-ml-pl-reveal { to { visibility: visible; } }
/* D165 (0.7.22): compact "Download Music" agreement dialog and the EN/AR switch of the complete licence dialog. */
.dsk-ml-pl-dialog [hidden] { display: none !important; }
.dsk-ml-dialog.dsk-ml-dlg { width: min(420px, calc(100% - 32px)); padding: 26px 28px 22px; }
.dsk-ml-dialog.dsk-ml-dlg h2 { font-size: 30px; margin: 0 44px 18px 0; }
.dsk-ml-dlg__agree { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 14px 0 18px; border-top: 1px solid #342f24; font-size: 13px; line-height: 1.6; color: #d6cebe; }
.dsk-ml-dlg__agree input { accent-color: var(--dsk-gold); width: 20px; height: 20px; margin: 0 4px 0 0; flex-shrink: 0; cursor: pointer; }
.dsk-ml-dlg__agree label { cursor: pointer; }
.dsk-ml .dsk-ml-dlg__terms, .dsk-ml-dlg__terms { min-height: 32px; font-size: 13px; color: #e6cf95; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dsk-ml-dlg__go { width: 100%; }
.dsk-ml-dlg :focus-visible, .dsk-ml-lic-lang__btn:focus-visible { outline: 2px solid #e6cf95; outline-offset: 3px; }
.dsk-ml-dlg__status:empty { display: none; }
.dsk-ml-lic-lang { display: flex; justify-content: flex-end; margin: -2px 0 12px; }
.dsk-ml-lic-lang__btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.dsk-ml-lic-ar { direction: rtl; text-align: right; font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
.dsk-ml-lic-ar__ver { font-size: 12px; color: #a89e8b; margin: 0 0 14px; }
.dsk-ml-lic-ar__ver b { color: #e6cf95; font-weight: 500; margin-right: 6px; }
.dsk-ml-lic-ar .dsk-ml-dialog__warn { border-left: 0; border-right: 2px solid var(--dsk-gold); font-size: 13px; letter-spacing: 0; }
.dsk-ml-lic-ar .dsk-ml-dialog__warn span { font-size: 13px; }
.dsk-ml-lic-ar .dsk-ml-dialog__terms li { padding-left: 0; padding-right: 18px; font-size: 13px; line-height: 1.9; }
.dsk-ml-lic-ar .dsk-ml-dialog__terms li::before { left: auto; right: 0; }
.dsk-ml-lic-ar .dsk-ml-dialog__terms strong { font-size: 14px; }
.dsk-ml-lic-ar__note { font-size: 12px; color: #c9c0ad; margin: 0 0 8px; }
.dsk-ml-lic-ar__credit { font-size: 12px; color: #a89e8b; margin: 0 0 6px; }
#dsk-ml-pl-license h2[dir="rtl"] { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; letter-spacing: 0; text-align: right; margin: 0 0 8px 40px; }
@media (max-width: 767px) { .dsk-ml-dialog.dsk-ml-dlg { padding: 22px 20px 18px; } .dsk-ml-dialog.dsk-ml-dlg h2 { font-size: 26px; } }
/* D166 (0.7.23): complete licence Version 1.0 in the Terms & Conditions dialog (English / Arabic, one at a time) + multi-line credit. */
.dsk-ml-dialog.dsk-ml-tc { width: min(760px, calc(100% - 32px)); }
.dsk-ml-tc .dsk-ml-lic-lang { margin: 4px 0 14px; }
.dsk-ml-lic-doc { font-size: 12.5px; line-height: 1.75; color: #c9c0ad; }
.dsk-ml-lic-doc .dsk-ml-dialog__ver { margin: 0 0 14px; }
.dsk-ml-lic__title { font-size: 17px; letter-spacing: .02em; color: var(--dsk-text); margin: 0 0 12px; line-height: 1.4; }
.dsk-ml-lic-doc h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dsk-gold); margin: 20px 0 8px; line-height: 1.5; }
.dsk-ml-lic-doc p { margin: 0 0 8px; }
.dsk-ml-lic-doc ul { margin: 0 0 10px; padding-inline-start: 20px; }
.dsk-ml-lic-doc li { margin: 0 0 6px; }
.dsk-ml-lic-doc a { color: #e6cf95; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.dsk-ml-lic__credit { margin: 6px 0 12px; padding: 10px 14px; background: rgba(184,161,116,.08); border-left: 2px solid var(--dsk-gold); color: var(--dsk-text); font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; text-align: left; direction: ltr; }
.dsk-ml-lic__foot { margin-top: 18px !important; font-size: 11px; color: #a89e8b; }
.dsk-ml-lic-ar { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; font-size: 14px; line-height: 1.95; text-align: right; }
.dsk-ml-lic-ar h4 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.dsk-ml-lic-ar .dsk-ml-lic__title { font-size: 19px; letter-spacing: 0; }
.dsk-ml-lic-ar .dsk-ml-lic__credit { border-left: 0; border-right: 2px solid var(--dsk-gold); }
.dsk-ml-tc.is-ar h2, .dsk-ml-tc.is-ar .dsk-ml__eyebrow { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; letter-spacing: 0; text-align: right; }
.dsk-ml-tc.is-ar h2 { margin: 0 0 8px 40px; }
.dsk-ml-tc.is-ar .dsk-ml-credit__label { letter-spacing: 0; }
.dsk-ml-pl-dialog [data-pl-credit] { white-space: pre-line; }
@media (max-width: 767px) { .dsk-ml-lic-doc { font-size: 12px; } .dsk-ml-lic-ar { font-size: 13.5px; } }

/* D167 (0.7.24): Arabic Terms & Conditions view shows no eyebrow (removed duplicate heading under the close button). Scoped to the T&C dialog only. */
.dsk-ml-tc.is-ar [data-pl-eyebrow], .dsk-ml-tc [data-pl-eyebrow][hidden] { display: none !important; }
/* D167: with the eyebrow gone the Arabic heading moves up to the close-button row; keep its right-aligned text clear of the button. */
.dsk-ml-tc.is-ar h2 { padding-right: 48px; }
