:root {
    --bg: #030914;
    --panel: rgba(5, 15, 29, .88);
    --panel-soft: rgba(7, 19, 36, .72);

    --cyan: #3bdcff;
    --cyan-soft: rgba(59, 220, 255, .22);

    --orange: #ff8618;
    --orange-light: #ffb34b;
    --orange-soft: rgba(255, 134, 24, .20);

    --white: #f5f9ff;
    --muted: #8fa5bf;

    --border: rgba(70, 190, 255, .30);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--white);

    background:
        linear-gradient(
            rgba(2, 8, 18, .48),
            rgba(2, 8, 18, .78)
        ),
        url("/design/video/assets/img/bg-video.webp")
        center center / cover fixed no-repeat;
}


/* затемнение краёв */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 50% 25%,
            transparent 0,
            rgba(0, 5, 13, .12) 45%,
            rgba(0, 4, 11, .72) 100%
        );
}


/* лёгкое HUD-свечение */

.aurora {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 18% 25%,
            rgba(0, 153, 255, .12),
            transparent 28%
        ),
        radial-gradient(
            circle at 80% 75%,
            rgba(255, 100, 0, .10),
            transparent 30%
        );
}


.studio {
    position: relative;
    z-index: 1;

    width: min(1580px, calc(100% - 40px));
    margin: 0 auto;
    padding: 55px 0 30px;
}


/* HERO */

.hero {
    position: relative;

    padding:
        40px
        clamp(24px, 4vw, 64px)
        38px;

    margin-bottom: 18px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 26px 26px 8px 8px;

    background:
        linear-gradient(
            110deg,
            rgba(3, 12, 25, .94),
            rgba(5, 17, 31, .72) 55%,
            rgba(8, 13, 23, .36)
        );

    box-shadow:
        0 24px 80px rgba(0, 0, 0, .45),
        inset 0 1px rgba(255,255,255,.04);
}


.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 220px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--orange),
            transparent
        );

    box-shadow:
        0 0 18px var(--orange);
}


.hero__eyebrow {
    color: var(--cyan);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;

    margin-bottom: 14px;
}


.hero h1 {
    margin: 0;

    font-size:
        clamp(36px, 5vw, 72px);

    line-height: .98;
    letter-spacing: -.04em;
}


.hero h1 span {
    color: var(--orange-light);

    text-shadow:
        0 0 28px rgba(255, 126, 20, .28);
}


.hero h2 {
    margin: 12px 0 0;

    color: #d7e9ff;

    font-size:
        clamp(22px, 2.4vw, 36px);

    font-weight: 500;
}


.hero p {
    max-width: 760px;

    margin:
        22px 0 0;

    color: #b9c9dc;

    font-size: 16px;
    line-height: 1.7;
}


/* WORKSPACE */

.workspace {
    display: grid;

    grid-template-columns:
        minmax(280px, .95fr)
        minmax(330px, 1.08fr)
        minmax(300px, .97fr);

    gap: 14px;
}


.hud-panel {
    position: relative;

    min-width: 0;

    padding: 22px;

    border:
        1px solid var(--border);

    background:
        linear-gradient(
            155deg,
            rgba(6, 18, 34, .94),
            rgba(3, 11, 23, .88)
        );

    backdrop-filter:
        blur(18px);

    box-shadow:
        0 20px 50px rgba(0,0,0,.34),
        inset 0 1px rgba(255,255,255,.035);

    overflow: hidden;
}


.hud-panel:first-child {
    border-radius:
        8px 8px 8px 26px;
}


.hud-panel:last-child {
    border-radius:
        8px 8px 26px 8px;
}


.hud-panel::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0;

    width: 90px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            transparent
        );

    box-shadow:
        0 0 15px var(--cyan);
}


.hud-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 20px;
}


.hud-number {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    flex: 0 0 auto;

    border:
        1px solid rgba(62, 217, 255, .40);

    border-radius: 10px;

    color: var(--cyan);

    font-size: 12px;
    font-weight: 900;

    background:
        rgba(26, 149, 195, .10);
}


.hud-title div {
    display: flex;
    flex-direction: column;
}


.hud-title small {
    color: var(--muted);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .20em;
}


.hud-title strong {
    margin-top: 2px;

    color: var(--cyan);

    font-size: 18px;
}


/* DROP ZONE */

.drop-zone {
    min-height: 290px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 25px;

    text-align: center;
    cursor: pointer;

    border:
        1px dashed rgba(87, 206, 255, .60);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 32, 54, .50),
            rgba(5, 13, 26, .48)
        );

    transition:
        border-color .2s ease,
        transform .2s ease,
        background .2s ease;
}


.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--orange);

    background:
        rgba(255, 125, 20, .08);

    transform:
        translateY(-2px);
}


.upload-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    border:
        2px solid var(--cyan);

    border-radius: 50%;

    color: var(--cyan);

    font-size: 38px;

    box-shadow:
        0 0 28px
        rgba(53, 215, 255, .15);
}


.drop-zone strong {
    font-size: 17px;
}


.drop-zone > span {
    margin-top: 5px;

    color: var(--muted);
}


.drop-zone small {
    margin-top: 18px;

    color: #70869f;
}

.drop-zone .batch-hint {
    margin-top: 8px;
    color: #9fdcff;
    font-size: 12px;
    line-height: 1.35;
}


.limit {
    margin-top: 14px;

    padding:
        7px 12px;

    border-radius: 20px;

    color: #ffc173;

    background:
        rgba(255, 133, 24, .08);

    font-size: 12px;
}


/* SELECTED FILE */

.selected-file {
    display: none;

    align-items: center;
    gap: 12px;

    margin-top: 14px;
    padding: 13px;

    border:
        1px solid rgba(74, 196, 255, .24);

    border-radius: 12px;

    background:
        rgba(3, 11, 23, .68);
}


.selected-file.visible {
    display: flex;
}


.file-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 10px;

    color: var(--orange);

    background:
        rgba(255, 130, 20, .10);
}


.file-data {
    display: flex;
    flex-direction: column;

    min-width: 0;
    flex: 1;
}


.file-data strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.file-data span {
    margin-top: 3px;

    color: var(--muted);
    font-size: 12px;
}


.remove-file {
    border: 0;
    background: none;

    color: #8398af;

    cursor: pointer;

    font-size: 26px;
}


/* SETTINGS */

.setting-group {
    margin-bottom: 24px;
}


.setting-label {
    margin-bottom: 10px;

    color: #b7c8da;

    font-size: 13px;
    font-weight: 700;
}


.format-card {
    padding: 16px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 12px;

    display: flex;
    flex-direction: column;

    background:
        rgba(3, 10, 20, .45);
}


.format-card.active {
    border-color: var(--orange);

    background:
        linear-gradient(
            135deg,
            rgba(255, 128, 20, .16),
            rgba(255, 128, 20, .04)
        );

    box-shadow:
        0 0 22px
        rgba(255, 126, 20, .12);
}


.format-card strong {
    color: #ffd29b;

    font-size: 17px;
}


.format-card span {
    margin-top: 3px;

    color: #dceaff;
}


.format-card small {
    margin-top: 7px;

    color: var(--muted);
}


.quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 9px;
}


.quality-card {
    min-height: 90px;

    padding: 12px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 11px;

    color: #dbe9f8;

    text-align: left;

    background:
        rgba(5, 14, 27, .68);
}


.quality-card strong,
.quality-card span {
    display: block;
}


.quality-card span {
    margin-top: 6px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.4;
}


.quality-card.active {
    border-color:
        rgba(255, 137, 28, .70);

    box-shadow:
        inset 0 0 22px
        rgba(255, 128, 20, .08);
}


.quality-card:disabled {
    opacity: .42;
}


.tech-line {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    color: var(--muted);

    font-size: 13px;
}


.tech-line strong {
    color: #d9e8f7;

    text-align: right;
}


/* CALCULATOR */

.calc-block {
    padding: 4px 2px;
}


.calc-row {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(255,255,255,.07);

    color: var(--muted);

    font-size: 13px;
}


.calc-row strong {
    color: #edf7ff;

    text-align: right;
}


.estimate {
    margin: 16px 0;

    padding: 19px;

    border:
        1px solid rgba(63, 212, 255, .24);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 48, 70, .35),
            rgba(5, 17, 30, .25)
        );
}


.estimate small,
.estimate strong,
.estimate span {
    display: block;
}


.estimate small {
    color: var(--muted);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .18em;
}


.estimate strong {
    margin-top: 8px;

    color: #64ffb2;

    font-size:
        clamp(24px, 2.2vw, 34px);

    text-shadow:
        0 0 22px
        rgba(56, 255, 164, .18);
}


.estimate span {
    margin-top: 5px;

    color: #7890a8;

    font-size: 11px;
}


.price-row strong {
    color: var(--orange-light);

    font-size: 20px;
}


.notice {
    margin-top: 16px;

    padding: 13px;

    border-left:
        2px solid var(--cyan);

    color: #7f96ad;

    background:
        rgba(33, 167, 217, .05);

    font-size: 11px;
    line-height: 1.55;
}


/* BUTTON */

.process-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin-top: 20px;

    padding: 17px 20px;

    border: 1px solid #ffbd6d;
    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            100deg,
            #ff7417,
            #ff9b22
        );

    box-shadow:
        0 0 28px
        rgba(255, 120, 20, .25);

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;
}


.process-button b {
    margin-left: auto;

    font-size: 20px;
}


.process-button:disabled {
    cursor: not-allowed;

    opacity: .32;

    filter: grayscale(.45);

    box-shadow: none;
}


/* FOOTER */

.studio-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    padding: 24px;

    color: #5f748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .20em;
}


.studio-footer i {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 10px var(--orange);
}


/* TABLET */

@media (max-width: 1100px) {

    .workspace {
        grid-template-columns: 1fr 1fr;
    }

    .calculation-panel {
        grid-column: 1 / -1;
    }

}


/* MOBILE */

@media (max-width: 720px) {

    body {
        background-attachment: scroll;
    }

    .studio {
        width:
            min(100% - 18px, 1580px);

        padding-top: 14px;
    }

    .hero {
        padding:
            27px 20px;

        border-radius:
            18px 18px 7px 7px;
    }

    .hero p {
        font-size: 14px;
    }

    .workspace {
        grid-template-columns: 1fr;
    }

    .calculation-panel {
        grid-column: auto;
    }

    .hud-panel,
    .hud-panel:first-child,
    .hud-panel:last-child {
        border-radius: 10px;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }

    .drop-zone {
        min-height: 250px;
    }

    .studio-footer {
        flex-wrap: wrap;
        text-align: center;
    }

}

/* BACK TO DESIGN STUDIO */

.back-to-studio {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
    padding: 10px 16px;

    border: 1px solid rgba(59, 220, 255, .30);
    border-radius: 10px;

    color: #a9c8dd;
    background: rgba(3, 12, 25, .78);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;

    text-decoration: none;

    backdrop-filter: blur(14px);

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.back-to-studio span {
    color: var(--cyan);
    font-size: 18px;
    line-height: 1;
}

.back-to-studio:hover {
    color: #fff;

    border-color: var(--orange);

    background: rgba(255, 134, 24, .10);

    transform: translateX(-3px);
}

.back-to-studio:hover span {
    color: var(--orange-light);
}

/* =========================================================
   DESIGN STUDIO HERO
   ========================================================= */

.hero {
    min-height: 270px;

    display: grid;
    grid-template-columns: 230px 1fr 220px;
    align-items: center;
    gap: 32px;

    padding: 28px 42px;

    background:
        linear-gradient(
            90deg,
            rgba(2, 9, 20, .92) 0%,
            rgba(3, 13, 27, .74) 46%,
            rgba(2, 8, 18, .52) 100%
        );

    overflow: hidden;
}


/* LOGO */

.hero-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 112, 15, .18),
            transparent 68%
        );

    filter: blur(10px);

    pointer-events: none;
}

.hero-logo img {
    position: relative;
    z-index: 1;

    display: block;

    width: 210px;
    max-width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 18px
            rgba(255, 104, 12, .30)
        );
}


/* HERO TEXT */

.hero-content {
    min-width: 0;
}

.hero-content .hero__eyebrow {
    margin-bottom: 12px;
}

.hero-content h1 {
    margin: 0;

    font-size:
        clamp(38px, 4.4vw, 68px);

    line-height: 1;

    color: #f4f8ff;

    letter-spacing: -.035em;

    text-shadow:
        0 3px 22px
        rgba(0, 0, 0, .55);
}

.hero-content p {
    max-width: 670px;

    margin: 20px 0 0;

    color: #c0cede;

    font-size: 16px;
    line-height: 1.65;
}


/* RIGHT MARK */

.hero-mark {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 6px;

    color: #8ea6c2;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: .42em;

    text-align: center;

    opacity: .9;
}

.hero-mark::before {
    content: "";

    width: 70px;
    height: 1px;

    margin-bottom: 8px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--orange),
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(255, 134, 24, .55);
}


/* HERO TABLET */

@media (max-width: 1000px) {

    .hero {
        grid-template-columns: 160px 1fr;

        min-height: 230px;

        padding: 26px;
    }

    .hero-logo img {
        width: 150px;
    }

    .hero-mark {
        display: none;
    }

}


/* HERO MOBILE */

@media (max-width: 650px) {

    .hero {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 22px;

        text-align: center;
    }

    .hero-logo img {
        width: 145px;
    }

    .hero-content .hero__eyebrow {
        margin-top: 4px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        margin-top: 14px;

        font-size: 14px;
    }

}

/* =========================================================
   VIDEO PROCESSING SETTINGS V2
   ========================================================= */

.codec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.codec-card {
    position: relative;

    min-height: 76px;
    padding: 12px 8px;

    border: 1px solid rgba(87, 142, 190, .30);
    border-radius: 10px;

    color: #dbe9f8;
    background: rgba(4, 13, 26, .72);

    cursor: pointer;
}

.codec-card strong,
.codec-card span,
.codec-card small {
    display: block;
}

.codec-card strong {
    font-size: 15px;
}

.codec-card span {
    margin-top: 3px;

    color: #8fa5bf;
    font-size: 11px;
}

.codec-card.active {
    border-color: var(--orange);

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(255, 142, 34, .25),
            rgba(255, 118, 15, .08) 70%
        );

    box-shadow:
        0 0 20px rgba(255, 126, 20, .18),
        inset 0 0 20px rgba(255, 126, 20, .06);
}

.codec-card.active strong {
    color: #ffd391;
}

.codec-card.locked,
.quality-option.locked {
    opacity: .42;
    cursor: not-allowed;
}

.codec-card small,
.quality-option small {
    margin-top: 5px;

    color: #5f7690;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .12em;
}


/* QUALITY */

.quality-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quality-option {
    position: relative;

    min-height: 88px;

    padding: 12px 9px;

    border: 1px solid rgba(87, 142, 190, .28);
    border-radius: 10px;

    color: #dbe8f6;

    background: rgba(4, 13, 26, .70);

    text-align: left;

    cursor: pointer;
}

.quality-option strong,
.quality-option span {
    display: block;
}

.quality-option strong {
    font-size: 12px;
    line-height: 1.3;
}

.quality-option span {
    margin-top: 5px;

    color: #7e95ae;

    font-size: 9px;
}

.quality-option.active {
    border-color: var(--orange);

    background:
        linear-gradient(
            145deg,
            rgba(255, 131, 22, .17),
            rgba(5, 15, 28, .72)
        );

    box-shadow:
        0 0 18px rgba(255, 125, 18, .13);
}

.quality-option.active strong {
    color: #ffd294;
}


/* RESOLUTION */

.select-shell {
    position: relative;
}

.select-shell::after {
    content: "⌄";

    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-58%);

    color: var(--cyan);

    pointer-events: none;
}

.video-select {
    width: 100%;

    padding: 13px 42px 13px 13px;

    border: 1px solid rgba(75, 146, 201, .34);
    border-radius: 9px;

    outline: none;

    appearance: none;

    color: #dceafb;

    background: rgba(3, 12, 24, .86);

    font: inherit;
    font-size: 12px;
}


/* SWITCH OPTIONS */

.video-options {
    margin-top: 4px;

    border-top: 1px solid rgba(255,255,255,.06);
}

.video-option {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 62px;

    padding: 10px 0;

    border-bottom: 1px solid rgba(255,255,255,.06);
}

.video-option-text {
    min-width: 0;
    flex: 1;
}

.video-option-text strong,
.video-option-text span {
    display: block;
}

.video-option-text strong {
    color: #d8e6f5;

    font-size: 12px;
}

.video-option-text span {
    margin-top: 3px;

    color: #667d96;

    font-size: 9px;
}

.disabled-option {
    opacity: .52;
}

.beta-tag {
    padding: 3px 6px;

    border: 1px solid rgba(255, 139, 27, .35);
    border-radius: 5px;

    color: var(--orange-light);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
}


/* SWITCH */

.switch {
    position: relative;

    width: 42px;
    height: 23px;

    flex: 0 0 42px;
}

.switch input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
}

.switch-slider {
    position: absolute;
    inset: 0;

    border: 1px solid rgba(91, 150, 202, .35);
    border-radius: 999px;

    background: #132a46;

    transition: .2s ease;

    cursor: pointer;
}

.switch-slider::before {
    content: "";

    position: absolute;

    width: 15px;
    height: 15px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #78cfff;

    box-shadow:
        0 0 8px rgba(76, 202, 255, .25);

    transition: .2s ease;
}

.switch input:checked + .switch-slider {
    border-color: var(--cyan);

    background: #0bb9e7;

    box-shadow:
        0 0 14px rgba(31, 210, 255, .18);
}

.switch input:checked + .switch-slider::before {
    transform: translateX(19px);

    background: #fff;
}


/* PROCESSING SUMMARY */

.processing-summary {
    margin-top: 16px;

    border: 1px solid rgba(57, 196, 242, .14);
    border-radius: 10px;

    overflow: hidden;

    background: rgba(3, 12, 23, .45);
}

.processing-summary > div {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    padding: 10px 12px;

    border-bottom: 1px solid rgba(255,255,255,.05);
}

.processing-summary > div:last-child {
    border-bottom: 0;
}

.processing-summary span {
    color: #7188a1;

    font-size: 10px;
}

.processing-summary strong {
    color: #dceafa;

    font-size: 10px;

    text-align: right;
}


/* SETTINGS RESPONSIVE */

@media (max-width: 520px) {

    .codec-grid,
    .quality-options {
        grid-template-columns: 1fr;
    }

    .codec-card,
    .quality-option {
        min-height: 65px;
    }

}

/* =========================================================
   VIDEO RESULT / CALCULATION V2
   ========================================================= */

.video-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;

    margin-bottom: 14px;
}

.preview-card {
    min-width: 0;
}

.preview-label {
    display: block;

    margin-bottom: 7px;

    color: #7189a4;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .15em;
}

.preview-screen {
    position: relative;

    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(61, 196, 243, .25);
    border-radius: 10px;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(33, 117, 158, .16),
            transparent 55%
        ),
        rgba(3, 12, 24, .86);
}

.result-screen {
    border-color: rgba(255, 136, 27, .28);

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 127, 19, .12),
            transparent 55%
        ),
        rgba(3, 12, 24, .86);
}

.preview-screen > span {
    position: absolute;

    right: 8px;
    bottom: 6px;

    color: #58728d;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .12em;
}

.preview-play {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding-left: 3px;

    border: 1px solid var(--cyan);
    border-radius: 50%;

    color: var(--cyan);

    background: rgba(5, 21, 37, .82);

    font-size: 13px;

    box-shadow:
        0 0 18px rgba(52, 215, 255, .12);
}

.result-screen .preview-play {
    border-color: var(--orange);
    color: var(--orange-light);

    box-shadow:
        0 0 18px rgba(255, 130, 20, .12);
}

.preview-meta {
    margin-top: 7px;
}

.preview-meta strong,
.preview-meta span {
    display: block;
}

.preview-meta strong {
    overflow: hidden;

    color: #dbe9f8;

    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.preview-meta span {
    margin-top: 2px;

    color: #617992;

    font-size: 8px;
}


/* RESULT ESTIMATE */

.result-estimate {
    padding: 16px;

    border: 1px solid rgba(61, 209, 255, .25);
    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 37, 58, .46),
            rgba(3, 13, 25, .66)
        );
}

.result-estimate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.result-estimate-head small {
    display: block;

    color: #738ba5;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .16em;
}

.result-estimate-head strong {
    display: block;

    margin-top: 5px;

    color: #63ffb2;

    font-size: 26px;

    text-shadow:
        0 0 20px rgba(74, 255, 177, .15);
}

.saving-badge {
    min-width: 58px;

    padding: 7px 9px;

    border: 1px solid rgba(99, 255, 178, .25);
    border-radius: 999px;

    color: #63ffb2;

    background: rgba(61, 255, 167, .07);

    text-align: center;

    font-size: 11px;
    font-weight: 900;
}

.compression-bar {
    height: 4px;

    margin-top: 13px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255,255,255,.07);
}

.compression-bar span {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            #61ffb0
        );

    box-shadow:
        0 0 12px rgba(74, 255, 178, .28);

    transition: width .35s ease;
}

.estimate-caption {
    margin-top: 8px;

    color: #5f7791;

    font-size: 8px;
}


/* SPECS */

.result-specs {
    margin-top: 13px;
}

.result-specs > div {
    display: flex;
    justify-content: space-between;

    gap: 15px;

    padding: 10px 2px;

    border-bottom: 1px solid rgba(255,255,255,.055);
}

.result-specs span {
    color: #7087a0;

    font-size: 10px;
}

.result-specs strong {
    color: #dce9f8;

    font-size: 10px;

    text-align: right;
}


/* COST */

.processing-cost {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-top: 15px;
    padding: 15px;

    border: 1px solid rgba(255, 137, 28, .26);
    border-radius: 11px;

    background:
        linear-gradient(
            120deg,
            rgba(255, 127, 20, .09),
            rgba(5, 15, 28, .45)
        );
}

.processing-cost small,
.processing-cost span {
    display: block;
}

.processing-cost small {
    color: #ffb25d;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .12em;
}

.processing-cost span {
    margin-top: 4px;

    color: #687f98;

    font-size: 8px;
}

.processing-cost > strong {
    flex: 0 0 auto;

    color: var(--orange-light);

    font-size: 23px;

    text-shadow:
        0 0 18px rgba(255, 135, 25, .18);
}


@media (max-width: 1250px) {

    .video-preview-grid {
        grid-template-columns: 1fr;
    }

    .preview-screen {
        min-height: 90px;
    }

}

/* =========================================================
   LIVE VIDEO PROCESSING PROGRESS
   ========================================================= */

.processing-progress {
    position: relative;

    margin-top: 16px;
    padding: 15px;

    overflow: hidden;

    border:
        1px solid rgba(255, 137, 28, .30);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 117, 15, .08),
            rgba(3, 13, 25, .72)
        );

    box-shadow:
        inset 0 0 24px rgba(255, 112, 10, .035);
}


/*
 * HTML-атрибут hidden должен гарантированно
 * скрывать HUD до начала обработки.
 */

.processing-progress[hidden] {
    display: none !important;
}


/* HEADER */

.processing-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.processing-progress-head span {
    color: #ffb25d;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: .12em;
}


.processing-progress-head strong {
    flex: 0 0 auto;

    color: #ffd391;

    font-size: 17px;
    font-weight: 900;

    text-shadow:
        0 0 16px rgba(255, 129, 20, .35);
}


/* TRACK */

.processing-progress-track {
    position: relative;

    width: 100%;
    height: 12px;

    overflow: visible;

    border:
        1px solid rgba(255, 132, 24, .20);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .055);

    box-shadow:
        inset 0 0 8px rgba(0, 0, 0, .55);
}


/* FIRE FILL */

.processing-progress-fill {
    position: relative;

    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #ff5a0a 0%,
            #ff8618 38%,
            #ffb52e 72%,
            #ffe07a 100%
        );

    box-shadow:
        0 0 8px rgba(255, 86, 8, .80),
        0 0 18px rgba(255, 126, 15, .55),
        0 0 28px rgba(255, 166, 34, .28);

    transition:
        width .65s ease;

    animation:
        aurus-fire-pulse 1.35s ease-in-out infinite;
}


/*
 * Светящаяся "голова" огня.
 * Она движется вместе с концом полосы.
 */

.processing-progress-fill::after {
    content: "";

    position: absolute;

    top: 50%;
    right: -5px;

    width: 16px;
    height: 16px;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #fff4c4 0%,
            #ffd35a 22%,
            #ff8a16 52%,
            rgba(255, 76, 0, .20) 72%,
            transparent 75%
        );

    filter:
        blur(.3px);

    box-shadow:
        0 0 9px #ffb22d,
        0 0 18px rgba(255, 112, 10, .85),
        0 0 30px rgba(255, 75, 0, .42);

    animation:
        aurus-fire-head .75s ease-in-out infinite alternate;
}


/*
 * Верхнее пламя.
 */

.processing-progress-fill::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 3px;

    height: 15px;

    pointer-events: none;

    opacity: .75;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 68, 0, .20) 12%,
            rgba(255, 172, 36, .38) 30%,
            rgba(255, 82, 0, .30) 48%,
            rgba(255, 196, 65, .45) 68%,
            rgba(255, 79, 0, .32) 84%,
            transparent 100%
        );

    filter:
        blur(4px);

    transform-origin:
        center bottom;

    animation:
        aurus-fire-wave .95s ease-in-out infinite alternate;
}


/* META */

.processing-progress-meta {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 12px;

    margin-top: 14px;
}


.processing-progress-meta > div {
    min-width: 0;
}


.processing-progress-meta span,
.processing-progress-meta strong {
    display: block;
}


.processing-progress-meta span {
    color: #687f98;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .12em;
}


.processing-progress-meta strong {
    margin-top: 4px;

    color: #dce9f8;

    font-size: 10px;
}


.processing-progress-meta > div:last-child {
    text-align: right;
}


.processing-progress-meta > div:last-child strong {
    color: #ffbf70;
}


/* FIRE ANIMATIONS */

@keyframes aurus-fire-pulse {

    0%,
    100% {
        filter:
            brightness(1)
            saturate(1);
    }

    50% {
        filter:
            brightness(1.18)
            saturate(1.16);
    }
}


@keyframes aurus-fire-head {

    from {
        transform:
            translateY(-50%)
            scale(.88);

        opacity: .82;
    }

    to {
        transform:
            translateY(-50%)
            scale(1.16);

        opacity: 1;
    }
}


@keyframes aurus-fire-wave {

    from {
        transform:
            translateY(1px)
            scaleY(.72);

        opacity: .52;
    }

    to {
        transform:
            translateY(-3px)
            scaleY(1.15);

        opacity: .88;
    }
}


/* MOBILE */

@media (max-width: 520px) {

    .processing-progress {
        padding: 13px;
    }


    .processing-progress-meta {
        grid-template-columns: 1fr;
        gap: 9px;
    }


    .processing-progress-meta > div:last-child {
        text-align: left;
    }


    .processing-progress-track {
        height: 10px;
    }
}


/*
 * Если пользователь отключил анимации
 * в настройках ОС — HUD остаётся рабочим,
 * но без движения огня.
 */

@media (prefers-reduced-motion: reduce) {

    .processing-progress-fill,
    .processing-progress-fill::before,
    .processing-progress-fill::after {
        animation: none;
    }

    .processing-progress-fill {
        transition: none;
    }
}

/* AURUS ecosystem HUD and payment layer */

.video-top-hud {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(59, 220, 255, .30);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(4, 14, 27, .92), rgba(2, 9, 18, .82));
    box-shadow: 0 18px 55px rgba(0, 0, 0, .34), inset 0 0 28px rgba(59, 220, 255, .035);
}

.video-hud-brand,
.video-hud-nav,
.video-hud-tools,
.video-pilot-chip {
    display: flex;
    align-items: center;
    min-width: 0;
}

.video-hud-brand img {
    width: 154px;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 179, 75, .18));
}

.video-hud-nav {
    justify-content: center;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.video-hud-nav::-webkit-scrollbar {
    display: none;
}

.video-hud-tools {
    justify-content: flex-end;
    gap: 9px;
}

.video-hud-nav a,
.video-pilot-chip {
    min-height: 38px;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(59, 220, 255, .24);
    border-radius: 11px;
    background: rgba(3, 16, 31, .78);
    color: #dff7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.video-hud-nav a:hover,
.video-hud-nav a.active,
.video-pilot-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 179, 75, .72);
    box-shadow: 0 0 22px rgba(59, 220, 255, .14);
}

.video-top-hud .home-radio-player {
    min-height: 38px;
    width: 220px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid rgba(59, 220, 255, .24);
    border-radius: 12px;
    background: rgba(3, 16, 31, .78);
}

.video-top-hud .home-radio-mark {
    width: 28px;
    height: 28px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 9px;
    border: 1px solid rgba(59, 220, 255, .26);
    background: rgba(1, 8, 16, .74);
}

.video-top-hud .home-radio-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-top-hud .home-radio-copy {
    min-width: 0;
    display: grid;
    line-height: 1.05;
}

.video-top-hud .home-radio-copy strong {
    color: var(--cyan);
    font-size: 11px;
    white-space: nowrap;
}

.video-top-hud .home-radio-copy span {
    max-width: 100px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-top-hud .home-radio-toggle {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--orange-light));
    color: #04111d;
    font-weight: 950;
    cursor: pointer;
}

.video-pilot-chip {
    max-width: 230px;
    justify-content: flex-start;
}

.video-pilot-chip img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(59, 220, 255, .38);
}

.video-pilot-chip span {
    min-width: 0;
    display: grid;
    line-height: 1.08;
}

.video-pilot-chip b,
.video-pilot-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-pilot-chip small {
    color: var(--muted);
    font-size: 10px;
}

.processing-cost .price-main,
.processing-cost .price-sub {
    display: block;
    text-align: right;
}

.processing-cost .price-main {
    color: var(--orange-light);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 135, 25, .22);
}

.processing-cost .price-sub {
    margin-top: 6px;
    color: #81a0bd;
    font-size: 11px;
    font-weight: 800;
    text-shadow: none;
}

.payment-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.payment-button {
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(59, 220, 255, .24);
    border-radius: 12px;
    background: rgba(3, 16, 31, .78);
    color: #eaf8ff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.payment-button small {
    color: var(--orange-light);
    font-size: 9px;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.payment-button:hover {
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(255, 134, 24, .14);
}

.payment-button.disabled {
    pointer-events: none;
    opacity: .65;
}

.payment-notice {
    margin-top: 10px;
    padding: 12px 14px;
    border-left: 2px solid var(--orange);
    background: rgba(255, 134, 24, .10);
    color: #f8e7cf;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.payment-notice.success {
    border-left-color: var(--cyan);
    background: rgba(35, 215, 255, .10);
    color: #dff8ff;
}

@media (max-width: 1100px) {
    .video-top-hud {
        grid-template-columns: 1fr;
    }

    .video-hud-nav,
    .video-hud-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .video-top-hud {
        padding: 10px;
        border-radius: 14px;
    }

    .video-hud-brand img {
        width: 142px;
    }

    .video-hud-tools,
    .video-top-hud .home-radio-player,
    .video-pilot-chip {
        width: 100%;
        max-width: none;
    }

    .payment-actions {
        grid-template-columns: 1fr;
    }
}
