/* Scloud Downloader Pro — primary #FF550F (SoundCloud) */
.scloud-pro-wrap {
  --sc-wrap-muted: #2b2b2b;
  --sc-wrap-text: #111111;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 40px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sc-wrap-text);
}

.scloud-pro-wrap .scloud-pro {
  margin-top: 0;
}

.scloud-pro__intro {
  text-align: center;
  padding: clamp(34px, 3vw, 44px) 0 clamp(44px, 5vw, 68px);
  margin: 0 auto 32px;
}

.scloud-pro-wrap .scloud-pro__hero-title {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(34px, 3.5vw, 52px);
  padding: 0;
  font-family: inherit;
  font-size: var(--scloud-pro-hero-title-size, clamp(3.25rem, 5.85vw, 7rem));
  font-weight: 800;
  line-height: var(--scloud-pro-hero-title-line-height, 1.05);
  letter-spacing: -0.045em;
  text-align: center;
  text-transform: none;
}

/* Two-tone heading: the part before "|" is orange (brand), the part after is grey
   (suffix). They flow inline on one line and wrap together on narrow screens. */
.scloud-pro-wrap .scloud-pro__hero-title-brand,
.scloud-pro-wrap .scloud-pro__hero-title-suffix {
  display: inline;
}

.scloud-pro-wrap .scloud-pro__hero-title-brand {
  color: #ff5200;
}

.scloud-pro-wrap .scloud-pro__hero-title-suffix {
  color: #8a8a8a;
}

.scloud-pro-wrap .scloud-pro__tagline {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  font-family: inherit;
  font-size: var(--scloud-pro-hero-tagline-size, clamp(1.1rem, 1.75vw, 2rem));
  font-weight: 750;
  line-height: var(--scloud-pro-hero-tagline-line-height, 1.45);
  letter-spacing: 0.005em;
  color: var(--sc-wrap-muted);
  text-align: center;
  text-transform: none;
}

.scloud-pro-wrap .scloud-pro__tagline strong {
  font-weight: inherit;
  color: inherit;
}

.scloud-pro {
  --sc-primary: #ff550f;
  --sc-primary-dark: #e64e0e;
  --sc-bg: #0c0c0c;
  --sc-surface: #161616;
  --sc-border: rgba(255, 255, 255, 0.1);
  --sc-text: #f5f5f5;
  --sc-muted: #9a9a9a;
  --sc-radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--sc-text);
  max-width: 920px;
  margin: 0 auto;
}

.scloud-pro * {
  box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
.scloud-pro button,
.scloud-pro a,
.scloud-pro input,
.scloud-pro select { touch-action: manipulation; }

.scloud-pro__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.scloud-pro__input-wrap {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
}

.scloud-pro__input {
  width: 100%;
  height: 52px;
  padding: 0 108px 0 16px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: #fff;
  color: #111;
  font-size: 16px;
  outline: none;
}
.scloud-pro__input:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 0 3px rgba(255, 85, 15, 0.25);
}

.scloud-pro__paste {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #f3f3f3;
  color: #111;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.scloud-pro__paste svg path {
  stroke: currentColor;
}
.scloud-pro__paste:hover {
  background: #eaeaea;
}

.scloud-pro__submit {
  flex: 0 0 auto;
  min-width: 140px;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: var(--sc-radius);
  background: var(--sc-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}
.scloud-pro__submit:hover:not(:disabled) {
  filter: brightness(1.05);
}
.scloud-pro__submit:active:not(:disabled),
.scloud-pro__submit:focus:not(:disabled) {
	background: var(--sc-primary);
	color: #fff;
}
.scloud-pro__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Mobile: paste icon only, download full width below */
@media (max-width: 640px) {
  .scloud-pro__toolbar {
    flex-direction: column;
  }
  .scloud-pro__input-wrap {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .scloud-pro__input {
    padding-right: 56px;
  }
  .scloud-pro__paste-label {
    display: none;
  }
  .scloud-pro__paste {
    padding: 0 10px;
  }
  .scloud-pro__submit {
    width: 100%;
  }
  .scloud-pro__lbl-long {
    display: none !important;
  }
  .scloud-pro__lbl-short {
    display: inline !important;
  }

  /* Playlist rows: full-width card, cover art as background + overlay + content on top */
  .scloud-pro__row {
    position: relative;
    display: block !important;
    padding: 0 !important;
    margin-bottom: 9px;
    overflow: hidden;
    border-radius: 14px !important;
    min-height: 300px;
    background: #141418;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
  }
  .scloud-pro__row-bg {
    display: block;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.03);
  }
  .scloud-pro__row-bg--ph {
    background-image: linear-gradient(145deg, #3a3a42, #1a1a1e);
  }
  .scloud-pro__row-shade {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.88) 100%
    );
    pointer-events: none;
  }
  .scloud-pro__row-thumb,
  .scloud-pro__row-thumb--ph {
    display: none !important;
  }
  .scloud-pro__row-main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    padding: 16px 14px 14px;
    align-items: stretch;
    width: 100%;
    text-align: left;
    gap: 10px;
  }
  .scloud-pro__row-top {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }
  .scloud-pro__row-top .scloud-pro__row-title {
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  .scloud-pro__row-top .scloud-pro__dur-inline {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
  }
  .scloud-pro__row-meta {
    color: rgba(255, 255, 255, 0.82) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  }
  .scloud-pro__row-buttons {
    display: block;
    width: 100%;
  }
  .scloud-pro__row .scloud-pro__formats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    justify-content: stretch;
  }
  .scloud-pro__row .scloud-pro__fmt {
    max-width: none;
    min-width: 0;
    width: 100%;
    background: #fd5400;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .scloud-pro__row .scloud-pro__fmt:hover:not(:disabled) {
    background: #fff;
    color: #000;
    border-color: #fff;
  }
  .scloud-pro__row-main > .scloud-pro__embed-host {
    margin-top: 4px;
    padding: 10px 0 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .scloud-pro-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }
  .scloud-pro__intro {
    padding: 34px 0 40px;
    margin-bottom: 22px;
  }
  .scloud-pro-wrap .scloud-pro__hero-title {
    gap: 16px;
    margin-bottom: 28px;
    font-size: var(--scloud-pro-hero-title-size, clamp(2.35rem, 11vw, 3.35rem));
    line-height: var(--scloud-pro-hero-title-line-height, 1.06);
  }
  .scloud-pro-wrap .scloud-pro__hero-title-suffix {
    font-size: inherit;
    line-height: inherit;
  }
  .scloud-pro-wrap .scloud-pro__tagline {
    max-width: 34rem;
    font-size: var(--scloud-pro-hero-tagline-size, 1rem);
    line-height: var(--scloud-pro-hero-tagline-line-height, 1.5);
  }
}

@media (min-width: 641px) {
  .scloud-pro__submit {
    align-self: stretch;
  }
}

.scloud-pro__processing {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  text-align: center;
}
.scloud-pro__processing[hidden] {
  display: none !important;
}
.scloud-pro__processing img {
  max-width: 220px;
  height: auto;
  margin: 0 auto 12px;
}
.scloud-pro__bars {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: flex-end;
  height: 40px;
}
.scloud-pro__bars span {
  width: 6px;
  background: var(--sc-primary);
  border-radius: 3px;
  animation: scloud-bounce 0.9s ease-in-out infinite;
}
.scloud-pro__bars span:nth-child(2) {
  animation-delay: 0.12s;
}
.scloud-pro__bars span:nth-child(3) {
  animation-delay: 0.24s;
}
.scloud-pro__bars span:nth-child(4) {
  animation-delay: 0.36s;
}
@keyframes scloud-bounce {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 32px;
  }
}

.scloud-pro__msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
}
.scloud-pro__msg.is-error {
  display: block;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffb4b4;
  white-space: pre-wrap;
  line-height: 1.5;
}

.scloud-pro__result {
  margin-top: 28px;
}

.scloud-pro__hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 22px;
  border-radius: var(--sc-radius);
  background: linear-gradient(135deg, rgba(255, 85, 15, 0.12), transparent 55%), var(--sc-surface);
  border: 1px solid var(--sc-border);
}
@media (max-width: 560px) {
  .scloud-pro__hero {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .scloud-pro__hero-avatar {
    margin: 0 auto;
  }
}

.scloud-pro__cover {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--sc-border);
  background: #000;
}
.scloud-pro__hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--sc-primary);
  background: #222;
}
.scloud-pro__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.scloud-pro__meta {
  color: var(--sc-muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.scloud-pro__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.scloud-pro__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--sc-border);
}
.scloud-pro__pill:hover {
  border-color: var(--sc-primary);
  color: #fff;
}
.scloud-pro__pill-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scloud-pro__pill-dl-ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.scloud-pro__pill-txt {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
}
.scloud-pro__pill-dlw {
  font-weight: 800;
}
.scloud-pro__pill--imgdl {
  cursor: pointer;
  text-decoration: none;
}
.scloud-pro__pill--imgdl.scloud-pro__pill--busy,
.scloud-pro__pill--imgdl[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: wait;
}

/* Single track card: hero + play + downloads + lazy embed */
.scloud-pro__track-block {
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  overflow: hidden;
  background: var(--sc-surface);
}
.scloud-pro__track-block > .scloud-pro__hero {
  border: none;
  border-radius: 0;
  margin: 0;
}
.scloud-pro__action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--sc-border);
  background: rgba(0, 0, 0, 0.4);
}
.scloud-pro__action-bar .scloud-pro__formats {
  margin-top: 0;
  flex: 1 1 min(100%, 100px);
}
.scloud-pro__dur-inline {
  font-size: 13px;
  font-weight: 700;
  color: var(--sc-muted);
  white-space: nowrap;
}
.scloud-pro__embed-host {
  padding: 12px 14px;
  border-top: 1px solid var(--sc-border);
  background: #080808;
}
.scloud-pro__embed-host[hidden] {
  display: none !important;
}
.scloud-pro__row-main > .scloud-pro__embed-host {
  padding: 10px 0 0;
  border-top: none;
  background: transparent;
}

.scloud-pro__player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid var(--sc-border);
}
.scloud-pro__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--sc-primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.scloud-pro__play-svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.scloud-pro__play-svg--caret {
  width: 22px;
  height: 22px;
}
.scloud-pro__play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.scloud-pro__wave {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.scloud-pro__wave > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sc-primary);
  border-radius: 99px;
  transition: width 0.12s linear;
}

.scloud-pro__player--widget {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.scloud-pro__player--widget .scloud-pro__dur--widget {
  align-self: flex-end;
}
.scloud-pro__iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.scloud-pro__formats {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.scloud-pro__sponsor {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  min-width: 158px;
}
.scloud-pro__sponsor-label {
  padding-left: 2px;
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: none;
}
.scloud-pro a.scloud-pro__sponsor-link,
.scloud-pro a.scloud-pro__sponsor-link:link,
.scloud-pro a.scloud-pro__sponsor-link:visited {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 158px;
  background: #fd5400 !important;
  border-color: #fd5400 !important;
  color: #fff !important;
  font-family: inherit;
  line-height: 1.25;
  text-decoration: none !important;
}
.scloud-pro a.scloud-pro__sponsor-link:hover,
.scloud-pro a.scloud-pro__sponsor-link:focus,
.scloud-pro a.scloud-pro__sponsor-link:active {
  background: #e64d00 !important;
  border-color: #e64d00 !important;
  color: #fff !important;
  text-decoration: none !important;
}
.scloud-pro a.scloud-pro__sponsor-link .scloud-pro__lbl,
.scloud-pro a.scloud-pro__sponsor-link .scloud-pro__dl-svg {
  color: #fff !important;
}
.scloud-pro__sponsor-link:focus-visible {
  outline: 3px solid #ff925c;
  outline-offset: 2px;
}
.scloud-pro__sponsor-link .scloud-pro__lbl {
  white-space: nowrap;
}
/* Match the space regular format buttons reserve for their progress rail. */
.scloud-pro__sponsor-link .scloud-pro__fmt-inner {
  padding-bottom: 4px;
}

/* ── Sponsored placement: card layout ────────────────────────────────────
   Bordered card holding a "Sponsored by … (i)" tag row (with a Sponsored pill
   on the right) above a subtle download row (download icon + text on the left,
   an open-in-new icon on the right). Rendered full width on its own line, after
   the format buttons. Same look on desktop and inside the mobile sheet. */
.scloud-pro__sponsor--card {
  /* !important so it beats any stale/duplicate `.scloud-pro__sponsor{order:0}`
     rule that a CSS-combine cache (e.g. LiteSpeed) may still be serving — the
     card also carries the plain .scloud-pro__sponsor class, so an equal-specificity
     stale rule would otherwise win by source order and pull it above the buttons. */
  order: 9 !important;
  flex: 1 1 100%;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  gap: 9px;
  padding: 11px 13px 12px;
  border: 1px dashed var(--sc-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 0;
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-info {
  flex: 0 0 auto;
  opacity: 0.7;
}
.scloud-pro__sponsor-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(253, 84, 0, 0.16);
  color: #ff7c3d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
.scloud-pro__sponsor-tag svg {
  flex: 0 0 auto;
}
/* Download row: solid orange button inside the card, icon + text centered. */
.scloud-pro .scloud-pro__sponsor--card a.scloud-pro__sponsor-link,
.scloud-pro .scloud-pro__sponsor--card a.scloud-pro__sponsor-link:link,
.scloud-pro .scloud-pro__sponsor--card a.scloud-pro__sponsor-link:visited {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #fd5400 !important;
  border-radius: 9px;
  background: #fd5400 !important;
  color: #fff !important;
}
.scloud-pro .scloud-pro__sponsor--card a.scloud-pro__sponsor-link:hover,
.scloud-pro .scloud-pro__sponsor--card a.scloud-pro__sponsor-link:focus,
.scloud-pro .scloud-pro__sponsor--card a.scloud-pro__sponsor-link:active {
  background: #e64d00 !important;
  border-color: #e64d00 !important;
  color: #fff !important;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-link .scloud-pro__fmt-inner {
  padding-bottom: 0;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-link .scloud-pro__fmt-main {
  justify-content: center;
  gap: 10px;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-link .scloud-pro__lbl {
  flex: 0 1 auto;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff !important;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-link .scloud-pro__dl-svg {
  color: #fff !important;
}
.scloud-pro__sponsor--card .scloud-pro__sponsor-ext {
  flex: 0 0 auto;
  margin-left: 0;
  color: #fff;
}

/* Compact inline variant used in the playlist header, beside Download Playlist. */
.scloud-pro__sponsor--pl-head {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  max-width: none;
}
.scloud-pro__sponsor--pl-head .scloud-pro__sponsor-label {
  font-size: 12px;
  white-space: nowrap;
  text-shadow: none;
  color: var(--sc-muted);
}
.scloud-pro a.scloud-pro__sponsor--pl-head-link,
.scloud-pro .scloud-pro__sponsor--pl-head a.scloud-pro__sponsor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  padding: 10px 18px;
  height: var(--scloud-pro-pl-btn-h, auto);
  border-radius: 8px;
  font-size: var(--scloud-pro-pl-btn-fs, 14px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  align-self: center;
}
/* Keep the header sponsor button compact on a single line. */
.scloud-pro__sponsor--pl-head .scloud-pro__fmt-main {
  justify-content: center;
  gap: 6px;
}
.scloud-pro__sponsor--pl-head .scloud-pro__lbl,
.scloud-pro__sponsor--pl-head .scloud-pro__lbl-long,
.scloud-pro__sponsor--pl-head .scloud-pro__lbl-short {
  white-space: nowrap;
}
.scloud-pro__sponsor--pl-head .scloud-pro__dl-svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.scloud-pro__fmt {
  position: relative;
  min-height: 44px;
  font-family: inherit;
  max-width: 223px;
  min-width: 158px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fd5400;
  background: #fd5400;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
}
.scloud-pro__fmt:hover:not(:disabled) {
  background: #e64d00;
  border-color: #e64d00;
}
.scloud-pro__fmt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.scloud-pro__fmt-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.scloud-pro__fmt-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.scloud-pro__dl-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.scloud-pro__lbl {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  line-height: 1.25;
}
.scloud-pro__lbl-long {
  display: inline;
}
.scloud-pro__lbl-short {
  display: none;
}
.scloud-pro__status {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--sc-muted);
  min-height: 0;
}
.scloud-pro__status:not(:empty) {
  margin-top: 8px;
  padding-top: 0;
  color: #86efac;
}
.scloud-pro__xfer {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #86efac;
  text-align: center;
  word-break: break-word;
}
.scloud-pro__xfer:not([hidden]) {
  display: block;
  margin-top: 8px;
}
.scloud-pro__status:not(:empty) ~ .scloud-pro__xfer:not([hidden]) {
  margin-top: 4px;
}
.scloud-pro__prog {
  display: block;
  height: 4px;
  width: 0%;
  border-radius: 99px;
  background: #22c55e;
  transition: width 0.08s linear, opacity 0.15s;
}
.scloud-pro__fmt--busy:not(.scloud-pro__fmt--pct-known) .scloud-pro__prog {
  width: 100% !important;
  opacity: 0.45;
  animation: scloud-prog-opacity 1s ease-in-out infinite;
}
@keyframes scloud-prog-opacity {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}
.scloud-pro__fmt--busy.scloud-pro__fmt--pct-known .scloud-pro__prog {
  opacity: 1;
}
.scloud-pro__premium-badge {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.scloud-pro__premium-ic {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.scloud-pro__fmt-main .scloud-pro__premium-ic {
  width: 18px;
  height: 18px;
}
.scloud-pro__premium-badge .scloud-pro__premium-ic {
  width: 14px;
  height: 14px;
}
.scloud-pro__fmt--premium {
  border-color: rgba(255, 179, 71, 0.5);
}
.scloud-pro__pl-dl-zip--premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scloud-pro__pl-dl-zip .scloud-pro__premium-ic {
  width: 16px;
  height: 16px;
}

.scloud-pro__hero--playlist {
  margin-bottom: 20px;
}

.scloud-pro__pl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
  color: var(--sc-muted);
  font-size: 14px;
  font-weight: 600;
}
.scloud-pro__pl-head-label {
  flex: 1 1 auto;
  min-width: 0;
}
.scloud-pro__pl-dl-zip {
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  height: var(--scloud-pro-pl-btn-h, auto);
  min-height: var(--scloud-pro-pl-btn-h, 40px);
  border: none;
  border-radius: 8px;
  background: var(--sc-primary);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: var(--scloud-pro-pl-btn-fs, 14px);
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}
.scloud-pro__pl-dl-zip:hover {
  filter: brightness(1.06);
}

/* Playlist bulk ZIP modal */
body.scloud-pro__pl-modal-open {
  overflow: hidden;
}
.scloud-pro__pl-modal[hidden] {
  display: none !important;
}
.scloud-pro__pl-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.scloud-pro__pl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.scloud-pro__pl-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  color: #f2f2f2;
}
.scloud-pro__pl-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.scloud-pro__pl-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  padding-right: 8px;
  color: #fff;
}
.scloud-pro__pl-modal-x {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.scloud-pro__pl-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scloud-pro__pl-modal-pick {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.scloud-pro__pl-modal-pick[hidden] {
  display: none !important;
}
.scloud-pro__pl-modal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.scloud-pro__pl-modal-link {
  border: none;
  background: none;
  color: #ff9a5c;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.scloud-pro__pl-modal-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.scloud-pro__pl-modal-sep {
  color: rgba(255, 255, 255, 0.35);
}
.scloud-pro__pl-modal-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.scloud-pro__pl-modal-caphint {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
}
.scloud-pro__pl-modal-list {
  flex: 1 1 auto;
  overflow: auto;
  max-height: min(48vh, 420px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}
/* A track that can't be selected right now (the per-playlist cap is reached). It
   stays visible so the visitor can swap their choice by unchecking another. */
.scloud-pro__pl-modal-item input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.scloud-pro__pl-modal-item:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.scloud-pro__pl-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.35;
}
.scloud-pro__pl-modal-item:last-child {
  border-bottom: none;
}
.scloud-pro__pl-modal-item:hover {
  background: rgba(255, 255, 255, 0.04);
}
.scloud-pro__pl-modal-item input {
  margin-top: 3px;
  flex-shrink: 0;
}
.scloud-pro__pl-modal-progress {
  padding: 8px 0 4px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scloud-pro__pl-modal-progress[hidden] {
  display: none !important;
}
.scloud-pro__pl-modal-current {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}
.scloud-pro__pl-modal-xfer {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
  letter-spacing: 0.01em;
  animation: scloud-pl-xfer-pulse 1.4s ease-in-out infinite;
}
.scloud-pro__pl-modal-xfer[hidden] {
  display: none !important;
}
@keyframes scloud-pl-xfer-pulse {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}
.scloud-pro__pl-modal-track-bar {
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.scloud-pro__pl-modal-track-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 99px;
  transition: width 0.1s linear;
}
.scloud-pro__pl-modal-track-bar--pulse > i {
  width: 100% !important;
  opacity: 0.5;
  animation: scloud-pl-bar-pulse 1s ease-in-out infinite;
}
.scloud-pro__pl-modal-track-bar--known > i {
  opacity: 1;
}
@keyframes scloud-pl-bar-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.75;
  }
}
.scloud-pro__pl-modal-stats {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.scloud-pro__pl-modal-overall-lbl {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}
.scloud-pro__pl-modal-overall-lbl[hidden] {
  display: none !important;
}
.scloud-pro__pl-modal-bar-wrap {
  position: relative;
}
.scloud-pro__pl-modal-bar {
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.scloud-pro__pl-modal-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  min-width: 0;
  border-radius: 5px;
  background-color: #ff550f;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.22) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.22) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: scloud-pl-stripes 1s linear infinite;
  transition: width 0.12s linear;
}
@keyframes scloud-pl-stripes {
  from {
    background-position: 1rem 0;
  }
  to {
    background-position: 0 0;
  }
}
.scloud-pro__pl-modal-bar-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  letter-spacing: 0.02em;
}
.scloud-pro__pl-modal-foot[hidden] {
  display: none !important;
}
.scloud-pro__pl-modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.scloud-pro__pl-modal-format {
  font-size: 13px;
  font-weight: 600;
}
.scloud-pro__pl-modal-format-sel {
  margin-left: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #222;
  color: #fff;
}
.scloud-pro__pl-modal-zip {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: var(--global-palette-btn-bg);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.scloud-pro__pl-modal-zip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* iOS "Save ZIP to your device" — the fresh-tap button that hands the finished ZIP
   to the Share sheet. Shown in the progress area on iPhone/iPad only. */
.scloud-pro__pl-save-ios {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #ff550f;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 6px 18px rgba(255, 85, 15, 0.35);
}
.scloud-pro__pl-save-ios:disabled {
  background: #16a34a;
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

/* Minimized ZIP progress (bottom-right) */
.scloud-pro__pl-float[hidden] {
  display: none !important;
}
.scloud-pro__pl-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147483646;
  width: min(280px, calc(100vw - 32px));
}
.scloud-pro__pl-float-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: #161616;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.scloud-pro__pl-float-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scloud-pro__pl-float-pct {
  display: block;
  font-size: 11px;
  color: #86efac;
  margin-bottom: 6px;
}
.scloud-pro__pl-float-bar {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.scloud-pro__pl-float-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.12s linear;
}

@media (max-width: 640px) {
  .scloud-pro__pl-head {
    flex-direction: column;
    align-items: stretch;
  }
  .scloud-pro__pl-dl-zip {
    width: 100%;
  }
  /* Stack the sponsored placement: tag on its own line, full-width button
     below — prevents the 320 kbps button clipping off the right edge. The
     extra .scloud-pro qualifier out-specifies the single-track card cap
     (max-width:316px) further down so this button matches Download Playlist. */
  .scloud-pro .scloud-pro__sponsor--pl-head {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 6px;
  }
  .scloud-pro .scloud-pro__sponsor--pl-head .scloud-pro__sponsor-label {
    text-align: center;
  }
  .scloud-pro .scloud-pro__sponsor--pl-head .scloud-pro__sponsor-link {
    flex: 0 0 auto;
    width: 100% !important;
    max-width: none !important;
    white-space: normal;
  }
  .scloud-pro__pl-modal-dialog {
    max-height: 92vh;
  }
}

.scloud-pro__pl-rows-rest[hidden] {
  display: none !important;
}

.scloud-pro__pl-show-wrap {
  margin: 6px 0 4px;
  text-align: center;
}

.scloud-pro__pl-show-all {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ececee;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.scloud-pro__pl-show-all:hover {
  background: #e2e2e6;
}

.scloud-pro__pl-show-all:focus-visible {
  outline: 2px solid #ff550f;
  outline-offset: 2px;
}

/* Desktop playlist rows: thumb grid (mobile card layout is in max-width: 640px block above) */
@media (min-width: 641px) {
  .scloud-pro__row-bg,
  .scloud-pro__row-shade {
    display: none;
  }
  .scloud-pro__row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #ececee;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  .scloud-pro__row-thumb,
  .scloud-pro__row-thumb--ph {
    width: 64px;
    height: 64px;
    border-radius: 3px;
    object-fit: cover;
    background: #ddd;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
  }
  .scloud-pro__row-thumb--ph {
    background: linear-gradient(145deg, #e0e0e4, #d0d0d6);
  }
  .scloud-pro__row-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .scloud-pro__row-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .scloud-pro__row-top .scloud-pro__row-title {
    flex: 1 1 120px;
    min-width: 0;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: #111;
  }
  .scloud-pro__row-top .scloud-pro__dur-inline {
    color: #555;
    margin-left: auto;
  }
  .scloud-pro__play--row {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .scloud-pro__play--row .scloud-pro__play-svg {
    width: 18px;
    height: 18px;
  }
  .scloud-pro__row-meta {
    font-size: 13px;
    color: #444;
    margin: 0;
  }
  .scloud-pro__row-buttons {
    width: 100%;
    min-width: 0;
  }
  .scloud-pro__row .scloud-pro__formats {
    margin-top: 0;
    gap: 8px;
  }
  .scloud-pro__row .scloud-pro__fmt {
    background: #fd5400;
    color: #fff;
    border-color: #fd5400;
    min-width: 0;
  }
  .scloud-pro__row .scloud-pro__fmt:hover:not(:disabled) {
    background: #fff;
    border-color: #fff;
    color: #000;
  }
  .scloud-pro__row .scloud-pro__status:not(:empty) {
    color: #15803d;
  }
  .scloud-pro__row .scloud-pro__xfer:not([hidden]) {
    color: #15803d;
  }
  .scloud-pro__row .scloud-pro__prog {
    background: #22c55e;
  }
}

/* ---------- Download progress modal ---------- */
.scloud-dlm {
  position: fixed;
  inset: 0;
  /* Top layer: the iOS "Save" surface must stay above injected ad overlays. */
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.scloud-dlm.is-open {
  display: flex;
}
.scloud-dlm__backdrop,
.scloud-dlm__box,
.scloud-dlm__mini {
  pointer-events: auto;
}
.scloud-dlm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
}
.scloud-dlm__box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: scloud-dlm-pop 0.22s ease;
}
@keyframes scloud-dlm-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.scloud-dlm__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.scloud-dlm__min,
.scloud-dlm__x {
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.scloud-dlm__min:hover,
.scloud-dlm__x:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}
.scloud-dlm__min svg {
  width: 18px;
  height: 18px;
  display: block;
}
.scloud-dlm__x {
  font-size: 22px;
  width: 32px;
  height: 32px;
}
.scloud-dlm.is-loading .scloud-dlm__min {
  display: inline-flex;
}
.scloud-dlm.is-success .scloud-dlm__x,
.scloud-dlm.is-error .scloud-dlm__x {
  display: inline-flex;
}
.scloud-dlm__icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scloud-dlm__spinner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 85, 15, 0.18);
  border-top-color: #ff550f;
  animation: scloud-dlm-spin 0.8s linear infinite;
}
.scloud-dlm.is-success .scloud-dlm__spinner,
.scloud-dlm.is-error .scloud-dlm__spinner {
  display: none;
}
@keyframes scloud-dlm-spin {
  to {
    transform: rotate(360deg);
  }
}
.scloud-dlm__glyph {
  width: 34px;
  height: 34px;
  color: #ff550f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scloud-dlm__glyph svg {
  width: 100%;
  height: 100%;
}
.scloud-dlm.is-loading .scloud-dlm__glyph {
  animation: scloud-dlm-bounce 1.1s ease-in-out infinite;
}
@keyframes scloud-dlm-bounce {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(3px);
  }
}
.scloud-dlm.is-success .scloud-dlm__icon {
  color: #16a34a;
}
.scloud-dlm.is-success .scloud-dlm__glyph {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  padding: 14px;
  animation: scloud-dlm-pop 0.3s ease;
}
.scloud-dlm.is-error .scloud-dlm__glyph {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  padding: 14px;
}
.scloud-dlm__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}
.scloud-dlm__track {
  margin: 0 0 16px;
  font-size: 13px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scloud-dlm__bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 0 0 12px;
}
.scloud-dlm__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #ff550f;
  transition: width 0.2s ease;
}
.scloud-dlm.is-success .scloud-dlm__fill {
  background: #16a34a;
}
.scloud-dlm.is-error .scloud-dlm__bar {
  display: none;
}
.scloud-dlm.is-indeterminate .scloud-dlm__fill {
  width: 40% !important;
  background: linear-gradient(90deg, rgba(255, 85, 15, 0.35), #ff550f, rgba(255, 85, 15, 0.35));
  animation: scloud-dlm-indet 1.1s ease-in-out infinite;
}
@keyframes scloud-dlm-indet {
  0% {
    margin-left: -40%;
  }
  100% {
    margin-left: 100%;
  }
}
.scloud-dlm__meta {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  min-height: 18px;
  white-space: pre-line; /* render the \n between an error message and its hint */
}
.scloud-dlm.is-error .scloud-dlm__meta {
  color: #dc2626;
}

/* "Your file is ready" — tap-to-save button. Mainly for iOS/iPadOS, where saving
   to Files goes through the Share sheet and needs this fresh tap as its gesture. */
.scloud-dlm__save {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin: 16px 0 2px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: #ff550f;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 6px 18px rgba(255, 85, 15, 0.35);
  transition: transform 0.12s ease, background 0.15s ease;
}
.scloud-dlm__save:hover { color: #fff; }
.scloud-dlm.is-save .scloud-dlm__save:not([hidden]) {
  display: block;
  animation: scloud-dlm-save-pop 0.9s ease-in-out 1;
}
.scloud-dlm__save:hover {
  background: #ff6a2b;
}
.scloud-dlm__save:active {
  transform: translateY(1px) scale(0.99);
}
@keyframes scloud-dlm-save-pop {
  0% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* Minimized: hide modal, show bottom-right chip */
.scloud-dlm__mini {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100001;
  width: min(320px, calc(100vw - 24px));
  margin: 0;
  padding: 12px 12px 12px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  text-align: left;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  font: inherit;
  color: inherit;
  animation: scloud-dlm-pop 0.2s ease;
}
.scloud-dlm__mini:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.scloud-dlm.is-minimized {
  inset: auto;
  padding: 0;
  align-items: flex-end;
  justify-content: flex-end;
}
.scloud-dlm.is-minimized .scloud-dlm__backdrop,
.scloud-dlm.is-minimized .scloud-dlm__box {
  display: none;
}
.scloud-dlm.is-minimized .scloud-dlm__mini {
  display: flex;
}
.scloud-dlm__mini-icon {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scloud-dlm__spinner--sm {
  border-width: 2px;
}
.scloud-dlm__mini-glyph {
  width: 18px;
  height: 18px;
  color: #ff550f;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scloud-dlm-bounce 1.1s ease-in-out infinite;
}
.scloud-dlm__mini-glyph svg {
  width: 100%;
  height: 100%;
}
.scloud-dlm__mini-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scloud-dlm__mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scloud-dlm__mini-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.scloud-dlm__mini-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #ff550f;
  transition: width 0.2s ease;
}
.scloud-dlm.is-indeterminate .scloud-dlm__mini-fill {
  width: 40% !important;
  background: linear-gradient(90deg, rgba(255, 85, 15, 0.35), #ff550f, rgba(255, 85, 15, 0.35));
  animation: scloud-dlm-indet 1.1s ease-in-out infinite;
}
.scloud-dlm__mini-meta {
  font-size: 11px;
  font-weight: 600;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scloud-dlm__mini-expand {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scloud-dlm__mini-expand svg {
  width: 100%;
  height: 100%;
}
.scloud-dlm__mini:hover .scloud-dlm__mini-expand {
  color: #ff550f;
}

@media (max-width: 480px) {
  .scloud-dlm__box {
    max-width: 100%;
    padding: 26px 18px 22px;
    border-radius: 16px;
  }
  .scloud-dlm__icon {
    width: 64px;
    height: 64px;
  }
  .scloud-dlm__mini {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

/* ---------- Post-download converter promo popup ---------- */
.scloud-promo {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Respect the iOS notch / home indicator so the card and close button stay tappable. */
  padding: 20px;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  opacity: 0;
  transition: opacity 0.22s ease;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.scloud-promo.is-open {
  opacity: 1;
}
.scloud-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.scloud-promo__card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  /* iOS Safari: 100vh includes the URL bar, which clips the card. dvh is the
     real visible height and falls back to vh where dvh is unsupported. */
  max-height: calc(100dvh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 40px 44px;
  border-radius: 22px;
  background: #0b0b0d;
  border: 1px solid rgba(253, 84, 0, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
  color: #fff;
}
.scloud-promo.is-open .scloud-promo__card {
  transform: translateY(0) scale(1);
}
.scloud-promo__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.scloud-promo__close:hover {
  background: rgba(255, 255, 255, 0.18);
}
.scloud-promo__body {
  flex: 1 1 auto;
  min-width: 0;
}
.scloud-promo__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.scloud-promo__brand-ico {
  display: inline-flex;
}
.scloud-promo__brand-txt strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fd5400;
}
.scloud-promo__brand-txt small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: -2px;
}
.scloud-promo__trust {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.scloud-promo__heading {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
}
.scloud-promo__subtext {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  max-width: 42ch;
}
.scloud-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  background: #fd5400;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 26px rgba(253, 84, 0, 0.35);
}
.scloud-promo__btn,
.scloud-promo__btn:link,
.scloud-promo__btn:visited,
.scloud-promo__btn:hover,
.scloud-promo__btn:active,
.scloud-promo__btn span {
  color: #fff !important;
}
.scloud-promo__btn:hover {
  background: #ff6a1f;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(253, 84, 0, 0.45);
}
.scloud-promo__art {
  position: relative;
  flex: 0 0 260px;
  align-self: stretch;
  min-height: 220px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 70% 20%, #1a1c22 0%, #101116 60%, #0b0b0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.scloud-promo__wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 90px;
  padding: 0 24px;
}
.scloud-promo__bar {
  width: 4px;
  border-radius: 3px;
  background: #fd5400;
  opacity: 0.85;
  height: 20%;
  animation: scloudPromoEq 1.1s ease-in-out infinite;
}
.scloud-promo__bar:nth-child(3n) {
  animation-delay: 0.15s;
}
.scloud-promo__bar:nth-child(3n + 1) {
  animation-delay: 0.3s;
}
.scloud-promo__bar:nth-child(4n) {
  animation-delay: 0.45s;
}
@keyframes scloudPromoEq {
  0%,
  100% {
    height: 22%;
  }
  50% {
    height: 88%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scloud-promo__bar {
    animation: none;
    height: 55%;
  }
}
.scloud-promo__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fd5400;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.scloud-promo__badge--mp3 {
  top: 26px;
  left: 22px;
}
.scloud-promo__badge--wav {
  bottom: 26px;
  right: 22px;
}
.scloud-promo__arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  color: #fd5400;
  font-size: 30px;
  font-weight: 700;
}
/* Mid widths (tablets and scaled/zoomed desktops): keep the WIDE landscape
   banner. Without this the text column gets squeezed until the heading wraps
   almost word-per-word and the card turns tall and narrow. Trimming the art
   panel + padding hands that width back to the text so it stays a short, wide
   card like on a full desktop. */
@media (max-width: 1024px) and (min-width: 721px) {
  .scloud-promo__card {
    padding: 30px 30px;
    gap: 20px;
  }
  .scloud-promo__heading {
    font-size: 26px;
  }
  .scloud-promo__subtext {
    max-width: none;
    margin-bottom: 18px;
  }
  .scloud-promo__art {
    flex: 0 0 190px;
    min-height: 200px;
  }
  .scloud-promo__wave {
    padding: 0 14px;
    gap: 3px;
  }
}
@media (max-width: 720px) {
  .scloud-promo {
    padding: 12px;
    /* Centre the popup vertically on phones. It used to be pinned to the top
       (flex-start + card margin-top), which left a large empty gap below it.
       The card is capped at the visible height and scrolls internally, so
       centring never hides the close button. */
    align-items: center;
    overflow-y: auto;
  }
  .scloud-promo__card {
    flex-direction: column;
    text-align: center;
    padding: 30px 18px 22px;
    gap: 18px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin-top: 0;
  }
  .scloud-promo__brand {
    text-align: left;
  }
  .scloud-promo__heading {
    font-size: 23px;
    margin: 8px 0 10px;
  }
  .scloud-promo__subtext {
    margin: 0 auto 20px;
    font-size: 14px;
  }
  .scloud-promo__art {
    flex: 0 0 auto;
    width: 100%;
    min-height: 168px;
    order: 3;
  }
  /* Keep the equalizer bars clear of the .MP3 / .WAV badges on narrow screens. */
  .scloud-promo__wave {
    height: 64px;
    padding: 0 64px;
    gap: 3px;
  }
  .scloud-promo__badge {
    width: 52px;
    height: 52px;
    font-size: 12px;
  }
  .scloud-promo__badge--mp3 {
    top: 16px;
    left: 16px;
  }
  .scloud-promo__badge--wav {
    bottom: 16px;
    right: 16px;
  }
  .scloud-promo__arrow {
    top: 22px;
    right: 26px;
    font-size: 24px;
  }
  .scloud-promo__close {
    top: 8px;
    right: 8px;
  }
  .scloud-promo__btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 380px) {
  .scloud-promo__wave {
    padding: 0 58px;
  }
  .scloud-promo__heading {
    font-size: 21px;
  }
}
/* Reusable [scloud_converter_promo] banner. */
.scloud-inline-promo{display:none!important;align-items:center;justify-content:space-between;gap:20px;margin:24px auto;padding:20px 22px;border:1px solid #ffd3c2;border-radius:16px;background:#fff8f5;color:#111827}
.scloud-inline-promo.scloud-inline-promo--visible{display:flex!important}
.scloud-inline-promo strong,.scloud-inline-promo span{display:block}.scloud-inline-promo strong{font-size:18px}.scloud-inline-promo span{margin-top:5px;color:#5f6470}
.scloud-inline-promo a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:12px 18px;border-radius:10px;background:#ff550f;color:#fff!important;font-weight:800;text-decoration:none!important}
@media(max-width:620px){.scloud-inline-promo.scloud-inline-promo--visible{flex-direction:column;text-align:center}.scloud-inline-promo a{width:100%;box-sizing:border-box}.scloud-result-actions,.scloud-download-buttons{align-items:center!important}.scloud-format-btn,.scloud-download-btn{margin-left:auto!important;margin-right:auto!important}}
/* Inline converter promo (shortcode [scloud_converter_promo]) — reuses the popup
   card styles, but neutralises the modal-only positioning so it renders in-page. */
/* Centre the in-page card two independent ways so a host theme can't knock it
   left: (1) force the flex wrapper's centring with !important (some themes reset
   generic wrappers to display:block, which silently kills justify-content), and
   (2) auto-margin the card itself so it still centres even if the wrapper is
   flattened to a block. border-box keeps the capped width honest and stops the
   card's own padding overflowing narrow phones. */
.scloud-cvpromo{display:flex!important;justify-content:center!important;width:100%;margin:24px auto;container-type:inline-size;container-name:scloudcv}
.scloud-cvpromo .scloud-promo__card{transform:none;max-height:none;overflow:visible;width:min(920px,100%);max-width:100%;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box;box-shadow:0 12px 40px rgba(0,0,0,.28)}
/* Consistency: stack the inline card by its OWN width, not just the viewport, so
   dropping [scloud_converter_promo] into a narrow column on a wide screen renders
   the same clean stacked banner as the popup does on mobile — never a squished,
   tall row. (Progressive enhancement; unsupported browsers keep the viewport rule.) */
@container scloudcv (max-width:720px){
  .scloud-cvpromo .scloud-promo__card{flex-direction:column;text-align:center;padding:30px 20px 22px;gap:18px}
  .scloud-cvpromo .scloud-promo__brand{text-align:left}
  .scloud-cvpromo .scloud-promo__heading{font-size:24px;margin:8px 0 10px}
  .scloud-cvpromo .scloud-promo__subtext{max-width:none;margin:0 auto 20px}
  .scloud-cvpromo .scloud-promo__btn{width:100%;justify-content:center}
  .scloud-cvpromo .scloud-promo__art{order:3;flex:0 0 auto;width:100%;min-height:168px}
}
@media(max-width:620px){.scloud-pro__formats,.scloud-pro__row .scloud-pro__formats{display:grid!important;grid-template-columns:minmax(0,316px)!important;justify-content:center!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}.scloud-pro__fmt,.scloud-pro__sponsor{width:100%!important;max-width:316px!important;margin-left:auto!important;margin-right:auto!important}.scloud-pro__sponsor-link{max-width:none!important}}
.scloud-pro__playlist-notice{margin:12px 0 18px;padding:12px 16px;border-radius:10px;background:#fff3e9;color:#8b390b;font-size:14px;line-height:1.5}
.scloud-pro__fmt--playlist-locked{opacity:.5}

/* ── "Get Pro" popup shown when the free 24h download limit is reached ───────── */
.scloud-pl-gate[hidden]{display:none!important}
.scloud-pl-gate{position:fixed;inset:0;z-index:2147483647;display:flex;align-items:center;justify-content:center;padding:16px;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
.scloud-pl-gate__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.66);backdrop-filter:blur(2px)}
.scloud-pl-gate__dialog{position:relative;z-index:1;width:min(420px,100%);box-sizing:border-box;padding:30px 26px 26px;text-align:center;background:#161616;border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 24px 64px rgba(0,0,0,.55);color:#f2f2f2}
.scloud-pl-gate__x{position:absolute;top:12px;right:12px;width:34px;height:34px;padding:0;border:none;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;cursor:pointer}
.scloud-pl-gate__x:hover{background:rgba(255,255,255,.16)}
.scloud-pl-gate__icon{display:flex;align-items:center;justify-content:center;width:72px;height:72px;margin:2px auto 14px;border-radius:50%;background:linear-gradient(135deg,rgba(255,85,15,.18),rgba(255,85,15,.06))}
.scloud-pl-gate__icon img,.scloud-pl-gate__icon svg{width:44px;height:44px}
.scloud-pl-gate__title{margin:0 0 8px;font-size:1.32rem;font-weight:800;line-height:1.25;color:#fff}
.scloud-pl-gate__msg{margin:0 0 20px;font-size:15px;line-height:1.5;color:#c9c9c9}
.scloud-pl-gate__cta{display:inline-block;box-sizing:border-box;width:100%;padding:14px 20px;border-radius:12px;background:#ff550f;color:#fff!important;font-size:16px;font-weight:800;text-decoration:none;border:none;cursor:pointer;transition:background .15s ease,transform .05s ease}
.scloud-pl-gate__cta:hover{background:#e64e0e}
.scloud-pl-gate__cta:active{transform:translateY(1px)}
body.scloud-pl-gate-open{overflow:hidden}
