* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #090909;
    color: #ffffff;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: #0d0d0d;
    border-bottom: 1px solid #1e1e1e;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background: #e50914;

    font-size: 13px;
    font-weight: 900;
}

.language-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
}

.language-label {
    color: #888;
    font-size: 13px;
}

.language-wrapper select {
    background: #151515;
    border: 1px solid #292929;
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    outline: none;
    cursor: pointer;
}


/* HERO */

.hero {
    padding: 90px 0 80px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(229, 9, 20, .15),
            transparent 45%
        );
}

.hero-content {
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;

    padding: 7px 12px;

    border-radius: 999px;

    background: rgba(229, 9, 20, .12);
    border: 1px solid rgba(229, 9, 20, .25);

    color: #ff3b44;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hero h1 {
    margin: 22px 0 14px;

    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;

    letter-spacing: -1.8px;
}

.hero-subtitle {
    max-width: 680px;
    margin: 0 auto 35px;

    color: #a7a7a7;

    font-size: 17px;
}


/* FORM */

.download-form {
    max-width: 820px;
    margin: auto;
}

.input-wrapper {
    display: flex;

    background: #111;

    border: 1px solid #292929;

    border-radius: 14px;

    padding: 7px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .3);
}

.input-wrapper input {
    min-width: 0;
    flex: 1;

    border: 0;
    outline: 0;

    background: transparent;

    color: #fff;

    padding: 14px 16px;

    font-size: 15px;
}

.input-wrapper input::placeholder {
    color: #666;
}

.input-wrapper button {
    position: relative;

    border: 0;

    border-radius: 10px;

    padding: 0 24px;

    background: #e50914;

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease;
}

.input-wrapper button:hover {
    background: #f6121d;
    transform: translateY(-1px);
}

.input-wrapper button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.button-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;

    border-radius: 50%;

    animation: spin .7s linear infinite;
}

.button-loader.active {
    display: inline-block;
}

.button-loader.active + * {
    display: none;
}

.supported-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;

    margin-top: 12px;

    color: #707070;

    font-size: 12px;
}

.supported-links span {
    color: #999;
}


/* ERROR */

.error-box {
    max-width: 700px;
    margin: 20px auto 0;

    padding: 13px 16px;

    border-radius: 9px;

    background: rgba(229, 9, 20, .1);

    border: 1px solid rgba(229, 9, 20, .3);

    color: #ff737a;

    font-size: 14px;
}


/* RESULTS */

.result-section {
    padding: 0 0 80px;
}

.result-card {
    background: #111;

    border: 1px solid #222;

    border-radius: 18px;

    overflow: hidden;
}

.video-info {
    padding: 28px;

    border-bottom: 1px solid #222;
}

#videoTitle {
    margin: 0 0 12px;

    font-size: 23px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    color: #777;

    font-size: 13px;
}

.video-meta strong {
    color: #aaa;
}

.qualities-header {
    padding: 22px 28px 8px;
}

.qualities-header h3 {
    margin: 0;

    font-size: 17px;
}

.qualities-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    padding: 20px 28px 28px;
}

.quality-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px;

    background: #171717;

    border: 1px solid #252525;

    border-radius: 12px;

    transition:
        border-color .15s ease,
        transform .15s ease;
}

.quality-card:hover {
    border-color: #444;
    transform: translateY(-2px);
}

.quality-resolution {
    font-size: 21px;
    font-weight: 800;
}

.quality-description {
    margin-top: 2px;

    color: #777;

    font-size: 12px;

    font-weight: 400;
}

.quality-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.best-badge {
    white-space: nowrap;

    padding: 5px 8px;

    border-radius: 5px;

    background: rgba(229, 9, 20, .12);

    color: #ff4c54;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}

.download-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 0 15px;

    border-radius: 8px;

    background: #e50914;

    color: #fff;

    font-size: 13px;

    font-weight: 700;

    transition:
        background .15s ease,
        transform .15s ease;
}

.download-button:hover {
    background: #f6121d;
    transform: translateY(-1px);
}


/* HOW IT WORKS */

.how-section {
    padding: 80px 0;

    background: #0d0d0d;

    border-top: 1px solid #1b1b1b;
}

.how-section h2 {
    margin: 0 0 40px;

    text-align: center;

    font-size: 30px;
}

.steps {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.step {
    display: flex;

    gap: 15px;

    padding: 24px;

    background: #111;

    border: 1px solid #202020;

    border-radius: 14px;
}

.step-number {
    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #e50914;

    font-weight: 800;
}

.step h3 {
    margin: 0 0 7px;

    font-size: 16px;
}

.step p {
    margin: 0;

    color: #777;

    font-size: 13px;
}


/* FOOTER */

.site-footer {
    padding: 30px 0;

    background: #090909;

    border-top: 1px solid #1c1c1c;

    color: #666;

    font-size: 12px;
}

.footer-main {
    display: flex;

    flex-wrap: wrap;

    justify-content: space-between;

    gap: 15px;
}

.footer-main strong {
    color: #aaa;
}

.footer-links {
    display: flex;

    gap: 20px;

    margin-top: 15px;
}

.footer-links a:hover {
    color: #fff;
}


/* ANIMATION */

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* TABLET */

@media (max-width: 768px) {

    .hero {
        padding: 65px 0 60px;
    }

    .qualities-list {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .container {
        width: min(
            100% - 22px,
            1120px
        );
    }

    .header-inner {
        min-height: 62px;
    }

    .language-label {
        display: none;
    }

    .logo {
        font-size: 16px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding: 52px 0 45px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .input-wrapper {
        flex-direction: column;

        padding: 6px;
    }

    .input-wrapper input {
        width: 100%;

        min-height: 50px;
    }

    .input-wrapper button {
        width: 100%;

        min-height: 50px;
    }

    .supported-links {
        line-height: 1.7;
    }

    .video-info {
        padding: 20px;
    }

    .qualities-header {
        padding: 20px 20px 8px;
    }

    .qualities-list {
        padding: 15px 20px 20px;
    }

    .quality-card {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .quality-action {
        width: 100%;

        justify-content: space-between;
    }

    .download-button {
        flex: 1;
    }

    .how-section {
        padding: 60px 0;
    }

    .how-section h2 {
        font-size: 25px;
    }

    .footer-main {
        flex-direction: column;
    }

}