/* Instagram Audio Downloader — WordPress-safe (transparent host page) */
            html,
            body {
                margin: 0;
                padding: 0;
                background: transparent;
            }

            .iad-root {
                --iad-ink: #1a1a2e;
                --iad-ink-soft: #2d2d44;
                --iad-muted: #5a5a78;
                --iad-line: rgba(255, 255, 255, 0.12);
                --iad-surface: #ffffff;
                --iad-surface-soft: #f8f7fc;
                --iad-accent: #F375C2;
                --iad-accent-mid: #ff8fd0;
                --iad-accent-deep: #d45a9e;
                --iad-accent-soft: rgba(243, 117, 194, 0.15);
                --iad-warm: #ff8fd0;
                --iad-error: #d45a9e;
                --iad-shadow:
                    0 1px 2px rgba(0, 0, 0, 0.2),
                    0 12px 32px rgba(0, 0, 0, 0.3);
                --iad-shadow-btn: 0 8px 20px rgba(243, 117, 194, 0.35);
                --iad-radius: 16px;
                --iad-radius-sm: 11px;
                --iad-font-display: "Outfit", system-ui, sans-serif;
                --iad-font-body: "Sora", system-ui, sans-serif;
                --iad-max: 760px;

                box-sizing: border-box;
                color: var(--iad-ink);
                font-family: var(--iad-font-body);
                font-size: 16px;
                line-height: 1.55;
                -webkit-font-smoothing: antialiased;
                position: relative;
                width: 100%;
                max-width: none;
                min-height: 100vh;
                margin: 0;
                padding: 18px 16px 22px;
                background:
                    radial-gradient(60% 55% at 50% 0%, rgba(177, 83, 215, 0.20) 0%, transparent 70%),
                    radial-gradient(40% 40% at 8% 40%, rgba(14, 33, 160, 0.12) 0%, transparent 70%),
                    radial-gradient(40% 40% at 94% 55%, rgba(77, 47, 178, 0.14) 0%, transparent 70%),
                    linear-gradient(180deg, #f4f2ff 0%, #fff 100%);
            }

            .iad-root *,
            .iad-root *::before,
            .iad-root *::after {
                box-sizing: border-box;
            }

            .iad-shell {
                position: relative;
                z-index: 1;
                padding: 8px 6px 2px;
            }

            .iad-dl-btn.is-busy {
                opacity: 0.72;
                pointer-events: none;
                cursor: wait;
            }

            /* —— Hero —— */
            .iad-hero {
                text-align: center;
                max-width: var(--iad-max);
                margin: 0 auto 24px;
            }

            .iad-brand {
                display: inline-flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 12px;
            }

            .iad-brand-mark {
                width: 40px;
                height: 40px;
                border-radius: 12px;
                background: linear-gradient(
                    145deg,
                    #F375C2 0%,
                    #B153D7 48%,
                    #4D2FB2 100%
                );
                display: grid;
                place-items: center;
                flex-shrink: 0;
                box-shadow: 0 6px 16px rgba(177, 83, 215, 0.35);
            }

            .iad-brand-mark svg {
                width: 20px;
                height: 20px;
                fill: #fff;
            }

            .iad-brand-name {
                font-family: var(--iad-font-display);
                font-weight: 800;
                font-size: clamp(1.45rem, 4vw, 2rem);
                letter-spacing: -0.035em;
                line-height: 1.15;
                color: var(--iad-ink);
                margin: 0;
            }

            .iad-brand-name span {
                color: var(--iad-accent-deep);
            }

            .iad-lead {
                margin: 0 auto;
                max-width: 34rem;
                color: #212529 !important;
                font-size: 0.95rem;
                font-weight: 400;
            }

            /* —— Input —— */
            .iad-composer {
                max-width: var(--iad-max);
                margin: 0 auto 18px;
            }

            .iad-form {
                display: flex;
                gap: 8px;
                align-items: stretch;
                padding: 5px;
                background: rgba(255, 255, 255, 0.95);
                border: 1px solid var(--iad-line);
                border-radius: 12px;
                box-shadow: var(--iad-shadow);
                transition:
                    border-color 0.2s ease,
                    box-shadow 0.2s ease,
                    background 0.2s ease;
            }

            .iad-form:focus-within {
                border-color: rgba(243, 117, 194, 0.5);
                box-shadow:
                    0 1px 2px rgba(0, 0, 0, 0.2),
                    0 8px 24px rgba(243, 117, 194, 0.15);
            }

            .iad-input-wrap {
                flex: 1;
                display: flex;
                align-items: center;
                gap: 8px;
                min-width: 0;
                padding: 0 8px 0 12px;
            }

            .iad-input-icon {
                flex-shrink: 0;
                width: 16px;
                height: 16px;
                color: var(--iad-muted);
                opacity: 0.75;
            }

            .iad-input-icon svg {
                width: 100%;
                height: 100%;
            }

            .iad-input {
                width: 100%;
                border: 0;
                outline: 0;
                background: transparent;
                font-family: var(--iad-font-body);
                font-size: 0.88rem;
                color: var(--iad-ink);
                padding: 10px 0;
                min-width: 0;
            }

            .iad-input::placeholder {
                color: #9a92a8 !important;
            }

            .iad-submit {
                appearance: none;
                border: 0;
                cursor: pointer;
                flex-shrink: 0;
                position: relative;
                overflow: hidden;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                padding: 0 18px;
                min-height: 42px;
                border-radius: 9px;
                background: linear-gradient(
                    160deg,
                    #F375C2 0%,
                    #B153D7 42%,
                    #4D2FB2 100%
                );
                color: #fff;
                font-family: var(--iad-font-display);
                font-weight: 700;
                font-size: 0.86rem;
                letter-spacing: -0.01em;
                box-shadow:
                    var(--iad-shadow-btn),
                    inset 0 1px 0 rgba(255, 255, 255, 0.28);
                transition:
                    transform 0.18s ease,
                    box-shadow 0.18s ease,
                    filter 0.18s ease,
                    opacity 0.18s ease;
            }

            .iad-submit::before {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.18) 0%,
                    transparent 48%
                );
                pointer-events: none;
            }

            .iad-submit:hover:not(:disabled) {
                transform: translateY(-1px);
                filter: brightness(1.04);
                box-shadow:
                    0 12px 26px rgba(177, 83, 215, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }

            .iad-submit:active:not(:disabled) {
                transform: translateY(0);
                filter: brightness(0.98);
                box-shadow:
                    0 4px 12px rgba(177, 83, 215, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }

            .iad-submit:focus-visible {
                outline: 2px solid rgba(243, 117, 194, 0.5);
                outline-offset: 2px;
            }

            .iad-submit:disabled {
                opacity: 0.62;
                cursor: not-allowed;
                transform: none;
                box-shadow: none;
            }

            .iad-submit-icon {
                width: 17px;
                height: 17px;
                display: grid;
                place-items: center;
                position: relative;
                z-index: 1;
            }

            .iad-submit-icon svg,
            .iad-submit #iad-submit-label {
                position: relative;
                z-index: 1;
            }

            .iad-submit-icon svg {
                width: 17px;
                height: 17px;
            }

            .iad-hint {
                margin: 11px 4px 0;
                font-size: 0.78rem;
                color: var(--iad-muted);
                text-align: center;
            }

            .iad-hint code {
                font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
                font-size: 0.74rem;
                background: var(--iad-accent-soft);
                color: var(--iad-accent-deep);
                padding: 2px 7px;
                border-radius: 6px;
            }

            /* —— Status —— */
            .iad-status {
                max-width: var(--iad-max);
                margin: 0 auto 14px;
                min-height: 0;
            }

            .iad-alert {
                display: none;
                align-items: flex-start;
                gap: 10px;
                padding: 12px 14px;
                border-radius: var(--iad-radius-sm);
                font-size: 0.88rem;
            }

            .iad-alert.is-visible {
                display: flex;
            }

            .iad-alert--error {
                background: #fff1f5;
                color: var(--iad-error);
                border: 1px solid rgba(243, 117, 194, 0.2);
            }

            .iad-alert--info {
                background: #fdf1f8;
                color: #9f1239;
                border: 1px solid rgba(243, 117, 194, 0.16);
            }

            .iad-alert-icon {
                width: 18px;
                height: 18px;
                flex-shrink: 0;
                margin-top: 1px;
            }

            .iad-alert-icon svg {
                width: 100%;
                height: 100%;
            }

            .iad-loading {
                display: none;
                align-items: center;
                justify-content: center;
                gap: 12px;
                padding: 16px;
                color: var(--iad-ink-soft);
                font-size: 0.9rem;
                font-weight: 500;
            }

            .iad-loading.is-visible {
                display: flex;
            }

            .iad-spinner {
                width: 24px;
                height: 24px;
                border-radius: 50%;
                border: 2.5px solid rgba(243, 117, 194, 0.2);
                border-top-color: var(--iad-accent);
                animation: iad-spin 0.75s linear infinite;
            }

            .iad-loading-bars {
                display: flex;
                align-items: flex-end;
                gap: 3px;
                height: 16px;
            }

            .iad-loading-bars span {
                width: 3px;
                border-radius: 2px;
                background: linear-gradient(
                    180deg,
                    var(--iad-warm),
                    var(--iad-accent)
                );
                animation: iad-bar 1s ease-in-out infinite;
            }

            .iad-loading-bars span:nth-child(1) {
                height: 6px;
                animation-delay: 0s;
            }
            .iad-loading-bars span:nth-child(2) {
                height: 11px;
                animation-delay: 0.1s;
            }
            .iad-loading-bars span:nth-child(3) {
                height: 16px;
                animation-delay: 0.2s;
            }
            .iad-loading-bars span:nth-child(4) {
                height: 9px;
                animation-delay: 0.3s;
            }
            .iad-loading-bars span:nth-child(5) {
                height: 13px;
                animation-delay: 0.4s;
            }

            /* —— Result —— */
            .iad-result {
                display: none;
                max-width: var(--iad-max);
                margin: 6px auto 22px;
            }

            .iad-result.is-visible {
                display: block;
            }

            .iad-result-panel {
                background: var(--iad-surface);
                border: 1px solid var(--iad-line);
                border-radius: 18px;
                overflow: hidden;
                box-shadow: var(--iad-shadow);
            }

            .iad-result-top {
                display: grid;
                grid-template-columns: 148px 1fr;
                gap: 0;
                border-bottom: 1px solid var(--iad-line);
            }

            .iad-thumb-wrap {
                position: relative;
                aspect-ratio: 1;
                background: linear-gradient(
                    145deg,
                    #1a1a2e 0%,
                    #2d2d44 55%,
                    #16131f 100%
                );
                overflow: hidden;
            }

            .iad-thumb {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                transition: transform 0.45s ease;
            }

            .iad-thumb-wrap:hover .iad-thumb {
                transform: scale(1.03);
            }

            .iad-thumb-fallback {
                position: absolute;
                inset: 0;
                display: grid;
                place-items: center;
                color: rgba(255, 255, 255, 0.5);
            }

            .iad-thumb-fallback svg {
                width: 44px;
                height: 44px;
                fill: currentColor;
            }

            .iad-thumb-badge {
                position: absolute;
                left: 10px;
                bottom: 10px;
                display: inline-flex;
                align-items: center;
                gap: 5px;
                padding: 5px 9px;
                border-radius: 8px;
                background: rgba(22, 19, 31, 0.72);
                color: #fff;
                font-size: 0.7rem;
                font-weight: 600;
                letter-spacing: 0.02em;
                backdrop-filter: blur(8px);
            }

            .iad-thumb-badge svg {
                width: 12px;
                height: 12px;
            }

            .iad-meta {
                padding: 20px 22px;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 9px;
                min-width: 0;
                background: var(--iad-surface);
            }

            .iad-meta-kicker {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                font-size: 0.7rem;
                font-weight: 650;
                letter-spacing: 0.07em;
                text-transform: uppercase;
                color: var(--iad-accent-deep);
            }

            .iad-title {
                margin: 0;
                font-family: var(--iad-font-display);
                font-size: clamp(1.12rem, 2.6vw, 1.4rem);
                font-weight: 700;
                letter-spacing: -0.025em;
                line-height: 1.25;
                color: var(--iad-ink);
                word-break: break-word;
            }

            .iad-author {
                margin: 0;
                color: var(--iad-muted);
                font-size: 0.88rem;
                display: flex;
                align-items: center;
                gap: 6px;
                min-width: 0;
            }

            .iad-author strong {
                color: var(--iad-ink-soft);
                font-weight: 600;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .iad-chips {
                display: flex;
                flex-wrap: wrap;
                gap: 7px;
                margin-top: 2px;
            }

            .iad-chip {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                padding: 4px 9px;
                border-radius: 7px;
                background: #f3f1f8;
                color: var(--iad-ink-soft);
                font-size: 0.72rem;
                font-weight: 550;
            }

            .iad-chip--accent {
                background: var(--iad-accent-soft);
                color: var(--iad-accent-deep);
            }

            /* Player */
            .iad-player-block {
                padding: 16px 22px;
                border-bottom: 1px solid var(--iad-line);
                background: var(--iad-surface-soft);
            }

            .iad-player-label {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 10px;
            }

            .iad-player-label strong {
                font-family: var(--iad-font-display);
                font-size: 0.9rem;
                font-weight: 650;
                letter-spacing: -0.01em;
            }

            .iad-eq {
                display: flex;
                align-items: flex-end;
                gap: 3px;
                height: 14px;
                opacity: 0.5;
            }

            .iad-eq span {
                width: 3px;
                border-radius: 2px;
                background: var(--iad-accent);
                animation: iad-bar 1.1s ease-in-out infinite;
                animation-play-state: paused;
            }

            .iad-eq.is-playing span {
                animation-play-state: running;
                opacity: 1;
            }

            .iad-eq span:nth-child(1) {
                height: 5px;
                animation-delay: 0s;
            }
            .iad-eq span:nth-child(2) {
                height: 11px;
                animation-delay: 0.12s;
            }
            .iad-eq span:nth-child(3) {
                height: 7px;
                animation-delay: 0.24s;
            }
            .iad-eq span:nth-child(4) {
                height: 14px;
                animation-delay: 0.08s;
            }
            .iad-eq span:nth-child(5) {
                height: 6px;
                animation-delay: 0.2s;
            }

            .iad-audio {
                width: 100%;
                height: 40px;
                border-radius: 8px;
                outline: none;
            }

            /* Downloads */
            .iad-downloads {
                padding: 16px 22px 20px;
                background: var(--iad-surface);
            }

            .iad-downloads-head {
                display: flex;
                align-items: baseline;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 12px;
            }

            .iad-downloads-head h3 {
                margin: 0;
                font-family: var(--iad-font-display);
                font-size: 0.98rem;
                font-weight: 700;
                letter-spacing: -0.015em;
            }

            .iad-downloads-head span {
                font-size: 0.76rem;
                color: var(--iad-muted);
            }

            .iad-download-list {
                display: flex;
                flex-direction: column;
                gap: 9px;
                list-style: none;
                margin: 0;
                padding: 0;
            }

            .iad-download-item {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 11px 12px;
                border-radius: 12px;
                border: 1px solid var(--iad-line);
                background: #fff;
                transition:
                    border-color 0.18s ease,
                    background 0.18s ease,
                    box-shadow 0.18s ease;
            }

            .iad-download-item:hover {
                border-color: rgba(243, 117, 194, 0.35);
                background: #fff8fc;
                box-shadow: 0 6px 16px rgba(243, 117, 194, 0.08);
            }

            .iad-dl-icon {
                width: 38px;
                height: 38px;
                border-radius: 10px;
                background: linear-gradient(
                    145deg,
                    rgba(243, 117, 194, 0.18),
                    rgba(177, 83, 215, 0.16)
                );
                color: var(--iad-accent-deep);
                display: grid;
                place-items: center;
                flex-shrink: 0;
            }

            .iad-dl-icon svg {
                width: 17px;
                height: 17px;
            }

            .iad-dl-info {
                flex: 1;
                min-width: 0;
            }

            .iad-dl-label {
                margin: 0;
                font-weight: 600;
                font-size: 0.88rem;
                color: var(--iad-ink);
                letter-spacing: -0.01em;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .iad-dl-sub {
                margin: 2px 0 0;
                font-size: 0.73rem;
                color: var(--iad-muted);
            }

            .iad-dl-btn {
                appearance: none;
                border: 0;
                cursor: pointer;
                text-decoration: none;
                position: relative;
                overflow: hidden;
                display: inline-flex;
                align-items: center;
                gap: 7px;
                padding: 10px 16px;
                border-radius: 10px;
                background: linear-gradient(
                    160deg,
                    #F375C2 0%,
                    #B153D7 45%,
                    #4D2FB2 100%
                );
                color: #fff;
                font-family: var(--iad-font-display);
                font-weight: 700;
                font-size: 0.8rem;
                letter-spacing: -0.01em;
                white-space: nowrap;
                box-shadow:
                    0 6px 14px rgba(177, 83, 215, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.25);
                transition:
                    transform 0.16s ease,
                    box-shadow 0.16s ease,
                    filter 0.16s ease;
            }

            .iad-dl-btn::before {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.16) 0%,
                    transparent 50%
                );
                pointer-events: none;
            }

            .iad-dl-btn:hover {
                transform: translateY(-1px);
                filter: brightness(1.05);
                box-shadow:
                    0 10px 20px rgba(177, 83, 215, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.28);
            }

            .iad-dl-btn:active {
                transform: translateY(0);
                filter: brightness(0.98);
            }

            .iad-dl-btn:focus-visible {
                outline: 2px solid rgba(243, 117, 194, 0.5);
                outline-offset: 2px;
            }

            .iad-dl-btn svg {
                width: 14px;
                height: 14px;
                position: relative;
                z-index: 1;
            }

            /* Steps */
            .iad-steps {
                max-width: var(--iad-max);
                margin: 0 auto 4px;
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }

            .iad-step {
                padding: 14px 13px;
                border-radius: 12px;
                background: var(--iad-surface);
                border: 1px solid var(--iad-line);
                text-align: left;
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
            }

            .iad-step-num {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                border-radius: 7px;
                background: var(--iad-accent-soft);
                color: var(--iad-accent-deep);
                font-family: var(--iad-font-display);
                font-weight: 700;
                font-size: 0.75rem;
                margin-bottom: 9px;
            }

            .iad-step h4 {
                margin: 0 0 4px;
                font-family: var(--iad-font-display);
                font-size: 0.86rem;
                font-weight: 700;
                letter-spacing: -0.01em;
            }

            .iad-step p {
                margin: 0;
                font-size: 0.76rem;
                color: #212529 !important;
                line-height: 1.45;
            }

            @keyframes iad-spin {
                to {
                    transform: rotate(360deg);
                }
            }

            @keyframes iad-bar {
                0%,
                100% {
                    transform: scaleY(0.45);
                }
                50% {
                    transform: scaleY(1);
                }
            }

            @media (max-width: 640px) {
                .iad-shell {
                    padding: 8px 2px 2px;
                }

                .iad-form {
                    flex-direction: column;
                    padding: 9px;
                }

                .iad-input-wrap {
                    padding: 0 6px;
                }

                .iad-submit {
                    width: 100%;
                    min-height: 48px;
                }

                .iad-result-top {
                    grid-template-columns: 1fr;
                }

                .iad-thumb-wrap {
                    aspect-ratio: 16 / 10;
                    max-height: 220px;
                }

                .iad-meta {
                    padding: 16px;
                }

                .iad-player-block,
                .iad-downloads {
                    padding-left: 16px;
                    padding-right: 16px;
                }

                .iad-download-item {
                    flex-wrap: wrap;
                }

                .iad-dl-btn {
                    width: 100%;
                    justify-content: center;
                }

                .iad-steps {
                    grid-template-columns: 1fr;
                }
            }

            @media (prefers-reduced-motion: reduce) {
                .iad-root *,
                .iad-root *::before,
                .iad-root *::after {
                    animation-duration: 0.01ms !important;
                    animation-iteration-count: 1 !important;
                    transition-duration: 0.01ms !important;
                }
            }

/* --- Codex CSS updates --- */
/* Instagram Audio Downloader - WordPress-safe */
html,
body {
    margin: 0;
    padding: 0;
    background: transparent;
}

.iad-root {
    --iad-ink: #1a1a2e;
    --iad-ink-soft: #2d2d44;
    --iad-muted: #5a5a78;
    --iad-line: rgba(255, 255, 255, 0.12);
    --iad-surface: #ffffff;
    --iad-surface-soft: #f8f7fc;
    --iad-accent: #F375C2;
    --iad-accent-mid: #ff8fd0;
    --iad-accent-deep: #d45a9e;
    --iad-accent-soft: rgba(243, 117, 194, 0.15);
    --iad-warm: #ff8fd0;
    --iad-error: #d45a9e;
    --iad-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 18px 44px rgba(0, 0, 0, 0.3);
    --iad-shadow-btn: 0 10px 24px rgba(243, 117, 194, 0.35);
    --iad-radius: 16px;
    --iad-radius-sm: 11px;
    --iad-font-display: "Outfit", system-ui, sans-serif;
    --iad-font-body: "Sora", system-ui, sans-serif;
    --iad-max: 760px;
    --iad-container: 1200px;

    box-sizing: border-box;
    color: var(--iad-ink);
    font-family: var(--iad-font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px 34px;
    overflow-x: hidden;
background:
        radial-gradient(60% 55% at 50% 0%, rgba(177, 83, 215, 0.20) 0%, transparent 70%),
        radial-gradient(40% 40% at 8% 40%, rgba(14, 33, 160, 0.12) 0%, transparent 70%),
        radial-gradient(40% 40% at 94% 55%, rgba(77, 47, 178, 0.14) 0%, transparent 70%),
        linear-gradient(180deg, #f4f2ff 0%, #fff 100%);
    }

.iad-root *,
.iad-root *::before,
.iad-root *::after {
    box-sizing: border-box;
}

.iad-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--iad-container);
    margin: 0 auto;
    padding: 10px 0 2px;
}

.iad-dl-btn.is-busy {
    opacity: 0.72;
    pointer-events: none;
    cursor: wait;
}

/* Hero */
.iad-hero {
    text-align: center;
    max-width: var(--iad-max);
    margin: 0 auto 26px;
}

.iad-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 13px;
    max-width: 100%;
}

.iad-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #F375C2 0%, #B153D7 48%, #4D2FB2 100%);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(177, 83, 215, 0.35);
}

.iad-brand-mark svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.iad-brand-name {
    font-family: var(--iad-font-display);
    font-weight: 800;
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    letter-spacing: 0;
    line-height: 1.14;
    color: var(--iad-ink);
    margin: 0;
    text-transform: capitalize;
}

.iad-brand-name span {
    color: var(--iad-accent-deep);
    text-transform: capitalize;
}

.iad-lead {
    margin: 0 auto;
    max-width: 36rem;
    color: var(--iad-muted);
    font-size: 0.96rem;
    font-weight: 400;
}

/* Input */
.iad-composer {
    max-width: var(--iad-max);
    margin: 0 auto 18px;
}

.iad-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
    padding: 5px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--iad-line);
    border-radius: 12px;
    box-shadow: var(--iad-shadow);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.iad-form:focus-within {
    border-color: rgba(243, 117, 194, 0.5);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 8px 24px rgba(243, 117, 194, 0.18);
}

.iad-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0 8px 0 12px;
}

.iad-input-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--iad-muted);
    opacity: 0.78;
}

.iad-input-icon svg {
    width: 100%;
    height: 100%;
}

.iad-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--iad-font-body);
    font-size: 0.88rem;
    color: var(--iad-ink);
    padding: 10px 0;
    min-width: 0;
}

.iad-input::placeholder {
    color: #8b999b;
}

.iad-submit {
    appearance: none;
    border: 0;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    min-height: 42px;
    border-radius: 9px;
    background: linear-gradient(160deg, #F375C2 0%, #B153D7 45%, #4D2FB2 100%);
    color: #fff;
    font-family: var(--iad-font-display);
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0;
    box-shadow:
        var(--iad-shadow-btn),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        opacity 0.18s ease;
}

.iad-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 48%);
    pointer-events: none;
}

.iad-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
        0 14px 28px rgba(177, 83, 215, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.iad-submit:active:not(:disabled) {
    transform: translateY(0);
    filter: brightness(0.98);
    box-shadow:
        0 5px 14px rgba(177, 83, 215, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.iad-submit:focus-visible {
    outline: 3px solid rgba(243, 117, 194, 0.32);
    outline-offset: 2px;
}

.iad-submit:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.iad-submit-icon {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}

.iad-submit-icon svg,
.iad-submit #iad-submit-label {
    position: relative;
    z-index: 1;
}

.iad-submit-icon svg {
    width: 17px;
    height: 17px;
}

.iad-hint {
    margin: 11px 4px 0;
    font-size: 0.78rem;
    color: #212529 !important;
    text-align: center;
}

.iad-hint code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.74rem;
    background: var(--iad-accent-soft);
    color: var(--iad-accent-deep);
    padding: 2px 7px;
    border-radius: 6px;
}

/* Status */
.iad-status {
    max-width: var(--iad-max);
    margin: 0 auto 14px;
    min-height: 0;
}

.iad-alert {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--iad-radius-sm);
    font-size: 0.88rem;
}

.iad-alert.is-visible {
    display: flex;
}

.iad-alert--error {
    background: #fff1f5;
    color: var(--iad-error);
    border: 1px solid rgba(243, 117, 194, 0.2);
}

.iad-alert--info {
    background: #fdf1f8;
    color: #9f1239;
    border: 1px solid rgba(243, 117, 194, 0.16);
}

.iad-alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.iad-alert-icon svg {
    width: 100%;
    height: 100%;
}

.iad-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: var(--iad-ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.iad-loading.is-visible {
    display: flex;
}

.iad-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2.5px solid rgba(243, 117, 194, 0.2);
    border-top-color: var(--iad-accent);
    animation: iad-spin 0.75s linear infinite;
}

.iad-loading-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.iad-loading-bars span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--iad-warm), var(--iad-accent));
    animation: iad-bar 1s ease-in-out infinite;
}

.iad-loading-bars span:nth-child(1) {
    height: 6px;
    animation-delay: 0s;
}

.iad-loading-bars span:nth-child(2) {
    height: 11px;
    animation-delay: 0.1s;
}

.iad-loading-bars span:nth-child(3) {
    height: 16px;
    animation-delay: 0.2s;
}

.iad-loading-bars span:nth-child(4) {
    height: 9px;
    animation-delay: 0.3s;
}

.iad-loading-bars span:nth-child(5) {
    height: 13px;
    animation-delay: 0.4s;
}

/* Result */
.iad-result {
    display: none;
    max-width: var(--iad-max);
    margin: 6px auto 22px;
}

.iad-result.is-visible {
    display: block;
}

.iad-result-panel {
    background: var(--iad-surface);
    border: 1px solid var(--iad-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--iad-shadow);
}

.iad-result-top {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--iad-line);
}

.iad-thumb-wrap {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #1a1a2e 0%, #2d2d44 56%, #0d1b1b 100%);
    overflow: hidden;
}

.iad-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.iad-thumb-wrap:hover .iad-thumb {
    transform: scale(1.03);
}

.iad-thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.58);
}

.iad-thumb-fallback svg {
    width: 44px;
    height: 44px;
    fill: currentColor;
}

.iad-thumb-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(13, 27, 27, 0.76);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.iad-thumb-badge svg {
    width: 12px;
    height: 12px;
}

.iad-meta {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    background: var(--iad-surface);
}

.iad-meta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--iad-accent-deep);
}

.iad-title {
    margin: 0;
    font-family: var(--iad-font-display);
    font-size: clamp(1.12rem, 2.6vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    color: var(--iad-ink);
    word-break: break-word;
    text-transform: capitalize;
}

.iad-author {
    margin: 0;
    color: var(--iad-muted);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.iad-author strong {
    color: var(--iad-ink-soft);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iad-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.iad-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 7px;
    background: #f3f1f8;
    color: var(--iad-ink-soft);
    font-size: 0.72rem;
    font-weight: 550;
}

.iad-chip--accent {
    background: var(--iad-accent-soft);
    color: var(--iad-accent-deep);
}

/* Player */
.iad-player-block {
    padding: 16px 22px;
    border-bottom: 1px solid var(--iad-line);
    background: var(--iad-surface-soft);
}

.iad-player-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.iad-player-label strong {
    font-family: var(--iad-font-display);
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--iad-ink);
}

.iad-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    opacity: 0.55;
}

.iad-eq span {
    width: 3px;
    border-radius: 2px;
    background: var(--iad-accent);
    animation: iad-bar 1.1s ease-in-out infinite;
    animation-play-state: paused;
}

.iad-eq.is-playing span {
    animation-play-state: running;
    opacity: 1;
}

.iad-eq span:nth-child(1) {
    height: 5px;
    animation-delay: 0s;
}

.iad-eq span:nth-child(2) {
    height: 11px;
    animation-delay: 0.12s;
}

.iad-eq span:nth-child(3) {
    height: 7px;
    animation-delay: 0.24s;
}

.iad-eq span:nth-child(4) {
    height: 14px;
    animation-delay: 0.08s;
}

.iad-eq span:nth-child(5) {
    height: 6px;
    animation-delay: 0.2s;
}

.iad-audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
    display: block;
}

/* Downloads */
.iad-downloads {
    padding: 16px 22px 20px;
    background: var(--iad-surface);
}

.iad-downloads-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.iad-downloads-head h3 {
    margin: 0;
    font-family: var(--iad-font-display);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--iad-ink);
}

.iad-downloads-head span {
    font-size: 0.76rem;
    color: var(--iad-muted);
}

.iad-download-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iad-download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--iad-line);
    background: #fff;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.iad-download-item:hover {
    border-color: rgba(243, 117, 194, 0.35);
    background: #fff8fc;
    box-shadow: 0 8px 18px rgba(243, 117, 194, 0.1);
}

.iad-dl-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(243, 117, 194, 0.18), rgba(177, 83, 215, 0.16));
    color: var(--iad-accent-deep);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.iad-dl-icon svg {
    width: 17px;
    height: 17px;
}

.iad-dl-info {
    flex: 1;
    min-width: 0;
}

.iad-dl-label {
    margin: 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--iad-ink);
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iad-dl-sub {
    margin: 2px 0 0;
    font-size: 0.73rem;
    color: var(--iad-muted);
}

.iad-dl-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(160deg, #F375C2 0%, #B153D7 45%, #4D2FB2 100%);
    color: #fff;
    font-family: var(--iad-font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow:
        0 7px 16px rgba(177, 83, 215, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.iad-dl-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 50%);
    pointer-events: none;
}

.iad-dl-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 11px 22px rgba(177, 83, 215, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.iad-dl-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.iad-dl-btn:focus-visible {
    outline: 3px solid rgba(243, 117, 194, 0.32);
    outline-offset: 2px;
}

.iad-dl-btn svg {
    width: 14px;
    height: 14px;
    position: relative;
    z-index: 1;
}

/* Steps */
.iad-steps {
    max-width: var(--iad-max);
    margin: 0 auto 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.iad-step {
    padding: 14px 13px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--iad-line);
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.iad-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--iad-accent-soft);
    color: var(--iad-accent-deep);
    font-family: var(--iad-font-display);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 9px;
}

.iad-step h4 {
    margin: 0 0 4px;
    font-family: var(--iad-font-display);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--iad-ink);
}

.iad-step p {
    margin: 0;
    font-size: 0.76rem;
    color: var(--iad-muted);
    line-height: 1.45;
}

@keyframes iad-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes iad-bar {
    0%,
    100% {
        transform: scaleY(0.45);
    }

    50% {
        transform: scaleY(1);
    }
}

@media (max-width: 760px) {
    .iad-root {
        padding: 22px 14px 28px;
    }

    .iad-brand {
        align-items: flex-start;
    }

    .iad-brand-name {
        font-size: clamp(1.42rem, 7vw, 1.9rem);
    }

    .iad-lead {
        font-size: 0.92rem;
    }
}

@media (max-width: 640px) {
    .iad-shell {
        padding: 8px 0 2px;
    }

    .iad-form {
        flex-direction: column;
        padding: 9px;
    }

    .iad-input-wrap {
        padding: 0 6px;
    }

    .iad-input {
        font-size: 0.9rem;
    }

    .iad-submit {
        width: 100%;
        min-height: 44px;
        padding: 0 16px;
    }

    .iad-result-top {
        grid-template-columns: 1fr;
    }

    .iad-thumb-wrap {
        aspect-ratio: 16 / 10;
        max-height: 220px;
    }

    .iad-meta {
        padding: 16px;
    }

    .iad-player-block,
    .iad-downloads {
        padding-left: 16px;
        padding-right: 16px;
    }

    .iad-player-label,
    .iad-downloads-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .iad-download-item {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .iad-dl-info {
        flex: 1 1 calc(100% - 50px);
    }

    .iad-dl-label {
        white-space: normal;
    }

    .iad-dl-btn {
        width: 100%;
        justify-content: center;
    }

    .iad-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .iad-root {
        padding-left: 10px;
        padding-right: 10px;
    }

    .iad-brand {
        gap: 9px;
    }

    .iad-brand-mark {
        width: 38px;
        height: 38px;
    }

    .iad-meta,
    .iad-player-block,
    .iad-downloads {
        padding-left: 13px;
        padding-right: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iad-root *,
    .iad-root *::before,
    .iad-root *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}