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

body {
    font-family: system-ui, sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

body.is-loading {
    overflow: hidden;
}

.page-shell {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.container {
    max-width: 650px;
    margin: 5px auto;
    margin-bottom: 20px;
    padding: 10px;
    width: 100%;
}

/* Side product rails — desktop only */
.product-rail {
    display: none;
}

.product-rail__label,
.more-tools-mobile__label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #0e0e0e;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.product-card + .product-card {
    margin-top: 12px;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #3a3a3a;
    background: #121212;
}

.product-card__title {
    margin: 10px 0 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #f0f0f0;
}

.product-card__brand {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
}

.product-card__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6e6e6e;
}

.product-card__viz {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #161616;
}

.product-card__viz img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .product-card:hover {
        transform: none;
    }
}

/* Mobile More tools chips */
.more-tools-mobile {
    margin: 18px 0 4px;
}

.more-tools-mobile__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-chip {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 12px 14px;
    background: #0e0e0e;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tool-chip:hover {
    border-color: #3a3a3a;
    background: #121212;
}

.tool-chip__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.3;
}

.tool-chip__brand {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #777;
}

@media (min-width: 1100px) {
    .page-shell {
        display: grid;
        grid-template-columns: minmax(160px, 220px) minmax(0, 650px) minmax(160px, 220px);
        gap: 20px;
        align-items: start;
        justify-content: center;
        padding: 8px 16px 28px;
    }

    .container {
        margin: 5px 0 20px;
        max-width: none;
    }

    .product-rail {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 24px;
        padding-top: 72px;
    }

    .product-rail--left {
        justify-self: end;
        width: 100%;
    }

    .product-rail--right {
        justify-self: start;
        width: 100%;
    }

    .more-tools-mobile {
        display: none;
    }
}

/* Header */
.header {
    background: black;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.logo img {
    width: 100%;
    height: 100%;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.brand-sub {
    color: #aaa;
    font-size: 14px;
    margin: 4px 0 0;
}

.container > h1 {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #fff;
}

.hero-lead {
    margin: 0 0 18px;
    color: #bdbdbd;
    font-size: 15px;
    line-height: 1.55;
}

.hero-support {
    margin: 0 0 8px;
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.cross-tool {
    margin: 4px 0 12px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.cross-tool a {
    color: #a78bfa;
    text-decoration: underline;
}

.cross-tool a:hover {
    color: #c4b5fd;
}

.tool-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* SEO article */
.seo-content {
    max-width: 650px;
    margin: 28px auto 8px;
    padding: 8px 4px 4px;
    color: #ccc;
    font-size: 15.5px;
    line-height: 1.65;
}

.seo-content section {
    margin-bottom: 1.75rem;
}

.seo-content h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.75rem;
}

.seo-content h3 {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    margin: 1.1rem 0 0.45rem;
}

.seo-content p {
    margin: 0 0 0.85rem;
}

.seo-content ol,
.seo-content ul {
    margin: 0 0 0.85rem;
    padding-left: 1.25rem;
}

.seo-content li {
    margin-bottom: 0.4rem;
}

.seo-content strong {
    color: #e8e8e8;
    font-weight: 600;
}

.support-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

/* Card */
.content-card {
    background: black;
    border-radius: 16px;
    border: 1px dashed #fff;
    overflow: hidden;
    margin-bottom: 15px;
}

.card-header {
    padding: 20px;
}

/* Iframe — downloadvideo.cc embed */
.iframe-wrap {
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 4px;
}

.iframe-wrap iframe {
    position: static;
    width: 400px;
    max-width: 100%;
    height: 400px;
    border: 1px solid #333;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #0a0a0a;
}

.iframe-wrap iframe.loaded {
    opacity: 1;
}

.powered-by {
    text-align: center;
    font-size: 12px;
    margin: 8px 0 4px;
    color: #aaa;
}

.powered-by a {
    color: #a78bfa;
    text-decoration: underline;
}

@media (max-width: 440px) {
    .iframe-wrap {
        min-height: 360px;
        padding: 8px 4px 4px;
    }

    .iframe-wrap iframe {
        width: 100%;
        height: min(400px, 100vw);
    }
}

/* Loader inside card */
.loader-container {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loader-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 45px;
    height: 45px;
    border: 4px solid #2a2a2a;
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Global Loader */
.global-loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.global-spinner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(#ff6a00, #ff0077, #6a00ff, #00d1ff, #ff6a00);
    animation: spin 2.4s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-spinner img {
    width: 85%;
    filter: brightness(0) invert(1);
}

.tools-btn {
    background: linear-gradient(135deg, #ff4d8d, #8f46ff, #3d9dff, #22e3c5);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    background-size: 200%;
    animation: gradientFlow 6s ease infinite;
    transition: 0.3s;
}

.tools-btn:hover {
    filter: brightness(1.15);
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #aaa;
    background-color: black;
    padding: 10px 0;
    z-index: 10;
}

footer a {
    color: #22e3c5;
    text-decoration: underline;
}

.support-card {
    background: #000;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    max-width: 100%;
    padding: 20px;
    margin: 20px 0 8px;
}

.support-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
}

.support-top h2,
.support-top .support-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.support-card p {
    color: #bdbdbd;
    line-height: 1.7;
    font-size: 14px;
}

.donate-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg,
            #ff4d8d,
            #8f46ff,
            #3d9dff);
    background-size: 200%;
    animation: gradientFlow 6s ease infinite;

    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

@media(max-width:600px) {

    .support-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-card {
        margin: 20px 0 8px;
    }

    .donate-btn {
        width: 100%;
        text-align: center;
    }

}

/* Adsterra placements */
.ad-slot {
    display: flex;
    width: 100%;
    justify-content: center;
    overflow: hidden;
    margin: 16px 0 8px;
    padding: 12px 0;
}

.ad-slot--header {
    margin: 0 0 16px;
    padding: 8px 0;
}

.ad-slot--top {
    margin: 8px 0 16px;
    padding: 8px 0;
}

.ad-slot--rect {
    margin: 28px 0 12px;
}

.ad-slot--rail {
    display: none;
    margin: 16px 0 0;
    padding: 0;
    justify-content: center;
}

.ad-slot__inner {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.ad-slot__inner iframe {
    max-width: 100%;
}

.ad-slot[hidden] {
    display: none !important;
}

@media (min-width: 1100px) {
    .ad-slot--rail:not([hidden]) {
        display: flex;
    }

    .product-rail .ad-slot--rail {
        flex: 0 0 auto;
    }
}
