/* Free download pop-up and saved-beats bar (sf-freedl.js). Dark on purpose: it sits on the beat's own cover art. */
.fdl-modal, .fdl-tray { --fdl-accent: var(--red, #e42020); --fdl-text: #f5f3ef; --fdl-soft: #b9b6b0; --fdl-mute: #8d8a85; --fdl-line: rgba(255,255,255,.16); --fdl-bad: #ff7b7b; color-scheme: dark; }
html.fdl-lock, html.fdl-lock body { overflow: hidden; }

/* ---------- pop-up ---------- */
.fdl-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; overflow-y: auto; background: rgba(0,0,0,.72); animation: fdl-fade .16s ease-out; font-size: 14px; line-height: 1.45; color: var(--fdl-text); text-align: left; }
.fdl-modal *, .fdl-modal *::before, .fdl-modal *::after { box-sizing: border-box; }
.fdl-card { position: relative; width: 100%; max-width: 460px; margin: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: #101010; box-shadow: 0 24px 80px rgba(0,0,0,.6); animation: fdl-rise .2s ease-out; }
.fdl-bg { position: absolute; inset: -30px; background: #1a1a1a center / cover no-repeat; filter: blur(26px) saturate(.85); transform: scale(1.1); }
.fdl-shade { position: absolute; inset: 0; background: rgba(10,10,10,.82); }
.fdl-inner { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; }
.fdl-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--fdl-text); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.fdl-x:hover { background: rgba(255,255,255,.16); }
.fdl-head { display: flex; align-items: center; gap: 14px; padding-right: 34px; }
.fdl-covers { display: flex; flex: none; }
.fdl-covers i { width: 60px; height: 60px; margin-right: -14px; border: 2px solid #141414; border-radius: 12px; background: #222 center / cover no-repeat; }
.fdl-covers i:last-child { margin-right: 0; }
.fdl-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-left: 4px; }
.fdl-titles b { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.fdl-titles span { color: var(--fdl-soft); font-size: 13.5px; }
.fdl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fdl-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.09); font-size: 12.5px; }
.fdl-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.fdl-form label, .fdl-phone { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; color: var(--fdl-soft); font-size: 12px; font-weight: 600; }
.fdl-label em { color: var(--fdl-mute); font-style: normal; font-weight: 500; }
.fdl-form input:not(.fdl-hp), .fdl-form select { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--fdl-line); border-radius: 12px; background: rgba(0,0,0,.45); color: var(--fdl-text); font: inherit; font-size: 15px; font-weight: 500; box-shadow: none; outline: none; }
.fdl-form input::placeholder { color: rgba(245,243,239,.38); }
.fdl-form input:focus, .fdl-form select:focus { border-color: rgba(255,255,255,.45); }
.fdl-form [aria-invalid="true"]:not(.fdl-check) { border-color: var(--fdl-bad); }
.fdl-form select { width: 104px; flex: none; padding: 0 28px 0 12px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fdl-soft) 50%), linear-gradient(135deg, var(--fdl-soft) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; font-size: 14px; cursor: pointer; }
.fdl-form select option { background: #141414; color: var(--fdl-text); }
.fdl-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fdl-phone-row { display: flex; gap: 8px; }
.fdl-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.fdl-err { color: var(--fdl-bad); font-size: 12.5px; font-weight: 500; }
.fdl-check-wrap { display: flex; flex-direction: column; gap: 6px; }
.fdl-check { display: flex; align-items: flex-start; gap: 12px; color: #d6d3cd; font-size: 13.5px; font-weight: 400; line-height: 1.5; cursor: pointer; outline: none; border-radius: 8px; }
.fdl-check:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.fdl-check a { color: var(--fdl-text); text-decoration: underline; }
.fdl-sms { font-size: 13px; }
.fdl-box { flex: none; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(0,0,0,.3); }
.fdl-box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fdl-check[aria-checked="true"] .fdl-box { border-color: var(--fdl-accent); background: var(--fdl-accent); }
.fdl-check[aria-invalid="true"] .fdl-box { border-color: var(--fdl-bad); }
.fdl-known { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(0,0,0,.45); color: var(--fdl-soft); }
.fdl-known b { color: var(--fdl-text); }
.fdl-known button, .fdl-textlink { padding: 0; border: 0; background: none; color: var(--fdl-soft); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.fdl-textlink { align-self: center; }
.fdl-alert { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,90,90,.12); color: #ffb3b3; font-size: 13px; }
.fdl-cta { height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.55); font: inherit; font-size: 15px; font-weight: 700; cursor: not-allowed; transition: background .15s, color .15s; }
.fdl-cta.on { background: var(--fdl-accent); color: #fff; cursor: pointer; }
.fdl-cta.on:hover { filter: brightness(1.08); }
.fdl-cta:disabled { opacity: .7; cursor: progress; }
.fdl-ghost { height: 46px; padding: 0 20px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: transparent; color: var(--fdl-text); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.fdl-ghost:hover:not(:disabled) { border-color: rgba(255,255,255,.5); }
.fdl-ghost:disabled { color: var(--fdl-mute); cursor: default; }
.fdl-fine { color: var(--fdl-mute); font-size: 12px; text-align: center; }
.fdl-note { margin: 0; color: #e8c37a; font-size: 12.5px; }
.fdl-resent { align-self: center; color: #42c878; font-size: 13px; font-weight: 700; }
.fdl-sent { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0 4px; text-align: center; }
.fdl-sent b#fdlTitle { font-size: 22px; font-weight: 700; }
.fdl-sent p { margin: 0; color: var(--fdl-soft); line-height: 1.5; }
.fdl-sent p b { color: var(--fdl-text); }
.fdl-ok { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(66,200,120,.16); }
.fdl-ok svg { width: 26px; height: 26px; fill: none; stroke: #42c878; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fdl-sending { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 0; }
.fdl-sending b { font-size: 18px; }
.fdl-spin { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--fdl-accent); border-radius: 50%; animation: fdl-spin .8s linear infinite; }
.fdl-terms-title { padding-right: 34px; font-size: 21px; font-weight: 700; }
.fdl-terms { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fdl-terms li { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(0,0,0,.4); }
.fdl-terms i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 12px; font-style: normal; font-weight: 700; }
.fdl-terms span { display: flex; flex-direction: column; gap: 2px; color: var(--fdl-soft); font-size: 13.5px; line-height: 1.5; }
.fdl-terms b { color: var(--fdl-text); font-size: 14px; }
.fdl-link { color: var(--fdl-text); font-size: 13.5px; text-decoration: underline; }

/* ---------- saved beats bar ---------- */
.fdl-tray { position: fixed; left: 50%; bottom: 14px; z-index: 2147482000; width: calc(100% - 32px); max-width: 640px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(24,24,24,.94); color: var(--fdl-text); box-shadow: 0 12px 40px rgba(0,0,0,.5); transform: translateX(-50%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fdl-rise .2s ease-out; transition: bottom .2s; font-size: 14px; }
.fdl-tray[hidden] { display: none; }
.fdl-tray-covers { display: flex; flex: none; padding-right: 8px; }
.fdl-tray-covers i { width: 28px; height: 28px; margin-right: -8px; border: 2px solid #181818; border-radius: 50%; background: #222 center / cover no-repeat; }
.fdl-tray-label { flex: 1; min-width: 0; overflow: hidden; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.fdl-tray-go { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--fdl-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.fdl-tray-go:hover { filter: brightness(1.08); }
.fdl-tray-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fdl-mute); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.fdl-tray-x:hover { color: var(--fdl-text); background: rgba(255,255,255,.08); }

@keyframes fdl-fade { from { opacity: 0; } }
@keyframes fdl-rise { from { opacity: 0; transform: translateY(10px); } }
.fdl-tray { animation-name: fdl-fade; }
@keyframes fdl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fdl-modal, .fdl-card, .fdl-tray { animation: none; } .fdl-spin { animation-duration: 2s; } }

/* phones: the pop-up becomes a bottom sheet */
@media (max-width: 760px) {
  .fdl-modal { align-items: flex-end; padding: 0; }
  .fdl-card { max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .fdl-inner { padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .fdl-names { grid-template-columns: 1fr; }
  .fdl-titles b { font-size: 19px; }
  .fdl-covers i { width: 52px; height: 52px; }
  .fdl-tray { width: calc(100% - 24px); gap: 10px; padding-left: 10px; }
  .fdl-tray-covers i:nth-child(n+3) { display: none; }
  .fdl-tray-go { padding: 0 14px; }
}
.fdl-links { display: flex; flex-direction: column; gap: 8px; }
/* focus: no ring after mouse use; a quiet white ring for keyboard users (the store's red ring read as a glow) */
.fdl-modal :focus:not(:focus-visible), .fdl-modal #fdlTitle:focus, .fdl-tray :focus:not(:focus-visible) { outline: none; }
.fdl-modal button:focus-visible, .fdl-modal a:focus-visible, .fdl-modal select:focus-visible, .fdl-tray button:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; box-shadow: none; }
.fdl-modal input:focus-visible { outline: none; }
.fdl-resend { color: var(--fdl-text); font-weight: 700; }
.fdl-resend:disabled { color: var(--fdl-mute); text-decoration: none; cursor: default; }
