.page-tiktok-video-downloader {
    --ttdl-bg: #05070c;
    --ttdl-panel: #0c121c;
    --ttdl-line: rgba(255, 255, 255, .1);
    --ttdl-muted: #8e9cb1;
    --ttdl-mint: #25dfc1;
    --ttdl-blue: #3b91ff;
    background:
        radial-gradient(58rem 34rem at 10% 4rem, rgba(37, 223, 193, .09), transparent 72%),
        radial-gradient(54rem 36rem at 92% 7rem, rgba(59, 145, 255, .11), transparent 68%),
        var(--ttdl-bg);
}

.page-tiktok-video-downloader main {
    padding-top: 1rem !important;
    padding-bottom: 0 !important;
}

.page-tiktok-video-downloader .glass-nav {
    background: rgba(5, 8, 13, .84);
}

.ttdl-shell {
    display: grid;
    width: min(100% - 1.5rem, 1180px);
    margin-inline: auto;
    gap: clamp(4rem, 8vw, 7rem);
}

.ttdl-shell section[id] {
    scroll-margin-top: calc(var(--ux-header-height) + 1rem);
}

.ttdl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--ttdl-line);
    border-radius: 1.45rem;
    background: linear-gradient(145deg, rgba(15, 22, 32, .98), rgba(7, 10, 17, .99));
    box-shadow: 0 38px 95px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .04);
}

.ttdl-copy-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-bottom: 1px solid var(--ttdl-line);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .025), transparent 42%),
        radial-gradient(28rem 24rem at 15% 88%, rgba(37, 223, 193, .08), transparent 70%);
}

.ttdl-copy-panel::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, black, transparent 72%);
}

.ttdl-back-link {
    position: absolute;
    top: 1.45rem;
    left: clamp(2rem, 5vw, 4.5rem);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #77869b;
    font-size: .72rem;
    font-weight: 720;
    text-decoration: none;
}

.ttdl-back-link:hover {
    color: #fff;
}

.ttdl-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #74ead7;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ttdl-kicker > i {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--ttdl-mint);
    box-shadow: 0 0 .75rem rgba(37, 223, 193, .72);
}

.ttdl-copy-panel h1 {
    max-width: 62rem;
    margin: 1.1rem 0 1.2rem;
    font-size: clamp(3rem, 5.2vw, 4.7rem);
    font-weight: 790;
    letter-spacing: -.065em;
    line-height: .98;
}

.ttdl-copy-panel h1 span {
    color: transparent;
    background: linear-gradient(100deg, #53e7d0, #55a4ff 68%, #aa80ff);
    background-clip: text;
    -webkit-background-clip: text;
}

.ttdl-lead {
    max-width: 62rem;
    margin: 0;
    color: #a0aec1;
    font-size: 1rem;
    line-height: 1.7;
}

.ttdl-lookup-form {
    width: 100%;
    margin-top: 2rem;
}

.ttdl-lookup-form > label {
    display: block;
    margin-bottom: .55rem;
    color: #dbe5f2;
    font-size: .74rem;
    font-weight: 780;
}

.ttdl-url-control {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    align-items: center;
    min-height: 3.8rem;
    padding: .35rem;
    border: 1px solid rgba(138, 164, 202, .24);
    border-radius: .85rem;
    background: rgba(4, 8, 14, .86);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 12px 32px rgba(0, 0, 0, .2);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ttdl-url-control:focus-within {
    border-color: rgba(58, 183, 255, .62);
    box-shadow: 0 0 0 .22rem rgba(58, 154, 255, .12), inset 0 1px rgba(255, 255, 255, .04);
}

.ttdl-url-icon {
    display: grid;
    place-items: center;
    color: #66758b;
}

.ttdl-url-icon svg,
.ttdl-url-control button svg,
.ttdl-download-button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
}

.ttdl-url-control input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #eef5ff;
    background: transparent;
    font-size: .82rem;
}

.ttdl-url-control input::placeholder {
    color: #566378;
}

.ttdl-url-control button,
.ttdl-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    color: #031411;
    background: linear-gradient(135deg, #43e2c8, #55a4ff);
    font-size: .72rem;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(44, 179, 193, .2);
    transition: filter .2s ease, transform .2s ease, opacity .2s ease;
}

.ttdl-url-control button {
    min-height: 3.05rem;
    padding: .72rem .9rem;
    border-radius: .62rem;
    white-space: nowrap;
}

.ttdl-url-control button:hover,
.ttdl-download-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ttdl-url-control button:disabled,
.ttdl-download-button:disabled {
    opacity: .6;
    transform: none;
}

.ttdl-url-control button:disabled { cursor: wait; }

.ttdl-download-button:disabled { cursor: not-allowed; }

.ttdl-input-hint,
.ttdl-expiry {
    margin: .6rem .15rem 0;
    color: #8b99ad;
    font-size: .72rem;
    line-height: 1.5;
}

.ttdl-status {
    margin-top: .8rem;
    padding: .72rem .85rem;
    border: 1px solid rgba(255, 107, 138, .32);
    border-radius: .62rem;
    color: #ffc2cf;
    background: rgba(255, 78, 117, .075);
    font-size: .72rem;
    line-height: 1.5;
}

.ttdl-status.is-success {
    border-color: rgba(37, 223, 193, .28);
    color: #9df2e4;
    background: rgba(37, 223, 193, .065);
}

.ttdl-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin-top: 1.5rem;
    color: #77869b;
    font-size: .62rem;
    font-weight: 690;
}

.ttdl-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
}

.ttdl-trust-row i {
    display: inline-grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    border: 1px solid rgba(37, 223, 193, .27);
    border-radius: 50%;
    color: #63dfcb;
    background: rgba(37, 223, 193, .06);
    font-size: .54rem;
    font-style: normal;
}

.ttdl-preview-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1rem;
    background:
        radial-gradient(30rem 26rem at 50% 45%, rgba(60, 133, 255, .08), transparent 72%),
        rgba(4, 7, 12, .82);
}

.ttdl-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.8rem;
    padding: 0 .35rem .75rem;
    border-bottom: 1px solid var(--ttdl-line);
}

.ttdl-preview-topbar > span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #dce7f5;
    font-size: .66rem;
    font-weight: 780;
}

.ttdl-preview-topbar i,
.ttdl-public-badge i {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: var(--ttdl-blue);
    box-shadow: 0 0 .7rem rgba(59, 145, 255, .72);
}

.ttdl-preview-topbar small {
    color: #8b99ad;
    font-size: .68rem;
}

.ttdl-empty-state {
    display: grid;
    min-height: 590px;
    place-items: center;
    align-content: center;
    padding: 2rem;
    text-align: center;
}

.ttdl-empty-state h2 {
    margin: 1.45rem 0 .45rem;
    font-size: 1rem;
}

.ttdl-empty-state p {
    max-width: 21rem;
    margin: 0;
    color: #6e7c90;
    font-size: .72rem;
    line-height: 1.55;
}

.ttdl-phone {
    position: relative;
    width: 9rem;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border: 1px solid rgba(113, 146, 193, .25);
    border-radius: 1.3rem;
    background:
        linear-gradient(145deg, rgba(80, 159, 255, .1), transparent 45%),
        linear-gradient(25deg, rgba(37, 223, 193, .09), rgba(11, 16, 25, .96));
    box-shadow: 0 24px 55px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .05);
}

.ttdl-phone::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .16;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 100% 2.4rem;
}

.ttdl-phone-speaker {
    position: absolute;
    z-index: 1;
    top: .6rem;
    left: 50%;
    width: 2.3rem;
    height: .2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    transform: translateX(-50%);
}

.ttdl-phone-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 3.3rem;
    height: 3.3rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    color: #7ca9dd;
    background: rgba(4, 8, 14, .58);
    box-shadow: 0 0 2.5rem rgba(59, 145, 255, .17);
    transform: translate(-50%, -50%);
}

.ttdl-phone-play svg {
    width: 1.45rem;
    fill: currentColor;
}

.ttdl-phone > span {
    position: absolute;
    right: .8rem;
    bottom: 3.5rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .065);
}

.ttdl-phone > span:nth-of-type(2) { bottom: 5.7rem; }
.ttdl-phone > span:nth-of-type(3) { bottom: 7.9rem; }

.ttdl-loading-state,
.ttdl-result {
    flex: 1;
    min-height: 0;
    margin-top: 1rem;
}

.ttdl-loading-state {
    display: grid;
    grid-template-columns: minmax(10rem, .75fr) minmax(0, 1.25fr);
    gap: 1rem;
}

.ttdl-loading-state[hidden],
.ttdl-result[hidden] {
    display: none;
}

.ttdl-loading-cover,
.ttdl-loading-copy > span,
.ttdl-loading-copy i {
    background: linear-gradient(100deg, rgba(255, 255, 255, .035) 25%, rgba(255, 255, 255, .085) 45%, rgba(255, 255, 255, .035) 65%);
    background-size: 220% 100%;
    animation: ttdl-shimmer 1.35s linear infinite;
}

.ttdl-loading-cover {
    align-self: start;
    aspect-ratio: 9 / 16;
    border-radius: .8rem;
}

.ttdl-loading-copy {
    display: grid;
    align-content: center;
    gap: .75rem;
}

.ttdl-loading-copy > span {
    width: 100%;
    height: .9rem;
    border-radius: .3rem;
}

.ttdl-loading-copy > span:nth-child(1) { width: 48%; }
.ttdl-loading-copy > span:nth-child(3) { width: 72%; }

.ttdl-loading-copy > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
    margin-top: 1rem;
}

.ttdl-loading-copy i {
    height: 3.4rem;
    border-radius: .5rem;
}

.ttdl-result {
    display: grid;
    grid-template-columns: minmax(11rem, .78fr) minmax(0, 1.22fr);
    gap: 1rem;
}

.ttdl-result-media {
    position: relative;
    align-self: start;
    width: 100%;
    aspect-ratio: var(--ttdl-media-ratio, 9 / 16);
    overflow: hidden;
    border: 1px solid var(--ttdl-line);
    border-radius: .85rem;
    background: #030507;
}

.ttdl-result-media::after {
    position: absolute;
    inset: auto 0 0;
    height: 25%;
    content: "";
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
}

.ttdl-result-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ttdl-thumbnail-fallback {
    display: grid;
    height: 100%;
    place-items: center;
    align-content: center;
    gap: .65rem;
    color: #6e7d92;
    background: radial-gradient(circle, rgba(59, 145, 255, .12), transparent 62%);
    font-size: .68rem;
}

.ttdl-thumbnail-fallback[hidden] { display: none; }

.ttdl-thumbnail-fallback svg {
    width: 2.3rem;
    fill: currentColor;
}

.ttdl-duration {
    position: absolute;
    z-index: 1;
    right: .65rem;
    bottom: .65rem;
    padding: .28rem .45rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .38rem;
    color: #fff;
    background: rgba(2, 4, 8, .75);
    font-size: .65rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.ttdl-result-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: .35rem .2rem .2rem;
}

.ttdl-public-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .4rem;
    padding: .3rem .48rem;
    border: 1px solid rgba(37, 223, 193, .2);
    border-radius: 999px;
    color: #83ead9;
    background: rgba(37, 223, 193, .06);
    font-size: .63rem;
    font-weight: 820;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ttdl-public-badge i {
    background: var(--ttdl-mint);
    box-shadow: 0 0 .6rem rgba(37, 223, 193, .65);
}

.ttdl-creator {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: .8rem;
}

.ttdl-creator img {
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    object-fit: cover;
    background: #111722;
}

.ttdl-creator > div {
    display: grid;
    min-width: 0;
}

.ttdl-creator strong {
    overflow: hidden;
    color: #e7eef8;
    font-size: .74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttdl-creator span {
    overflow: hidden;
    color: #718096;
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttdl-result-details h2 {
    display: -webkit-box;
    margin: .85rem 0 0;
    overflow: hidden;
    color: #f1f5fb;
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    letter-spacing: -.02em;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.ttdl-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .6rem;
}

.ttdl-hashtags span {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #6ca9f2;
    font-size: .65rem;
    font-weight: 700;
}

.ttdl-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .42rem;
    margin: .9rem 0 0;
}

.ttdl-stats div {
    min-width: 0;
    padding: .55rem;
    border: 1px solid var(--ttdl-line);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .018);
}

.ttdl-stats dt,
.ttdl-meta dt {
    color: #8b99ad;
    font-size: .63rem;
    font-weight: 720;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ttdl-stats dd {
    margin: .14rem 0 0;
    overflow: hidden;
    color: #e3ebf7;
    font-size: .76rem;
    font-weight: 820;
    text-overflow: ellipsis;
}

.ttdl-meta {
    display: grid;
    gap: .28rem;
    margin: .75rem 0 0;
    padding: .55rem .65rem;
    border: 1px solid var(--ttdl-line);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .012);
}

.ttdl-meta div {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    gap: .55rem;
}

.ttdl-meta dd {
    margin: 0;
    overflow: hidden;
    color: #aebacf;
    font-size: .65rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ttdl-confirmation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-top: auto;
    padding: .7rem 0;
}

.ttdl-confirmation > span {
    color: #9eabba;
    font-size: .68rem;
    font-weight: 730;
}

.ttdl-confirmation a {
    color: #6ddfcc;
    font-size: .66rem;
    font-weight: 750;
    text-decoration: none;
}

.ttdl-confirmation a:hover { color: #fff; }

.ttdl-download-button {
    width: 100%;
    min-height: 3rem;
    border-radius: .6rem;
}

.ttdl-expiry {
    text-align: center;
}

.ttdl-steps {
    display: grid;
    gap: 2rem;
}

.ttdl-section-heading {
    display: grid;
    grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
    align-items: end;
    gap: 2rem;
}

.ttdl-section-heading h2,
.ttdl-responsible h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -.05em;
    line-height: 1.02;
}

.ttdl-steps ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ttdl-steps li {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: .8rem;
    padding: 1.35rem;
    border: 1px solid var(--ttdl-line);
    border-radius: .85rem;
    background: linear-gradient(145deg, rgba(16, 23, 34, .92), rgba(8, 12, 19, .96));
}

.ttdl-steps li > span {
    color: #559cf2;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .62rem;
    font-weight: 850;
}

.ttdl-steps h3 {
    margin: 0 0 .45rem;
    font-size: .95rem;
}

.ttdl-steps p,
.ttdl-responsible p {
    margin: 0;
    color: var(--ttdl-muted);
    font-size: .74rem;
    line-height: 1.6;
}

.ttdl-responsible {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.4rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 191, 76, .16);
    border-radius: 1.1rem;
    background:
        radial-gradient(24rem 18rem at 0 50%, rgba(255, 173, 58, .065), transparent 72%),
        linear-gradient(145deg, rgba(17, 22, 31, .98), rgba(8, 11, 17, .98));
}

.ttdl-responsible-icon {
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    border: 1px solid rgba(255, 191, 76, .2);
    border-radius: 1rem;
    color: #ffc46b;
    background: rgba(255, 175, 56, .055);
}

.ttdl-responsible-icon svg {
    width: 2rem;
    fill: currentColor;
}

.ttdl-responsible h2 {
    margin: .7rem 0 .75rem;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
}

.ttdl-responsible p {
    max-width: 53rem;
}

body.ttdl-processing-open {
    overflow: hidden;
}

.ttdl-processing-modal[hidden] {
    display: none;
}

.ttdl-processing-modal {
    position: fixed;
    z-index: 1085;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.ttdl-processing-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, .8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ttdl-processing-dialog {
    position: relative;
    overflow: hidden auto;
    width: min(100%, 31rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    padding: clamp(1.75rem, 5vw, 2.6rem);
    border: 1px solid rgba(131, 164, 205, .22);
    border-radius: 1.25rem;
    outline: 0;
    color: #edf5ff;
    background:
        radial-gradient(22rem 17rem at 50% 0, rgba(49, 190, 218, .13), transparent 72%),
        linear-gradient(150deg, #111a27, #080d15 72%);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .66), inset 0 1px rgba(255, 255, 255, .055);
    text-align: center;
    animation: ttdl-modal-rise .26s cubic-bezier(.2, .78, .24, 1) both;
}

.ttdl-processing-dialog::before {
    position: absolute;
    top: 0;
    right: 15%;
    left: 15%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(76, 225, 203, .85), transparent);
}

.ttdl-processing-dialog:focus-visible {
    box-shadow:
        0 34px 100px rgba(0, 0, 0, .66),
        0 0 0 .22rem rgba(70, 167, 255, .2),
        inset 0 1px rgba(255, 255, 255, .055);
}

.ttdl-processing-visual {
    position: relative;
    display: grid;
    width: 5.6rem;
    height: 5.6rem;
    margin: 0 auto 1.35rem;
    place-items: center;
    border-radius: 50%;
    color: #69ecd8;
    background: rgba(37, 223, 193, .07);
}

.ttdl-processing-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(91, 173, 211, .18);
    border-top-color: #4be0c8;
    border-right-color: #4f9fff;
    border-radius: 50%;
    box-shadow: 0 0 2rem rgba(37, 223, 193, .11);
    animation: ttdl-processing-spin 1s linear infinite;
}

.ttdl-processing-download-icon,
.ttdl-processing-ready-icon {
    width: 2rem;
    fill: currentColor;
}

.ttdl-processing-download-icon {
    animation: ttdl-processing-float 1.4s ease-in-out infinite;
}

.ttdl-processing-ready-icon {
    display: none;
}

.ttdl-processing-kicker {
    display: block;
    margin-bottom: .65rem;
    color: #78ead8;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ttdl-processing-dialog h2 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    letter-spacing: -.04em;
    line-height: 1.08;
}

.ttdl-processing-announcement p {
    max-width: 25rem;
    margin: .9rem auto 0;
    color: #aebdd0;
    font-size: .88rem;
    line-height: 1.65;
}

.ttdl-processing-progress {
    overflow: hidden;
    height: .3rem;
    margin: 1.5rem 0 1.2rem;
    border-radius: 999px;
    background: rgba(121, 153, 191, .13);
}

.ttdl-processing-progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #40dfc4, #4c9fff);
    box-shadow: 0 0 1rem rgba(59, 178, 231, .42);
    animation: ttdl-processing-progress 1.45s ease-in-out infinite;
}

.ttdl-processing-note {
    max-width: 24rem;
    margin: 0 auto;
    color: #8e9eb3;
    font-size: .76rem;
    line-height: 1.55;
}

.ttdl-processing-close {
    min-width: 9rem;
    margin-top: 1.35rem;
    padding: .72rem 1.2rem;
    border: 1px solid rgba(155, 179, 211, .23);
    border-radius: .68rem;
    color: #dce7f5;
    background: rgba(255, 255, 255, .045);
    font-size: .76rem;
    font-weight: 780;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.ttdl-processing-close:hover {
    border-color: rgba(88, 220, 201, .45);
    background: rgba(70, 202, 183, .09);
    transform: translateY(-1px);
}

.ttdl-processing-close:focus-visible {
    outline: .2rem solid rgba(68, 165, 255, .34);
    outline-offset: .18rem;
}

.ttdl-processing-dialog > small {
    display: block;
    margin-top: .65rem;
    color: #7f8da1;
    font-size: .68rem;
}

.ttdl-processing-modal.is-ready .ttdl-processing-visual {
    color: #7af0dc;
    background: rgba(37, 223, 193, .12);
    box-shadow: 0 0 2rem rgba(37, 223, 193, .13);
}

.ttdl-processing-modal.is-ready .ttdl-processing-ring {
    border-color: rgba(76, 226, 201, .5);
    animation: none;
}

.ttdl-processing-modal.is-ready .ttdl-processing-download-icon {
    display: none;
}

.ttdl-processing-modal.is-ready .ttdl-processing-ready-icon {
    display: block;
}

.ttdl-processing-modal.is-ready .ttdl-processing-progress span {
    width: 100%;
    animation: none;
}

.ttdl-processing-modal.is-delayed .ttdl-processing-visual,
.ttdl-processing-modal.is-delayed .ttdl-processing-kicker {
    color: #ffc56f;
}

.ttdl-processing-modal.is-delayed .ttdl-processing-ring {
    border-color: rgba(255, 185, 81, .42);
    animation: none;
}

.ttdl-processing-modal.is-delayed .ttdl-processing-download-icon {
    animation: none;
}

.ttdl-processing-modal.is-delayed .ttdl-processing-progress span {
    background: #eeb35b;
    animation: none;
}

.page-tiktok-video-downloader .site-footer {
    margin-top: clamp(4rem, 8vw, 7rem) !important;
}

@keyframes ttdl-shimmer {
    to { background-position: -220% 0; }
}

@keyframes ttdl-modal-rise {
    from { transform: translateY(.8rem) scale(.98); }
}

@keyframes ttdl-processing-spin {
    to { transform: rotate(360deg); }
}

@keyframes ttdl-processing-float {
    50% { transform: translateY(.18rem); }
}

@keyframes ttdl-processing-progress {
    from { transform: translateX(-115%); }
    to { transform: translateX(340%); }
}

@media (max-width: 1050px) {
    .ttdl-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ttdl-copy-panel {
        padding: 3.5rem 2.2rem;
    }

    .ttdl-back-link { left: 2.2rem; }

    .ttdl-url-control {
        grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    }

    .ttdl-url-control button {
        grid-column: auto;
        width: auto;
        margin-top: 0;
    }

    .ttdl-result {
        grid-template-columns: minmax(10rem, .7fr) minmax(0, 1.3fr);
    }
}

@media (max-width: 900px) {
    .ttdl-shell { gap: 5rem; }

    .ttdl-hero {
        grid-template-columns: 1fr;
    }

    .ttdl-copy-panel {
        min-height: 570px;
        border-right: 0;
        border-bottom: 1px solid var(--ttdl-line);
    }

    .ttdl-url-control {
        grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    }

    .ttdl-url-control button {
        grid-column: auto;
        width: auto;
        margin-top: 0;
    }

    .ttdl-preview-panel { min-height: 660px; }

    .ttdl-empty-state { min-height: 590px; }
}

@media (max-width: 700px) {
    .ttdl-shell {
        width: min(100% - 1rem, 1180px);
        gap: 4rem;
    }

    .ttdl-hero { border-radius: 1rem; }

    .ttdl-copy-panel {
        min-height: 0;
        padding: 4.25rem 1.15rem 2rem;
    }

    .ttdl-back-link {
        top: 1.25rem;
        left: 1.15rem;
    }

    .ttdl-copy-panel h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .ttdl-url-control {
        grid-template-columns: 2.3rem minmax(0, 1fr);
    }

    .ttdl-url-control button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: .25rem;
    }

    .ttdl-preview-panel {
        min-height: 0;
        padding: .75rem;
    }

    .ttdl-empty-state { min-height: 520px; }

    .ttdl-result,
    .ttdl-loading-state {
        grid-template-columns: 1fr;
    }

    .ttdl-result-media,
    .ttdl-loading-cover {
        width: min(100%, 19rem);
        margin-inline: auto;
    }

    .ttdl-result-media { aspect-ratio: var(--ttdl-media-ratio, 9 / 16); }

    .ttdl-loading-cover { aspect-ratio: 9 / 16; }

    .ttdl-result-details { padding: .65rem .25rem .25rem; }

    .ttdl-confirmation { margin-top: 1rem; }

    .ttdl-section-heading,
    .ttdl-steps ol {
        grid-template-columns: 1fr;
    }

    .ttdl-section-heading { gap: .8rem; }

    .ttdl-responsible {
        grid-template-columns: 1fr;
    }

    .ttdl-processing-modal { padding: .75rem; }

    .ttdl-processing-dialog {
        max-height: calc(100vh - 1.5rem);
        max-height: calc(100dvh - 1.5rem);
        padding: 1.65rem 1.2rem;
        border-radius: 1rem;
    }

    .ttdl-processing-visual {
        width: 4.9rem;
        height: 4.9rem;
        margin-bottom: 1.1rem;
    }
}

@media (max-width: 420px) {
    .ttdl-copy-panel h1 { font-size: 2.55rem; }

    .ttdl-trust-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ttdl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ttdl-preview-topbar small { display: none; }

    .ttdl-responsible { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ttdl-loading-cover,
    .ttdl-loading-copy > span,
    .ttdl-loading-copy i {
        animation: none;
    }

    .ttdl-url-control button,
    .ttdl-download-button {
        transition: none;
    }

    .ttdl-processing-backdrop,
    .ttdl-processing-dialog,
    .ttdl-processing-ring,
    .ttdl-processing-download-icon,
    .ttdl-processing-progress span {
        animation: none;
    }

    .ttdl-processing-progress span {
        width: 100%;
        opacity: .45;
    }

    .ttdl-processing-close { transition: none; }
}
