:root {
    --bg: #0b0c10;
    --surface: #11131a;
    --surface-light: #171923;

    --text: #f5f5f7;
    --muted: #9094a3;

    --accent: #8065ff;
    --accent-2: #a58fff;

    --green: #25d366;
    --red: #ff6464;

    --shadow-dark:
        10px 10px 25px rgba(0,0,0,.55);

    --shadow-light:
        -8px -8px 22px rgba(255,255,255,.025);

    --border:
        rgba(255,255,255,.055);

    --radius: 20px;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(128,101,255,.17),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}


a {
    color: inherit;
}


/* HEADER */

.site-header {
    width: min(1080px, 92%);

    margin: auto;

    padding: 24px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
    z-index: 20;
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -.5px;
}


.brand-mark {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);

    color: var(--accent);
}


.accent {
    color: var(--accent-2);
}


/* MENU */

.menu-button {
    width: 46px;
    height: 46px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);

    display: flex;
    flex-direction: column;

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

    gap: 5px;

    cursor: pointer;

    transition:
        transform .2s ease;
}


.menu-button:hover {
    transform: translateY(-2px);
}


.menu-button span {
    width: 18px;
    height: 2px;

    background: #ddd;

    border-radius: 2px;
}


.menu-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.55);

    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition: .3s;

    z-index: 50;
}


.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}


.side-menu {
    position: fixed;

    right: 18px;
    top: 18px;

    width: min(330px, calc(100% - 36px));

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        rgba(17,19,26,.96);

    box-shadow:
        15px 20px 60px rgba(0,0,0,.55),
        -5px -5px 20px rgba(255,255,255,.02);

    transform:
        translateX(120%);

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1);

    z-index: 60;
}


.side-menu.show {
    transform: translateX(0);
}


.menu-head {
    display: flex;

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

    padding: 5px 5px 18px;

    border-bottom:
        1px solid var(--border);
}


.menu-head strong {
    font-size: 17px;
}


.menu-head button {
    width: 34px;
    height: 34px;

    border: 0;

    border-radius: 10px;

    background: var(--surface-light);

    color: #aaa;

    font-size: 22px;

    cursor: pointer;
}


.side-menu nav {
    display: grid;

    gap: 8px;

    padding-top: 14px;
}


.side-menu nav a {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px;

    border-radius: 12px;

    text-decoration: none;

    color: var(--muted);

    transition: .2s;
}


.side-menu nav a:hover,
.side-menu nav a.active {
    color: white;

    background:
        rgba(128,101,255,.12);

    box-shadow:
        inset 3px 0 0 var(--accent);
}


/* HERO */

.hero {
    width: min(850px, 92%);

    margin: auto;

    text-align: center;

    padding:
        80px 0
        50px;

    animation:
        fadeUp .7s ease both;
}


.status-pill {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 7px 13px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);

    color: #a5a8b5;

    font-size: 12px;

    margin-bottom: 25px;
}


.pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px rgba(37,211,102,.08),
        0 0 12px rgba(37,211,102,.7);

    animation:
        pulse 2s infinite;
}


.hero h1 {
    font-size:
        clamp(40px, 8vw, 72px);

    line-height: 1.02;

    letter-spacing: -4px;

    font-weight: 850;

    margin-bottom: 22px;
}


.gradient {
    background:
        linear-gradient(
            90deg,
            #fff,
            var(--accent-2)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.hero-text {
    max-width: 610px;

    margin: auto;

    color: var(--muted);

    font-size: 16px;
}


/* RESOLVER */

.resolver {
    display: flex;

    gap: 10px;

    margin: 35px auto 0;

    padding: 8px;

    max-width: 760px;

    border:
        1px solid var(--border);

    border-radius: 17px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);
}


.input-wrap {
    display: flex;

    align-items: center;

    flex: 1;

    min-width: 0;
}


.input-icon {
    padding: 0 12px;

    opacity: .5;
}


#urlInput {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: white;

    font-size: 15px;

    padding: 13px 5px;
}


#urlInput::placeholder {
    color: #626673;
}


.primary-btn {
    border: 0;

    border-radius: 12px;

    background: var(--accent);

    color: white;

    padding:
        0 24px;

    min-height: 47px;

    font-weight: 750;

    cursor: pointer;

    transition:
        transform .2s,
        box-shadow .2s;
}


.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(128,101,255,.2);
}


.primary-btn:disabled {
    opacity: .6;

    cursor: wait;
}


.input-hint {
    color: #626673;

    font-size: 12px;

    margin-top: 12px;
}


/* STATUS */

.status-box {
    display: none;

    width: min(760px, 92%);

    margin: 0 auto 20px;

    padding: 13px 16px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: var(--surface);

    color: #aaa;

    text-align: center;

    font-size: 13px;
}


.status-box.error {
    color: var(--red);
}


/* RESULT */

.result-card {
    display: none;

    width: min(850px, 92%);

    margin: 20px auto 0;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);

    animation:
        fadeUp .5s ease both;
}


.video-container {
    background: #000;
}


.video-container video {
    width: 100%;

    max-height: 520px;

    display: block;
}


.result-info {
    padding: 22px;
}


.file-row {
    display: flex;

    align-items: center;

    gap: 15px;
}


.thumbnail {
    width: 105px;
    height: 72px;

    object-fit: cover;

    border-radius: 11px;

    background: #202127;

    flex-shrink: 0;
}


.file-details h2 {
    font-size: 17px;

    line-height: 1.3;

    word-break: break-word;
}


.file-details p {
    color: var(--muted);

    font-size: 12px;

    margin-top: 5px;
}


.result-actions {
    display: flex;

    gap: 10px;

    margin-top: 20px;

    flex-wrap: wrap;
}


.action-btn {
    border: 0;

    padding: 12px 18px;

    border-radius: 11px;

    font-weight: 700;

    font-size: 13px;

    text-decoration: none;

    cursor: pointer;
}


.download-btn {
    background: var(--green);

    color: white;
}


.stream-btn {
    background: #272932;

    color: white;
}


/* SECTIONS */

.feature-section,
.info-section {
    width: min(950px, 92%);

    margin:
        110px auto 0;
}


.section-heading {
    margin-bottom: 28px;
}


.section-heading span,
.eyebrow {
    color: var(--accent-2);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.section-heading h2,
.info-section h2 {
    font-size: 30px;

    letter-spacing: -1.5px;

    margin-top: 5px;
}


.section-heading p,
.info-section p {
    color: var(--muted);

    font-size: 14px;

    max-width: 600px;
}


.feature-grid {
    display: grid;

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

    gap: 15px;
}


.feature-card {
    position: relative;

    padding: 25px;

    min-height: 230px;

    border:
        1px solid var(--border);

    border-radius: 19px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);

    transition:
        transform .25s ease;
}


.feature-card:hover {
    transform:
        translateY(-5px);
}


.feature-number {
    color: #555967;

    font-size: 12px;

    font-weight: 800;
}


.feature-icon {
    margin-top: 25px;

    font-size: 24px;
}


.feature-card h3 {
    margin-top: 14px;

    font-size: 17px;
}


.feature-card p {
    margin-top: 6px;

    color: var(--muted);

    font-size: 13px;
}


/* INFO */

.info-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    padding: 35px;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);
}


.info-section p {
    align-self: center;

    line-height: 1.9;
}


/* FOOTER */

.footer {
    width: min(1080px, 92%);

    margin:
        100px auto 25px;

    padding-top: 22px;

    border-top:
        1px solid var(--border);

    display: flex;

    justify-content: space-between;

    color: #626673;

    font-size: 12px;
}


.footer div {
    display: flex;

    gap: 15px;
}


.footer-links a {
    text-decoration: none;

    color: #727682;
}


.footer-links a:hover {
    color: white;
}


/* GENERIC PAGE */

.page {
    width: min(850px, 92%);

    margin:
        60px auto 100px;
}


.page-header {
    margin-bottom: 35px;
}


.page-header h1 {
    font-size:
        clamp(35px, 7vw, 55px);

    letter-spacing: -3px;

    line-height: 1.05;
}


.page-header p {
    color: var(--muted);

    margin-top: 12px;
}


.page-card {
    padding: 28px;

    border:
        1px solid var(--border);

    border-radius: 19px;

    background: var(--surface);

    box-shadow:
        var(--shadow-dark),
        var(--shadow-light);

    margin-bottom: 14px;
}


.page-card h2 {
    font-size: 20px;

    margin-bottom: 9px;
}


.page-card p {
    color: var(--muted);

    font-size: 14px;

    margin-bottom: 12px;
}


.page-card ul {
    padding-left: 20px;

    color: var(--muted);

    font-size: 14px;
}


details {
    border:
        1px solid var(--border);

    border-radius: 13px;

    background: var(--surface);

    margin-bottom: 10px;

    overflow: hidden;

    box-shadow:
        var(--shadow-dark);
}


summary {
    padding: 17px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 700;

    list-style: none;
}


summary::-webkit-details-marker {
    display: none;
}


summary::after {
    content: "+";

    float: right;

    color: #777;

    font-size: 18px;
}


details[open] summary::after {
    content: "−";
}


details p {
    padding:
        0 17px 17px;

    color: var(--muted);

    font-size: 13px;
}


/* ANIMATIONS */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes pulse {

    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .site-header {
        padding: 18px 0;
    }


    .hero {
        padding-top: 55px;
    }


    .hero h1 {
        letter-spacing: -2.5px;
    }


    .hero-text {
        font-size: 14px;
    }


    .resolver {
        flex-direction: column;
    }


    .primary-btn {
        width: 100%;
    }


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


    .info-section {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 23px;
    }


    .footer {
        flex-direction: column;

        text-align: center;

        align-items: center;
    }


    .file-row {
        align-items: flex-start;
    }


    .thumbnail {
        width: 85px;
        height: 62px;
    }


    .result-actions {
        flex-direction: column;
    }


    .action-btn {
        width: 100%;

        text-align: center;
    }
}