/* =========================================================
   DownloadPinVideo
   Main Tool UI
   Clean / Lightweight / Performance First
========================================================= */


/* =========================================================
   Page Background
========================================================= */

html,
body,
#page,
.site,
#inner-wrap,
.content-area,
.site-main,
.content-wrap,
.entry-content-wrap {
    background: #FFF9FB !important;
}


/* =========================================================
   Main Tool Wrapper
========================================================= */

.dpv-wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 24px 20px 30px;
    box-sizing: border-box;
    background: transparent;
    color: #111827;
}


/* =========================================================
   Hero
========================================================= */

.dpv-hero-grid {
    display: block;
    width: 100%;
}

.dpv-hero-main {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}


/* =========================================================
   Eyebrow
========================================================= */

.dpv-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 10px;
    padding: 7px 13px;

    border-radius: 999px;

    background: #FFF0F3;
    color: #E60023;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}


/* =========================================================
   Heading
========================================================= */

.dpv-wrap h1 {
    margin: 0 0 10px;

    color: #111827;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.4px;
    font-weight: 800;
}

.dpv-wrap h1 span {
    color: #E60023;
}


/* =========================================================
   Subtitle
========================================================= */

.dpv-subtitle {
    max-width: 720px;

    margin: 0 auto 21px;

    color: #6B7280;

    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   Form
========================================================= */

.dpv-form {
    display: flex;

    width: 100%;
    max-width: 820px;

    margin: 0 auto;

    gap: 12px;
}


/* =========================================================
   Input
========================================================= */

.dpv-input-wrap {
    position: relative;

    display: flex;
    align-items: center;

    flex: 1;

    min-width: 0;
}

.dpv-input-icon {
    position: absolute;

    left: 18px;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7B8492;

    font-size: 18px;
    line-height: 1;

    pointer-events: none;
}

.dpv-form input {
    width: 100%;
    min-width: 0;

    height: 56px;

    padding: 0 20px 0 50px;

    box-sizing: border-box;

    border: 1px solid #E8DDE1;
    border-radius: 12px;

    background: #FFFFFF;
    color: #111827;

    font: inherit;
    font-size: 16px;

    outline: none;

    box-shadow:
        0 4px 14px rgba(17, 24, 39, 0.035);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dpv-form input::placeholder {
    color: #9CA3AF;
}

.dpv-form input:focus {
    border-color: #E60023;

    box-shadow:
        0 0 0 3px rgba(230, 0, 35, 0.07),
        0 4px 14px rgba(17, 24, 39, 0.035);
}


/* =========================================================
   Main Form Button
========================================================= */

.dpv-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex: 0 0 auto;

    min-width: 170px;
    height: 56px;

    padding: 0 26px;

    border: 0;
    border-radius: 12px;

    background: #E60023;
    color: #FFFFFF;

    font: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(230, 0, 35, 0.15);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}

.dpv-form button:hover {
    background: #C9001F;

    transform: translateY(-1px);

    box-shadow:
        0 9px 21px rgba(230, 0, 35, 0.19);
}

.dpv-form button:active {
    transform: translateY(0);
}

.dpv-form button:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
}

.dpv-submit-icon {
    font-size: 19px;
    line-height: 1;
}


/* =========================================================
   Main Form Status
========================================================= */

#dpv-message,
.dpv-message {
    width: 100%;
    max-width: 820px;

    margin: 12px auto 0;

    padding: 0;

    color: #6B7280;

    font-size: 13px;
    line-height: 1.45;

    text-align: center;
}

.dpv-message:empty {
    display: none;
}

.dpv-message.success {
    color: #15803D;
}

.dpv-message.error {
    color: #B91C1C;
}


/* =========================================================
   Result Area
========================================================= */

#dpv-result,
.dpv-result {
    width: 100%;
    margin-top: 18px;
}

.dpv-result:empty {
    display: none;
}


/* =========================================================
   Compact Result Card
========================================================= */

.dpv-result-card {
    position: relative;

    display: grid;

    grid-template-columns:
        190px minmax(0, 1fr);

    align-items: stretch;

    gap: 22px;

    width: min(100%, 720px);

    margin: 0 auto;

    padding: 14px;

    box-sizing: border-box;

    background: #FFFFFF;

    border: 1px solid #F0E7EA;
    border-radius: 16px;

    box-shadow:
        0 9px 28px rgba(17, 24, 39, 0.055);

    text-align: left;
}


/* =========================================================
   Preview Wrapper
========================================================= */

.dpv-preview-wrap {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    height: 190px;

    overflow: hidden;

    border-radius: 12px;

    background: #F7F7F8;
}


/* =========================================================
   Preview
========================================================= */

.dpv-preview-wrap .dpv-preview,
.dpv-preview-wrap img,
.dpv-preview-wrap video {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    margin: 0;

    object-fit: contain;

    border: 0;
    border-radius: 0;

    background: #F7F7F8;
}

.dpv-preview-video {
    cursor: pointer;
}


/* =========================================================
   Result Content
========================================================= */

.dpv-result-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-width: 0;

    padding: 7px 10px 7px 0;
}


/* =========================================================
   Ready Badge
========================================================= */

.dpv-ready-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0 0 8px;

    padding: 5px 10px;

    border-radius: 999px;

    background: #FFF0F3;
    color: #E60023;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: 0.1px;
}

.dpv-ready-badge.is-complete {
    background: #ECFDF3;
    color: #15803D;
}


/* =========================================================
   Result Heading
========================================================= */

.dpv-result-title {
    margin: 0 0 4px !important;

    color: #111827;

    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
}


/* =========================================================
   Result Meta
========================================================= */

.dpv-result-meta {
    margin: 0 0 10px;

    color: #7B8492;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   Result Status
========================================================= */

.dpv-status {
    min-height: 20px;

    margin: 0 0 8px;

    color: #6B7280;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.dpv-status.is-working {
    color: #4B5563;
}

.dpv-status.is-success {
    color: #15803D;
}

.dpv-status.is-success::before {
    content: "✓";
    display: inline-block;
    margin-right: 6px;
    font-weight: 900;
}

.dpv-status.is-error {
    color: #B91C1C;
}


/* =========================================================
   Progress
========================================================= */

.dpv-progress {
    position: relative;

    display: none;

    width: 100%;
    max-width: 310px;
    height: 5px;

    margin: 0 0 13px;

    overflow: hidden;

    border-radius: 999px;

    background: #F3E7EA;
}

.dpv-progress.is-active {
    display: block;
}

.dpv-progress-bar {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: #E60023;

    transition:
        width 0.28s ease;
}

.dpv-progress.is-complete .dpv-progress-bar {
    background: #16A34A;
}


/* =========================================================
   Result Download Button
========================================================= */

.dpv-download-btn,
.dpv-download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 185px;
    min-height: 45px;

    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    background: #E60023;

    color: #FFFFFF !important;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(230, 0, 35, 0.14);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        opacity 0.18s ease;
}

.dpv-download-btn:hover,
.dpv-download-link:hover {
    background: #C9001F;
    transform: translateY(-1px);
}

.dpv-download-btn:disabled {
    opacity: 0.68;
    cursor: wait;
    transform: none;
}

.dpv-download-btn.is-loading {
    position: relative;
}


/* =========================================================
   Trust Row
========================================================= */

.dpv-trust-row {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
    max-width: 820px;

    margin: 18px auto 0;
}

.dpv-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-width: 0;

    padding: 4px 2px;

    text-align: left;
}

.dpv-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    border-radius: 9px;

    background: #FFF0F3;
    color: #E60023;

    font-size: 16px;
    font-weight: 800;
}

.dpv-trust-item div {
    min-width: 0;
}

.dpv-trust-item strong {
    display: block;

    margin: 0 0 1px;

    color: #1F2937;

    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.dpv-trust-item small {
    display: block;

    color: #7B8492;

    font-size: 11px;
    line-height: 1.35;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {

    .dpv-wrap {
        width: min(100% - 24px, 900px);
        margin-top: 26px;
        padding: 24px 16px 28px;
    }

    .dpv-hero-main {
        max-width: 820px;
    }

    .dpv-wrap h1 {
        font-size: 39px;
    }

    .dpv-subtitle {
        max-width: 650px;
    }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 600px) {

    .dpv-wrap {
        width: calc(100% - 20px);

        margin-top: 18px;

        padding: 18px 4px 25px;
    }

    .dpv-eyebrow {
        margin-bottom: 9px;

        padding: 6px 11px;

        font-size: 12px;
    }

    .dpv-wrap h1 {
        margin-bottom: 10px;

        font-size: 31px;
        line-height: 1.1;
        letter-spacing: -0.8px;
    }

    .dpv-subtitle {
        margin-bottom: 17px;

        padding: 0 5px;

        font-size: 14px;
        line-height: 1.48;
    }

    .dpv-form {
        flex-direction: column;
        gap: 9px;
    }

    .dpv-form input {
        height: 52px;

        padding-left: 47px;

        font-size: 15px;
    }

    .dpv-form button {
        width: 100%;

        height: 52px;

        min-width: 0;
    }

    #dpv-message,
    .dpv-message {
        margin-top: 10px;
    }

    #dpv-result,
    .dpv-result {
        margin-top: 14px;
    }

    /*
    ---------------------------------------------------------
    Mobile Result
    ---------------------------------------------------------
    */

    .dpv-result-card {
        grid-template-columns: 1fr;

        gap: 13px;

        width: min(100%, 390px);

        padding: 12px;

        border-radius: 14px;

        text-align: center;
    }

    .dpv-preview-wrap {
        width: 100%;
        height: 210px;

        border-radius: 11px;
    }

    .dpv-result-content {
        align-items: center;

        padding: 0 4px 4px;
    }

    .dpv-result-title {
        font-size: 18px !important;
    }

    .dpv-result-meta {
        margin-bottom: 8px;
    }

    .dpv-status {
        min-height: 18px;

        margin-bottom: 7px;

        text-align: center;
    }

    .dpv-progress {
        max-width: 100%;
    }

    .dpv-download-btn,
    .dpv-download-link {
        width: 100%;
        min-width: 0;
    }

    /*
    ---------------------------------------------------------
    Trust
    ---------------------------------------------------------
    */

    .dpv-trust-row {
        grid-template-columns: 1fr;

        gap: 2px;

        max-width: 360px;

        margin-top: 16px;
    }

    .dpv-trust-item {
        justify-content: flex-start;

        padding: 7px 10px;
    }
}


/* =========================================================
   Very Small Mobile
========================================================= */

@media (max-width: 380px) {

    .dpv-wrap h1 {
        font-size: 28px;
    }

    .dpv-preview-wrap {
        height: 190px;
    }
}

/* =========================================================
   Professional Result Actions
========================================================= */

.dpv-download-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    width: 100%;
    max-width: 610px;

    margin-top: 4px;
}

.dpv-download-actions .dpv-download-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;

    padding: 0 16px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

/* Primary action */

.dpv-video-download-btn {
    background: #E60023;
    color: #FFFFFF !important;
}

/* Secondary action */

.dpv-cover-download-btn {
    background: #FFFFFF;
    color: #E60023 !important;

    border: 1px solid #E60023;

    box-shadow: none;
}

.dpv-cover-download-btn:hover {
    background: #FFF4F6;
    color: #C9001F !important;

    border-color: #C9001F;
}

/* MP3 action */

.dpv-mp3-download-btn {
    background: #1F2937;
    color: #FFFFFF !important;

    box-shadow:
        0 5px 14px rgba(31, 41, 55, 0.12);
}

.dpv-mp3-download-btn:hover {
    background: #111827;
}

/* Disabled */

.dpv-download-actions .dpv-download-btn:disabled {
    opacity: 0.55;
    transform: none;
}

/* Tablet */

@media (max-width: 760px) {

    .dpv-download-actions {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .dpv-download-actions {
        width: 100%;
        max-width: none;
        gap: 9px;
    }

    .dpv-download-actions .dpv-download-btn {
        min-height: 48px;
    }
}