/*
 * Digitlix Beat Extras 0.1.0, functional baseline styles.
 *
 * Deliberately minimal: positioning, hidden-state guards, and just enough
 * neutral styling to be usable on any theme. The Digitlix theme layers its
 * design tokens on top of these classes (loaded after this sheet).
 */

.dlxx-modal[hidden] { display: none !important; }
body.dlxx-modal-open { overflow: hidden; }

.dlxx-modal {
    position: fixed;
    z-index: 100400;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}
.dlxx-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .7);
    cursor: default;
}
.dlxx-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: var(--dlx-surface, #131317);
    color: var(--dlx-text, #f4f4f7);
    padding: 24px;
}
.dlxx-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 1.375rem;
    line-height: 1;
}
.dlxx-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
}
.dlxx-modal__dialog h2 { margin: 0 0 10px; padding-right: 40px; font-size: 1.375rem; line-height: 1.2; }
.dlxx-modal__note { margin: 0 0 16px; font-size: 0.8125rem; line-height: 1.55; opacity: .85; }

.dlxx-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(244, 244, 247, .22);
    border-radius: 9px;
    background: rgba(0, 0, 0, .35);
    color: inherit;
    padding: 0 14px;
    font: inherit;
}
.dlxx-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
.dlxx-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 0;
    font-size: 0.78125rem;
    line-height: 1.5;
    cursor: pointer;
}
.dlxx-consent input { margin-top: 3px; }
.dlxx-consent a { color: inherit; }
.dlxx-status { min-height: 20px; margin: 12px 0 0; font-size: 0.8125rem; }
.dlxx-status.is-error { color: var(--dlx-danger, #ff8a90); }
.dlxx-status.is-success { color: var(--dlx-green, #6fe0a0); }
.dlxx-submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 9px;
    background: var(--dlx-accent, #fff);
    color: var(--dlx-accent-contrast, #0b0b0d);
    padding: 0 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.dlxx-submit:disabled { opacity: .6; cursor: wait; }

/* Offer form: several labelled fields rather than the single email input the
   download modal needs, so they get their own stacked layout. */
.dlxx-modal__title { margin: 4px 0 0; font-size: 1.3125rem; font-weight: 800; line-height: 1.2; }
.dlxx-field { display: grid; gap: 5px; margin-bottom: 12px; }
.dlxx-field > span { font-size: 0.6875rem; font-weight: 700; letter-spacing: .1em; opacity: .72; text-transform: uppercase; }
.dlxx-field textarea.dlxx-input { min-height: 92px; padding-top: 10px; font: inherit; line-height: 1.5; resize: vertical; }
.dlxx-status-msg { min-height: 20px; margin: 12px 0 0; font-size: 0.8125rem; }
.dlxx-status-msg.is-error { color: var(--dlx-danger, #ff8a90); }
.dlxx-status-msg.is-success { color: var(--dlx-green, #6fe0a0); }
.dlxx-status-msg a { color: inherit; }

.dlxx-share-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dlxx-share-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid rgba(244, 244, 247, .22);
    border-radius: 9px;
    color: inherit;
    padding: 0 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}
.dlxx-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.dlxx-copy .dlxx-submit { width: auto; margin-top: 0; }

.dlxx-row-actions { display: inline-flex; align-items: center; gap: 6px; }
.dlxx-icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    padding: 0;
    cursor: pointer;
}
.dlxx-icon-button svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ saves
 * Functional baseline only; the Digitlix theme restyles all of this with
 * its design tokens (beat-store.css).
 * ---------------------------------------------------------------------- */
.dlxx-save {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    padding: 0;
    cursor: pointer;
}
.dlxx-save svg { width: 20px; height: 20px; }
.dlxx-save.is-saved svg { fill: currentColor; }

.dlxx-saved-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.dlxx-saved-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.dlxx-saved-item__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dlxx-saved-item__meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlxx-saved-item__act { display: flex; align-items: center; gap: 4px; }
.dlxx-saved-item__play,
.dlxx-saved-item__remove {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}
