/* Compact, bright downloader hero inspired by the supplied reference. */
.brand-logo-image {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
    border-radius: 9px;
}
.hero-downloader-section {
    isolation: isolate;
    overflow: hidden;
    min-height: 360px;
    padding: 38px 0 48px;
    background: linear-gradient(216deg, #405de6 0%, #5851db 15%, #833ab4 30%, #c13584 45%, #e1306c 60%, #fd1d1d 75%, #f56040 90%, #fcaf45 100%);
}

.hero-downloader-section .background-glows {
    z-index: -1;
    opacity: .5;
}

.hero-downloader-section .orb-1 {
    background: #5736db;
    top: 5%;
    left: -9%;
    opacity: .65;
}

.hero-downloader-section .orb-2 {
    background: #7d26de;
    right: 18%;
    bottom: -45%;
    opacity: .3;
}

.hero-downloader-section .hero-container {
    position: relative;
    z-index: 1;
}

.media-type-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 790px;
    min-height: 58px;
    margin: 0 auto 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(255, 255, 255, .22);
    box-shadow: 0 8px 24px rgba(89, 13, 69, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.media-type-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 12px 10px;
    border-inline-end: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color .2s ease, color .2s ease;
}

.media-type-link:last-child {
    border-inline-end: 0;
}

.media-type-link:hover,
.media-type-link:focus-visible,
.media-type-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.media-type-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.media-type-link i {
    font-size: 1.08rem;
}

.hero-text-content {
    max-width: 900px;
    margin-bottom: 30px;
}

.hero-downloader-section .hero-title,
.hero-downloader-section .gradient-text {
    margin-bottom: 8px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -.6px;
}

.hero-downloader-section .hero-subtitle {
    color: rgba(255, 255, 255, .94);
    font-size: 1.14rem;
    line-height: 1.5;
}

.downloader-card-wrapper {
    max-width: 840px;
}

.downloader-input-card {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(79, 13, 55, .18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.downloader-form {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.input-glow-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    height: 70px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
}

.input-glow-wrapper:focus-within {
    border: 0;
    box-shadow: inset 0 0 0 2px rgba(49, 115, 242, .28);
}

.input-icon-left {
    padding-inline-start: 16px;
    color: #a03a96;
}

.downloader-input-field {
    min-width: 0;
    flex: 1 1 0;
    color: #292633;
    font-size: 1.08rem;
}

.downloader-input-field::placeholder {
    color: #77727e;
    opacity: 1;
}

.input-buttons-right {
    gap: 7px;
    padding-inline-end: 0;
    flex: 0 0 auto;
}

.input-action-btn {
    min-height: 54px;
    padding: 0 17px;
    border: 1px solid #e0e2e8;
    border-radius: 10px;
    background: #f3f4f6;
    color: #30313a;
    font-size: .98rem;
    white-space: nowrap;
}

.input-action-btn:hover {
    background: #e9ebf0;
}

.clear-btn {
    width: 38px;
    min-height: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
}

.downloader-submit-btn {
    flex: 0 0 142px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2867ec 0%, #5a9af8 100%);
    box-shadow: none;
    font-size: 1.05rem;
}

.downloader-submit-btn:hover {
    background: linear-gradient(135deg, #205bd9 0%, #478cf0 100%);
    box-shadow: 0 6px 16px rgba(40, 103, 236, .25);
}

.hero-downloader-section .loading-state-card,
.hero-downloader-section .results-box-container {
    margin-top: 18px;
}

@media (max-width: 640px) {
    .hero-downloader-section {
        min-height: 0;
        padding: 26px 0 34px;
    }

    .media-type-nav {
        margin-bottom: 24px;
        min-height: 52px;
    }

    .media-type-link {
        flex-direction: column;
        gap: 5px;
        padding: 9px 4px;
        font-size: .76rem;
    }

    .media-type-link i {
        font-size: 1rem;
    }

    .hero-text-content {
        margin-bottom: 22px;
    }

    .hero-downloader-section .hero-title,
    .hero-downloader-section .gradient-text {
        font-size: 2rem;
    }

    .hero-downloader-section .hero-subtitle {
        font-size: .98rem;
    }

    .downloader-input-card {
        padding: 8px;
    }

    .downloader-form {
        gap: 6px;
    }

    .input-glow-wrapper {
        height: 60px;
    }

    .input-icon-left {
        padding-inline-start: 10px;
        font-size: 1.05rem;
    }

    .downloader-input-field {
        padding: 0 9px;
        font-size: .88rem;
    }

    .input-buttons-right {
        gap: 4px;
    }

    .input-action-btn {
        min-height: 42px;
        padding: 0 10px;
        font-size: .85rem;
    }

    .input-glow-wrapper {
        min-width: 0;
    }

    .clear-btn {
        width: 30px;
        min-height: 30px;
        height: 30px;
    }

    .downloader-submit-btn {
        flex-basis: 98px;
        height: 58px;
        font-size: .9rem;
    }
}

@media (max-width: 390px) {
    .media-type-link {
        font-size: .68rem;
    }

    .input-action-btn span {
        display: none;
    }

    .downloader-submit-btn {
        flex-basis: 84px;
    }
}
