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


body {
    font-family: Arial, sans-serif;

    background: #080808;

    color: #fff;

    line-height: 1.5;
}


header {
    height: 70px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 7%;

    border-bottom: 1px solid #222;

    position: sticky;

    top: 0;

    background: rgba(8,8,8,.9);

    backdrop-filter: blur(12px);

    z-index: 10;
}


.logo {
    font-size: 23px;

    font-weight: 800;
}


.logo span {
    color: #ff3030;
}


nav {
    display: flex;

    gap: 30px;
}


nav a {
    color: #888;

    text-decoration: none;

    font-size: 14px;
}


nav a:hover {
    color: white;
}


.page-layout {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 48px;
}

.page-layout > main,
.page-center {
    min-width: 0;
}

/* ==========================================
   AD CONTAINERS
   All three ad placements share the same
   desktop dimensions: 728px × 90px.
   ========================================== */

.ad-container {
    width: 728px;
    height: 90px;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
    border: 1px solid #282828;
    border-radius: 10px;
}

.ad-label {
    position: absolute;
    top: 5px;
    left: 9px;
    color: #666;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ad-placeholder {
    color: #555;
    font-size: 12px;
}

/* In-page banner */
.banner-ad {
    display: flex;
    justify-content: center;
    padding: 18px 20px 0;
}

/* Larger in-page top banner */
.ad-banner-slot {
    width: 800px;
    height: 200px;
}

/* Analyze-triggered popup */
.ad-popup {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.ad-popup.is-open {
    display: flex;
}

.ad-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.ad-popup-card {
    position: relative;
    z-index: 1;
}

.ad-popup-slot {
    width: 900px;
    height: 300px;
    max-width: min(900px, calc(100vw - 40px));
    max-height: calc(100vh - 80px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

/* The popup backdrop covers the whole page so the analyzer cannot be
   interacted with until the advertisement is closed. */
.ad-popup-backdrop {
    cursor: default;
}

body.ad-popup-open {
    overflow: hidden;
}

.ad-close {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 34px;
    height: 34px;
    border: 1px solid #444;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.ad-close:hover {
    background: #ff3030;
    border-color: #ff3030;
}

/* Sticky footer */
.sticky-ad {
    --sticky-height: 106px;
    --tab-height: 34px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: var(--sticky-height);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 8px 15px;
    background: rgba(8, 8, 8, 0.96);
    border-top: 1px solid #222;
    transform: translateY(0);
    transition: transform 0.42s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

/* When collapsed, only the polished control tab remains visible. */
.sticky-ad.is-collapsed {
    transform: translateY(calc(100% - var(--tab-height)));
}

.sticky-ad-toggle {
    position: absolute;
    top: calc(-1 * var(--tab-height));
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: var(--tab-height);
    padding: 0;
    border: 1px solid #d8d8d8;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #fff;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,.14);
    transition: background-color .2s ease, box-shadow .2s ease, width .2s ease;
}

.sticky-ad-toggle:hover {
    background: #f5f5f5;
    box-shadow: 0 -5px 20px rgba(0,0,0,.18);
}

.sticky-ad-toggle:focus-visible {
    outline: 3px solid rgba(0, 123, 255, .35);
    outline-offset: 2px;
}

.sticky-ad-arrow {
    width: 11px;
    height: 11px;
    display: block;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(225deg) translate(-1px, -1px);
    transition: transform 0.42s cubic-bezier(.22, 1, .36, 1);
}

/* Point downward when the ad is open: clicking hides it. */
.sticky-ad.is-collapsed .sticky-ad-arrow {
    transform: rotate(45deg) translate(-1px, -1px);
}

body {
    padding-bottom: 106px;
}


.hero {
    max-width: 950px;

    margin: auto;

    text-align: center;

    padding: 100px 20px 80px;
}


.badge {
    display: inline-block;

    border: 1px solid #333;

    background: #151515;

    color: #999;

    border-radius: 30px;

    padding: 7px 15px;

    font-size: 12px;

    margin-bottom: 25px;
}


.hero h1 {
    font-size: clamp(42px, 6vw, 70px);

    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 25px;
}


.hero h1 span {
    color: #ff3030;
}


.hero p {
    color: #888;

    max-width: 650px;

    margin: auto auto 35px;

    font-size: 17px;
}


.url-box {
    display: flex;

    background: #121212;

    border: 1px solid #333;

    padding: 6px;

    border-radius: 12px;

    max-width: 750px;

    margin: auto;
}


.url-box input {
    flex: 1;

    background: transparent;

    border: 0;

    outline: 0;

    color: white;

    padding: 16px;

    font-size: 15px;
}


.url-box button {
    background: #ff3030;

    border: 0;

    color: white;

    font-weight: bold;

    border-radius: 8px;

    padding: 0 28px;

    cursor: pointer;
}


.url-box button:hover {
    background: #e51f1f;
}


#error {
    color: #ff5555;

    margin-top: 15px;
}


#results {
    max-width: 1050px;

    margin: auto;

    padding: 0 20px 80px;
}


.result-section {
    padding: 65px 0;

    border-bottom: 1px solid #222;
}


.section-title {
    display: flex;

    gap: 20px;

    margin-bottom: 30px;
}


.section-title > span {
    color: #ff3030;

    font-weight: bold;

    font-size: 13px;
}


.section-title h2 {
    font-size: 28px;

    margin-bottom: 5px;
}


.section-title p {
    color: #666;

    font-size: 14px;
}


/* VIDEO */

.video-info {
    display: flex;

    gap: 25px;

    background: #111;

    border: 1px solid #282828;

    border-radius: 15px;

    padding: 20px;
}


.video-info > img {
    width: 300px;

    aspect-ratio: 16/9;

    object-fit: cover;

    border-radius: 9px;
}


.video-details {
    flex: 1;
}


.video-details h2 {
    font-size: 21px;

    margin-bottom: 25px;
}


.info-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.info-grid div,
.channel-box div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


small {
    color: #666;

    font-size: 10px;

    letter-spacing: 1px;
}


.info-grid strong {
    font-size: 14px;
}


/* THUMBNAILS */

.thumbnail-list {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


.thumbnail-item {
    background: #111;

    border: 1px solid #282828;

    border-radius: 14px;

    overflow: hidden;
}


.thumbnail-image {
    width: 100%;

    background: #050505;

    aspect-ratio: 16/9;
}


.thumbnail-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;
}


.thumbnail-info {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 17px 20px;
}


.thumbnail-info h3 {
    font-size: 15px;
}


.thumbnail-info p {
    color: #666;

    font-size: 12px;
}


.download-btn {
    background: #222;

    color: white;

    text-decoration: none;

    padding: 9px 15px;

    border-radius: 7px;

    font-size: 13px;
}


.download-btn:hover {
    background: #ff3030;
}


/* STATS */

.stats {
    display: grid;

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

    gap: 15px;
}


.stat {
    background: #111;

    border: 1px solid #282828;

    border-radius: 14px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.stat span {
    font-size: 20px;
}


.stat small {
    margin-top: 8px;
}


.stat strong {
    font-size: 24px;
}


/* TAGS */

.tags-box {
    background: #111;

    border: 1px solid #282828;

    border-radius: 14px;

    overflow: hidden;
}


.tags-header {
    padding: 18px 20px;

    display: flex;

    justify-content: space-between;

    border-bottom: 1px solid #282828;
}


.tags-header button {
    background: #222;

    color: white;

    border: 1px solid #333;

    border-radius: 6px;

    padding: 7px 12px;

    cursor: pointer;
}


#tagsList {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    padding: 25px;
}


#tagsList span:not(.empty),
#keywords span {
    background: #1b1b1b;

    border: 1px solid #333;

    border-radius: 30px;

    padding: 8px 12px;

    font-size: 13px;

    color: #ccc;
}


.empty {
    color: #666;
}


/* SEO */

.seo-score {
    display: flex;

    align-items: center;

    gap: 50px;

    background: #111;

    border: 1px solid #282828;

    border-radius: 15px;

    padding: 30px;
}


.score-circle {
    width: 150px;

    height: 150px;

    border: 8px solid #ff3030;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;
}


.score-circle strong {
    font-size: 42px;
}


.score-circle span {
    color: #666;
}


.seo-items {
    flex: 1;
}


.seo-row {
    display: flex;

    justify-content: space-between;

    padding: 15px 0;

    border-bottom: 1px solid #222;

    color: #999;
}


.seo-row strong {
    color: white;
}


/* KEYWORDS */

.keyword-box {
    background: #111;

    border: 1px solid #282828;

    border-radius: 15px;

    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 25px;
}


.keyword-box > div {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.keyword-box strong {
    font-size: 20px;
}


#keywords {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


/* DESCRIPTION */

.description-box {
    background: #111;

    border: 1px solid #282828;

    border-radius: 15px;

    padding: 25px;

    color: #999;

    white-space: pre-wrap;
}


/* CHANNEL */

.channel-box {
    display: grid;

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

    gap: 15px;
}


.channel-box div {
    background: #111;

    border: 1px solid #282828;

    padding: 22px;

    border-radius: 12px;
}


.channel-box strong {
    margin-top: 7px;
}


/* FOOTER */

footer {
    text-align: center;

    padding: 50px;

    border-top: 1px solid #222;

    color: #555;
}


footer strong {
    color: white;
}




/* MOBILE */

@media(max-width:700px) {

    .page-layout {
        width: calc(100% - 30px);
    }

    .banner-ad {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ad-container {
        width: 100%;
        height: 90px;
    }

    .ad-banner-slot,
    .ad-popup-slot {
        width: min(900px, calc(100vw - 30px));
        height: min(300px, 33.333vw);
        min-height: 90px;
    }

    .ad-popup {
        padding: 15px;
    }

    .sticky-ad {
        height: 106px;
        padding: 8px;
    }

    .ad-close {
        right: -7px;
        top: -12px;
    }

    header {
        padding: 0 14px;
        gap: 12px;
        overflow: hidden;
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav a {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .logo {
        flex: 0 0 auto;
        font-size: 21px;
    }

    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .url-box {
        flex-direction: column;
    }

    .url-box button {
        height: 50px;
    }

    .video-info {
        flex-direction: column;
    }

    .video-info > img {
        width: 100%;
    }

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

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

    .seo-score {
        flex-direction: column;
    }

    .channel-box {
        grid-template-columns: 1fr;
    }

}
/* ==========================================
   ABOUT PAGE
   ========================================== */

.logo-link {
    color: white;
    text-decoration: none;
}

nav a.active {
    color: white;
}

.about-page {
    min-height: 100vh;
}

/* About Hero */
.about-hero {
    text-align: center;
    padding: 110px 20px 70px;
    max-width: 900px;
    margin: auto;
}

.about-hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.about-hero h1 span {
    color: #ff3030;
}

.about-hero p {
    color: #aaa;
    font-size: 18px;
    line-height: 1.7;
    max-width: 700px;
    margin: auto;
}

/* About Content */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.about-intro {
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 35px;
    margin-bottom: 30px;
}

.about-intro h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-intro p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* About Sections */
.about-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
}

.about-section summary {
    cursor: pointer;
    list-style: none;
    padding: 24px 28px;
    font-size: 20px;
    font-weight: bold;
    position: relative;
}

.about-section summary::-webkit-details-marker {
    display: none;
}

.about-section summary::after {
    content: "+";
    position: absolute;
    right: 28px;
    font-size: 25px;
    color: #ff3030;
}

.about-section[open] summary::after {
    content: "−";
}

.about-section summary:hover {
    background: #151515;
}

.about-section-content {
    padding: 0 28px 30px;
    border-top: 1px solid #222;
}

.about-section-content h3 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.about-section-content h4 {
    font-size: 17px;
    margin-top: 22px;
    margin-bottom: 10px;
}

.about-section-content p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section-content ul,
.about-section-content ol {
    color: #aaa;
    line-height: 1.8;
    padding-left: 25px;
    margin-bottom: 18px;
}

.about-section-content li {
    margin-bottom: 8px;
}

.about-section-content strong {
    color: #ddd;
}

/* FAQ */
.about-faq {
    margin-top: 10px;
}

.about-faq details {
    border-bottom: 1px solid #222;
}

.about-faq details:last-child {
    border-bottom: none;
}

.about-faq summary {
    padding: 18px 0;
    cursor: pointer;
    font-weight: bold;
    color: #ddd;
}

.about-faq p {
    padding: 0 0 18px;
    margin: 0;
}

/* CTA */
.about-cta {
    text-align: center;
    background: #111;
    border: 1px solid #222;
    border-radius: 14px;
    padding: 50px 25px;
    margin-top: 30px;
}

.about-cta h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.about-cta p {
    color: #aaa;
    margin-bottom: 25px;
}

.about-cta a {
    display: inline-block;
    background: #ff3030;
    color: white;
    text-decoration: none;
    padding: 13px 25px;
    border-radius: 7px;
    font-weight: bold;
    transition: 0.2s;
}

.about-cta a:hover {
    background: #e02020;
}

/* About Number Labels */
.about-number {
    color: #ff3030;
    margin-right: 8px;
}

/* About Tables */
.about-section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.about-section-content th,
.about-section-content td {
    border: 1px solid #292929;
    padding: 12px;
    text-align: left;
}

.about-section-content th {
    background: #181818;
    color: #fff;
}

.about-section-content td {
    color: #aaa;
}

/* About Links */
.about-section-content a {
    color: #ff3030;
    text-decoration: none;
}

.about-section-content a:hover {
    text-decoration: underline;
}

/* Mobile About Page */
@media(max-width:700px) {

    .about-hero {
        padding: 80px 20px 50px;
    }

    .about-hero h1 {
        font-size: 36px;
    }

    .about-hero p {
        font-size: 16px;
    }

    .about-content {
        padding: 0 15px 50px;
    }

    .about-intro {
        padding: 25px 20px;
    }

    .about-intro h2 {
        font-size: 24px;
    }

    .about-section summary {
        padding: 20px;
        padding-right: 50px;
        font-size: 18px;
    }

    .about-section summary::after {
        right: 20px;
    }

    .about-section-content {
        padding: 0 20px 25px;
    }

    .about-section-content h3 {
        font-size: 18px;
    }

    .about-section-content table {
        font-size: 14px;
    }

    .about-section-content th,
    .about-section-content td {
        padding: 8px;
    }

    .about-cta {
        padding: 35px 20px;
    }

    .about-cta h2 {
        font-size: 25px;
    }
}
/* ==========================================
   SEO / INFORMATION PAGES
   ========================================== */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 14px 0;
}
.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover { color: #fff; }

.seo-page {
    min-height: 100vh;
}
.seo-shell {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 90px;
}
.seo-hero {
    text-align: center;
    padding: 30px 0 55px;
}
.seo-hero .badge {
    margin-bottom: 18px;
}
.seo-hero h1 {
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    margin-bottom: 18px;
}
.seo-hero h1 span {
    color: #ff3030;
}
.seo-hero p {
    max-width: 760px;
    margin: auto;
    color: #aaa;
    font-size: 17px;
}
.seo-card {
    background: #101010;
    border: 1px solid #252525;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 22px;
}
.seo-card h2 {
    font-size: 25px;
    margin-bottom: 13px;
}
.seo-card h3 {
    font-size: 18px;
    margin: 25px 0 9px;
}
.seo-card p, .seo-card li {
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}
.seo-card ul, .seo-card ol {
    padding-left: 22px;
}
.tool-cta {
    text-align: center;
    background: linear-gradient(180deg, #151515, #0e0e0e);
}
.tool-cta a, .seo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 13px 22px;
    border-radius: 9px;
    background: #ff3030;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.tool-cta a:hover, .seo-button:hover { opacity: .9; }
.related-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.related-tools a {
    display: block;
    padding: 18px;
    border: 1px solid #292929;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    background: #111;
}
.related-tools a:hover { border-color: #555; }
.breadcrumbs {
    color: #777;
    font-size: 13px;
    margin-bottom: 18px;
}
.breadcrumbs a { color: #999; }
.legal-card h1 {
    font-size: clamp(32px, 5vw, 50px);
    margin-bottom: 14px;
}
.legal-card .updated {
    color: #777;
    font-size: 13px;
    margin-bottom: 30px;
}
.legal-card h2 {
    margin: 30px 0 10px;
    font-size: 22px;
}
.legal-card p, .legal-card li {
    color: #aaa;
    line-height: 1.8;
    font-size: 15px;
}
.legal-card ul { padding-left: 22px; }
@media (max-width: 900px) {
    .related-tools { grid-template-columns: 1fr; }
    .seo-shell { width: min(100% - 28px, 980px); }
}

/* ==========================================
   DEDICATED TOOL PAGES
   ========================================== */
.logo-link span,
footer strong span {
    color: #ff3030;
}

.tool-hero {
    padding-bottom: 42px;
}

.tool-hero h1 span {
    color: #ff3030;
}

.tool-card {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 32px;
    background: #101010;
    border: 1px solid #282828;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.tool-card-heading {
    margin-bottom: 24px;
}

.tool-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 24px;
    border: 1px solid #333;
    border-radius: 999px;
    color: #ff3030;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.tool-card h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.tool-card-heading p {
    color: #777;
    font-size: 14px;
}

.tool-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.tool-input-row input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #333;
    border-radius: 9px;
    outline: none;
    background: #080808;
    color: #fff;
    font-size: 15px;
}

.tool-input-row input:focus {
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(255,48,48,.08);
}

.tool-input-row button,
.secondary-tool-button {
    height: 54px;
    border: 0;
    border-radius: 9px;
    padding: 0 22px;
    background: #ff3030;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .4px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.tool-input-row button:hover,
.secondary-tool-button:hover {
    background: #e52323;
    transform: translateY(-1px);
}

.tool-input-row button:disabled,
.secondary-tool-button:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

.tool-message {
    min-height: 24px;
    margin-top: 12px;
    color: #777;
    font-size: 13px;
}

.tool-message.error { color: #ff6969; }
.tool-message.success { color: #8fd69a; }
.tool-message.loading { color: #aaa; }

.tool-results,
.thumbnail-tool-results {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #242424;
}

.tool-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.tool-result-header h3 {
    font-size: 20px;
    margin-bottom: 3px;
}

.tool-result-header p {
    color: #777;
    font-size: 13px;
}

.secondary-tool-button {
    height: 42px;
    padding: 0 16px;
    background: #1c1c1c;
    border: 1px solid #333;
}

.secondary-tool-button:hover {
    background: #292929;
}

.tag-results-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-result-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #303030;
    border-radius: 999px;
    background: #171717;
    color: #ddd;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.empty-tool-result {
    color: #777;
    padding: 12px 0;
}

.tool-info-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.home-tool-link {
    display: inline-block;
    margin-top: 10px;
    color: #ff4b4b;
    text-decoration: none;
    font-weight: 700;
}

.home-tool-link:hover { text-decoration: underline; }

.thumbnail-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.thumbnail-tool-card {
    min-width: 0;
    background: #0b0b0b;
    border: 1px solid #292929;
    border-radius: 13px;
    overflow: hidden;
}

.thumbnail-tool-image {
    aspect-ratio: 16 / 9;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-tool-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-tool-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.thumbnail-tool-info h3 {
    font-size: 15px;
    margin-bottom: 3px;
}

.thumbnail-tool-info p {
    color: #777;
    font-size: 12px;
}

.thumbnail-tool-info .download-btn {
    flex: 0 0 auto;
    text-decoration: none;
}

/* ==========================================
   BLOG
   ========================================== */
.blog-shell {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 90px;
}

.blog-post {
    background: #101010;
    border: 1px solid #252525;
    border-radius: 18px;
    overflow: hidden;
}

.blog-post-header {
    padding: 46px 52px 28px;
    border-bottom: 1px solid #242424;
}

.blog-post-header h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.blog-meta {
    color: #777;
    font-size: 13px;
}

.blog-post-content {
    padding: 34px 52px 55px;
    color: #b5b5b5;
    font-size: 17px;
    line-height: 1.9;
    overflow-wrap: anywhere;
    word-break: normal;
}

.blog-post-content p,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content blockquote {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-content p { margin-bottom: 22px; }
.blog-post-content h2 { color: #fff; margin-top: 36px; margin-bottom: 12px; }
.blog-post-content h3 { color: #fff; margin-top: 28px; margin-bottom: 10px; }
.blog-post-content ul,
.blog-post-content ol { padding-left: 24px; margin-bottom: 22px; }
.blog-post-content blockquote {
    border-left: 3px solid #ff3030;
    padding: 4px 0 4px 18px;
    color: #ddd;
    margin-top: 24px;
    margin-bottom: 24px;
}

@media (max-width: 700px) {
    .tool-card { padding: 22px 18px; }
    .tool-input-row { flex-direction: column; }
    .tool-input-row button { width: 100%; }
    .tool-result-header { align-items: flex-start; flex-direction: column; }
    .secondary-tool-button { width: 100%; }
    .thumbnail-tool-grid { grid-template-columns: 1fr; }
    .thumbnail-tool-info { align-items: flex-start; flex-direction: column; }
    .thumbnail-tool-info .download-btn { width: 100%; text-align: center; }
    .blog-shell { width: min(100% - 28px, 820px); padding-top: 40px; }
    .blog-post-header { padding: 32px 22px 22px; }
    .blog-post-content { padding: 25px 22px 38px; font-size: 16px; }
}

/* ==========================================
   POLISHED BLOG LANDING PAGE
   ========================================== */
.blog-page .blog-shell {
    width: min(1080px, calc(100% - 40px));
    padding: 72px 0 100px;
}

.blog-intro {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.blog-intro h1 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -2.4px;
}

.blog-intro h1 span {
    color: #ff3030;
}

.blog-intro > p {
    margin: 0 auto;
    max-width: 650px;
    color: #9b9b9b;
    font-size: 17px;
    line-height: 1.75;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.blog-card {
    min-height: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid #292929;
    border-radius: 20px;
    background: linear-gradient(145deg, #121212, #0d0d0d);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #3a3a3a;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
}

.blog-card-top,
.blog-card-bottom {
    display: flex;
    align-items: center;
    gap: 9px;
}

.blog-category {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(255,48,48,.28);
    border-radius: 999px;
    color: #ff5b5b;
    background: rgba(255,48,48,.07);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.blog-read-time {
    margin-left: auto;
    color: #686868;
    font-size: 11px;
}

.blog-card h2 {
    margin: 30px 0 13px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.7px;
}

.blog-card p {
    margin: 0;
    color: #999;
    font-size: 15px;
    line-height: 1.75;
}

.blog-card-bottom {
    margin-top: auto;
    padding-top: 28px;
    color: #666;
    font-size: 12px;
}

.blog-placeholder-card {
    background: #0f0f0f;
}

.blog-publish-note {
    margin-top: 20px;
    padding: 24px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid #252525;
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}

.blog-publish-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ff3030;
    background: rgba(255,48,48,.09);
}

.blog-publish-note h2 {
    margin: 1px 0 6px;
    color: #eee;
    font-size: 17px;
}

.blog-publish-note p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .blog-page .blog-shell {
        width: min(100% - 28px, 1080px);
        padding-top: 44px;
    }

    .blog-intro {
        margin-bottom: 28px;
    }

    .blog-intro h1 {
        letter-spacing: -1.5px;
    }

    .blog-intro > p {
        font-size: 15px;
        line-height: 1.65;
    }

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

    .blog-card {
        min-height: 270px;
        padding: 24px;
    }

    .blog-publish-note {
        padding: 20px;
    }
}
/* SEO CONTENT */

.seo-content {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.seo-content h2 {
    font-size: 28px;
    margin-bottom: 18px;
}

.seo-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.85;
}

@media (max-width: 700px) {
    .seo-content {
        margin-top: 45px;
        padding: 0 16px;
    }

    .seo-content h2 {
        font-size: 23px;
    }

    .seo-content p {
        font-size: 15px;
    }
}
/* Blog tool links */
.blog-tool-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.blog-tool-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}
/* Blog tools section */
.blog-tools-section {
    margin-top: 32px;
    padding: 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.blog-tools-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.blog-tools-section > p {
    margin-bottom: 22px;
    opacity: 0.85;
    line-height: 1.7;
}

.blog-tools-section .related-tools {
    margin-top: 0;
}
/* Blog article title links */
.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h2 a:hover {
    text-decoration: underline;
}
/* Blog posts section */
.blog-posts-section {
    margin-top: 30px;
}

.blog-posts-section > h2 {
    margin-bottom: 8px;
}

.blog-section-intro {
    margin-top: 0;
    margin-bottom: 24px;
    opacity: 0.8;
    line-height: 1.6;
}


/* ==========================================
   YTANALYZER DYNAMIC DATA LOADING CARD
========================================== */

.data-loading {
    max-width: 760px;
    margin: 18px auto 34px;
    padding: 30px 24px;
    text-align: center;
    color: #f5f7fb;
    background: linear-gradient(145deg, #141821, #101216);
    border: 1px solid #2b3444;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.data-loading[hidden] {
    display: none !important;
}

.data-loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 17px;
    border: 4px solid #303746;
    border-top-color: #ff3030;
    border-radius: 50%;
    animation: ytaDataSpin 0.8s linear infinite;
}

.data-loading h3 {
    margin: 0 0 9px;
    font-size: 21px;
    color: #fff;
}

.data-loading p {
    margin: 0;
    color: #b5bdca;
    font-size: 14px;
    line-height: 1.65;
}

.data-loading-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    margin: 22px 0 12px;
    border-radius: 999px;
    background: #2a3040;
}

.data-loading-bar {
    width: 34%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff3030, #ff7777);
    animation: ytaDataProgress 1.5s ease-in-out infinite alternate;
}

.data-loading-note {
    font-size: 12px !important;
    color: #8993a4 !important;
}

.data-loading-retry {
    margin-top: 18px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #e92727;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.data-loading-retry:hover {
    background: #c91f1f;
}

/* Keep thumbnails visible while other data loads. */
#results.is-data-loading > .result-section:not(#thumbnailSection) {
    display: none;
}

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

@keyframes ytaDataProgress {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(300%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .data-loading-spinner,
    .data-loading-bar {
        animation: none;
    }

    .data-loading-bar {
        width: 100%;
        opacity: 0.7;
    }
}

@media (max-width: 600px) {
    .data-loading {
        padding: 24px 17px;
        margin: 10px auto 24px;
    }

    .data-loading h3 {
        font-size: 18px;
    }
}