:root {
    --brand-blue: #075ef5;
    --brand-blue-dark: #07338e;
    --brand-red: #ed111b;
    --green: #16bd7a;
    --page-bg: #f3f7fc;
    --ink: #142239;
    --muted: #63738a;
    --line: #dce5f1;
    --white: #ffffff;

    --accent: #075ef5;
    --accent-2: #ed111b;
    --accent-soft: rgba(7, 94, 245, 0.15);
    --accent-gradient:
        linear-gradient(
            135deg,
            #075ef5,
            #0a48c9 60%,
            #ed111b
        );

    --shadow:
        0 28px 80px rgba(1, 15, 44, 0.3);

    --card-shadow:
        0 16px 48px rgba(5, 29, 70, 0.1);
}

body[data-platform="youtube"] {
    --accent: #ff0033;
    --accent-2: #b30022;
    --accent-soft: rgba(255, 0, 51, 0.14);
    --accent-gradient:
        linear-gradient(135deg, #ff0033, #b30022);
}

body[data-platform="facebook"] {
    --accent: #1877f2;
    --accent-2: #0754b8;
    --accent-soft: rgba(24, 119, 242, 0.15);
    --accent-gradient:
        linear-gradient(135deg, #1877f2, #0754b8);
}

body[data-platform="tiktok"] {
    --accent: #00d5e7;
    --accent-2: #ff315b;
    --accent-soft: rgba(0, 213, 231, 0.15);
    --accent-gradient:
        linear-gradient(
            135deg,
            #00d5e7,
            #101217 50%,
            #ff315b
        );
}

body[data-platform="instagram"] {
    --accent: #e1306c;
    --accent-2: #833ab4;
    --accent-soft: rgba(225, 48, 108, 0.15);
    --accent-gradient:
        linear-gradient(
            135deg,
            #feda75,
            #fa7e1e 24%,
            #d62976 52%,
            #962fbf 76%,
            #4f5bd5
        );
}

body[data-platform="x"] {
    --accent: #17191d;
    --accent-2: #545d6c;
    --accent-soft: rgba(23, 25, 29, 0.15);
    --accent-gradient:
        linear-gradient(135deg, #050505, #545d6c);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 320px;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--page-bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: grid;
    grid-template-columns:
        minmax(220px, 320px)
        1fr
        auto;
    align-items: center;
    gap: 32px;
    width: 100%;
    min-height: 82px;
    padding:
        10px
        clamp(18px, 4vw, 78px);
    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
    background:
        rgba(5, 18, 43, 0.94);
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(18px);
}

.brand {
    display: block;
    width: clamp(220px, 22vw, 320px);
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.16);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 2vw, 31px);
    color: #d3deef;
    font-size: 0.85rem;
    font-weight: 800;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #ffffff;
}

.service-badge,
.secure-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    padding: 7px 12px;
    border:
        1px solid rgba(22, 189, 122, 0.32);
    border-radius: 999px;
    background:
        rgba(22, 189, 122, 0.12);
    color: #baffdf;
    font-size: 0.75rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow:
        0 0 0 5px rgba(22, 189, 122, 0.13);
}

.service-badge.offline {
    border-color:
        rgba(237, 17, 27, 0.34);
    background:
        rgba(237, 17, 27, 0.11);
    color: #ffd5d8;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding:
        clamp(55px, 8vh, 105px)
        clamp(18px, 4.5vw, 88px)
        clamp(75px, 10vh, 130px);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(7, 94, 245, 0.32),
            transparent 34rem
        ),
        radial-gradient(
            circle at 93% 23%,
            var(--accent-soft),
            transparent 31rem
        ),
        linear-gradient(
            135deg,
            #071b3e,
            #030b1c 58%,
            #111021
        );
}

.hero-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(560px, 1.08fr);
    align-items: center;
    gap: clamp(48px, 6vw, 110px);
    width: 100%;
    min-height:
        calc(100vh - 230px);
}

.hero-copy {
    min-width: 0;
}

.eyebrow,
.card-kicker,
.section-kicker {
    color: #83b8ff;
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 18px 0 22px;
    font-size:
        clamp(3rem, 5vw, 6.25rem);
    line-height: 0.99;
    letter-spacing: -0.058em;
}

.hero-copy > p {
    max-width: 700px;
    margin: 0;
    color: #b9c8de;
    font-size:
        clamp(1rem, 1.35vw, 1.17rem);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.trust-row span {
    padding: 8px 11px;
    border:
        1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.045);
    color: #dbe6f8;
    font-size: 0.76rem;
    font-weight: 800;
}

.downloader-card {
    width: 100%;
    min-width: 0;
    padding:
        clamp(23px, 3vw, 39px);
    border:
        1px solid rgba(132, 177, 244, 0.22);
    border-radius: 27px;
    background:
        linear-gradient(
            145deg,
            rgba(21, 51, 98, 0.97),
            rgba(7, 24, 54, 0.97)
        );
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.card-header h2 {
    margin: 6px 0 0;
    font-size:
        clamp(1.6rem, 2.7vw, 2.3rem);
    line-height: 1.15;
}

.platform-selector {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 27px 0 18px;
}

.platform-option {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 79px;
    padding: 10px 4px;
    border:
        1px solid rgba(148, 179, 235, 0.18);
    border-radius: 13px;
    background:
        rgba(3, 12, 29, 0.48);
    color: #c6d4e9;
    font-size: 0.67rem;
    font-weight: 850;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.platform-option:hover {
    transform: translateY(-2px);
    border-color:
        rgba(255, 255, 255, 0.33);
    color: #ffffff;
}

.platform-option.active {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow:
        0 10px 26px var(--accent-soft);
}

.platform-icon,
.large-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 950;
}

.platform-icon {
    width: 34px;
    height: 34px;
    font-size: 0.87rem;
}

.large-icon {
    width: 55px;
    height: 55px;
    font-size: 1.35rem;
}

.icon-all {
    background:
        linear-gradient(
            135deg,
            var(--brand-blue),
            var(--brand-red)
        );
    font-size: 0.59rem;
}

.icon-youtube {
    background: #ff0033;
}

.icon-facebook {
    background: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 1.5rem;
}

.icon-tiktok {
    background:
        linear-gradient(
            135deg,
            #00d5e7,
            #111318 48%,
            #ff315b
        );
}

.icon-instagram {
    background:
        linear-gradient(
            135deg,
            #feda75,
            #fa7e1e 24%,
            #d62976 53%,
            #962fbf 76%,
            #4f5bd5
        );
}

.icon-x {
    background: #111111;
}

.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 20px;
    padding: 5px;
    border:
        1px solid rgba(148, 179, 235, 0.2);
    border-radius: 14px;
    background:
        rgba(3, 11, 25, 0.51);
}

.mode-button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #bdcce2;
    font-weight: 900;
}

.mode-button.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow:
        0 9px 24px var(--accent-soft);
}

label {
    display: block;
    margin-bottom: 8px;
    color: #dae7fa;
    font-size: 0.81rem;
    font-weight: 850;
}

.url-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-width: 0;
}

input[type="url"],
select {
    width: 100%;
    min-width: 0;
    min-height: 53px;
    border:
        1px solid rgba(148, 179, 235, 0.24);
    border-radius: 13px;
    outline: 0;
    background:
        rgba(2, 10, 25, 0.63);
    color: #ffffff;
}

input[type="url"] {
    padding: 0 17px;
}

select {
    padding: 0 14px;
}

input[type="url"]::placeholder {
    color: #7f94b5;
}

input[type="url"]:focus,
select:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 4px var(--accent-soft);
}

.primary-button {
    min-width: 151px;
    min-height: 53px;
    border: 0;
    border-radius: 13px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 950;
    box-shadow:
        0 13px 30px var(--accent-soft);
}

.primary-button:hover {
    filter: brightness(1.08);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 17px;
}

.rights-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: #b9c8de;
    font-size: 0.77rem;
    font-weight: 650;
}

.rights-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.playlist-note {
    margin-top: 15px;
    padding: 13px 15px;
    border:
        1px solid rgba(126, 180, 255, 0.24);
    border-radius: 12px;
    background:
        rgba(56, 140, 255, 0.08);
    color: #d3e7ff;
    font-size: 0.79rem;
}

.form-message {
    min-height: 22px;
    margin-top: 13px;
    color: #a8d7ff;
    font-size: 0.81rem;
    font-weight: 750;
}

.form-message.error {
    color: #ffabb1;
}

.form-message.success {
    color: #74eeb7;
}

.platforms-section,
.how-section,
.plans-section,
.faq-section {
    width: 100%;
    padding:
        clamp(70px, 8vw, 120px)
        clamp(18px, 5vw, 100px);
}

.platforms-section {
    background:
        linear-gradient(
            135deg,
            #e9fff7,
            #e9f6ff
        );
}

.how-section {
    background: #f4f7fc;
}

.plans-section {
    background:
        linear-gradient(
            135deg,
            #071b3d,
            #040c1d
        );
    color: #ffffff;
}

.faq-section {
    background: #ffffff;
}

.section-heading {
    width: min(760px, 100%);
    margin:
        0
        auto
        38px;
    text-align: center;
}

.section-heading h2 {
    margin: 9px 0 12px;
    font-size:
        clamp(2.05rem, 4vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.light-heading h2 {
    color: #ffffff;
}

.platform-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.platform-card {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    min-height: 124px;
    padding: 21px;
    border:
        1px solid rgba(13, 51, 94, 0.09);
    border-radius: 19px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    box-shadow: var(--card-shadow);
    transition:
        transform 170ms ease,
        border-color 170ms ease,
        box-shadow 170ms ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow:
        0 22px 55px rgba(4, 19, 49, 0.14);
}

.platform-card-copy {
    min-width: 0;
}

.platform-card-copy strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.03rem;
}

.platform-card-copy small {
    display: block;
    color: var(--muted);
    line-height: 1.43;
}

.arrow {
    color: #14b86e;
    font-size: 1.55rem;
    font-weight: 950;
}

.steps-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: min(1240px, 100%);
    margin: 0 auto;
}

.step-card {
    position: relative;
    min-width: 0;
    padding: 27px;
    border:
        1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
}

.step-number {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #bcc9da;
    font-size: 0.77rem;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.step-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 164px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #e4f4ff,
            #eefaff
        );
}

.visual-window {
    width: 70%;
    height: 91px;
    border:
        3px solid rgba(7, 94, 245, 0.24);
    border-radius: 13px;
    background: #ffffff;
}

.visual-play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
}

.visual-action {
    position: absolute;
    right: 20%;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #14b86e;
    color: #ffffff;
}

.visual-url {
    width: 78%;
    padding: 14px;
    overflow: hidden;
    border:
        3px solid #14b86e;
    border-radius: 11px;
    background: #ffffff;
    color: #667589;
    white-space: nowrap;
}

.visual-quality {
    padding: 13px 17px;
    border-radius: 10px;
    background: #ffffff;
    font-weight: 900;
    box-shadow:
        0 10px 24px rgba(4, 19, 49, 0.12);
}

.visual-download {
    position: absolute;
    right: 19%;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #14b86e;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 950;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 1.23rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
}

.plan-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: min(980px, 100%);
    margin: 0 auto;
}

.plan-card {
    min-width: 0;
    padding: 31px;
    border:
        1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background:
        rgba(255, 255, 255, 0.055);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.22);
}

.plan-card.featured {
    border-color:
        rgba(237, 17, 27, 0.48);
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(237, 17, 27, 0.18),
            transparent 22rem
        ),
        rgba(255, 255, 255, 0.06);
}

.plan-label {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background:
        rgba(7, 94, 245, 0.18);
    color: #aed0ff;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.plan-card.featured .plan-label {
    background:
        rgba(237, 17, 27, 0.18);
    color: #ffc1c5;
}

.plan-card h3 {
    margin: 20px 0 8px;
    font-size: 1.43rem;
}

.plan-card p,
.plan-card li {
    color: #b9c8de;
}

.plan-card ul {
    margin: 21px 0 0;
    padding-left: 21px;
}

.plan-card li + li {
    margin-top: 8px;
}

.faq-list {
    width: min(960px, 100%);
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
    border-bottom:
        1px solid var(--line);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 21px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font-size: 1.01rem;
    font-weight: 900;
}

.faq-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.2rem;
}

.faq-answer {
    padding:
        0
        48px
        22px
        0;
    color: var(--muted);
}

.legal-note {
    width: calc(100% - 36px);
    max-width: 1180px;
    margin:
        0
        auto
        66px;
    padding: 19px 22px;
    border:
        1px solid rgba(237, 17, 27, 0.22);
    border-radius: 15px;
    background:
        rgba(237, 17, 27, 0.06);
    color: #53637a;
    font-size: 0.87rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding:
        24px
        clamp(18px, 5vw, 100px);
    border-top:
        1px solid var(--line);
    background: #ffffff;
    color: #718097;
    font-size: 0.8rem;
}

@media (min-width: 1700px) {
    .site-header,
    .hero {
        padding-left:
            clamp(70px, 6vw, 140px);
        padding-right:
            clamp(70px, 6vw, 140px);
    }

    .hero-inner {
        grid-template-columns:
            minmax(650px, 1fr)
            minmax(710px, 1fr);
    }

    .hero h1 {
        max-width: 950px;
        font-size:
            clamp(5rem, 5.3vw, 7.6rem);
    }
}

@media (max-width: 1240px) {
    .site-header {
        grid-template-columns:
            minmax(220px, 320px)
            1fr;
    }

    .main-nav {
        display: none;
    }

    .service-badge {
        justify-self: end;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        max-width: 930px;
    }

    .platform-selector {
        grid-template-columns:
            repeat(6, minmax(88px, 1fr));
        overflow-x: auto;
        padding-bottom: 5px;
    }
}

@media (max-width: 920px) {
    .platform-grid,
    .steps-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .step-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: relative;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
        padding: 11px 12px;
    }

    .brand {
        width: min(100%, 285px);
    }

    .service-badge {
        justify-self: start;
    }

    .hero {
        padding:
            43px
            12px
            64px;
    }

    .hero h1 {
        font-size:
            clamp(2.45rem, 12vw, 4.25rem);
    }

    .downloader-card {
        padding: 20px;
        border-radius: 21px;
    }

    .card-header {
        display: grid;
    }

    .secure-chip {
        justify-self: start;
    }

    .platform-selector {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .url-row,
    .option-grid,
    .platform-grid,
    .steps-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .step-card:last-child {
        grid-column: auto;
    }

    .primary-button {
        width: 100%;
    }

    .platforms-section,
    .how-section,
    .plans-section,
    .faq-section {
        padding:
            58px
            12px;
    }

    .site-footer {
        flex-direction: column;
        gap: 5px;
        padding: 23px 12px;
    }

    .legal-note {
        width: calc(100% - 24px);
    }
}

@media (max-width: 430px) {
    .brand {
        width: min(100%, 260px);
    }

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

    .mode-switch {
        grid-template-columns: 1fr;
    }

    .platform-card {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .arrow {
        display: none;
    }
}

/* CMG-PHASE-4B-B-R2-RESULT-CARD-BEGIN */

.analysis-result {
    margin-top: 24px;
    padding: clamp(18px, 2.5vw, 28px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 21px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(240, 247, 255, 0.98)
        );
    color: var(--ink);
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.2);
}

.analysis-result[hidden],
.playlist-result[hidden],
.result-thumbnail-frame img[hidden] {
    display: none;
}

.analysis-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 21px;
}

.result-kicker {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.analysis-result-header h3 {
    margin: 5px 0 3px;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.2;
}

.analysis-result-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.result-platform-badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.analysis-result-grid {
    display: grid;
    grid-template-columns:
        minmax(230px, 0.78fr)
        minmax(0, 1.22fr);
    gap: 22px;
    align-items: start;
}

.result-thumbnail-column,
.result-information-column {
    min-width: 0;
}

.result-thumbnail-frame {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
        linear-gradient(
            135deg,
            #dceaff,
            #edf5ff
        );
}

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

.result-thumbnail-fallback {
    padding: 24px;
    color: var(--muted);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
}

.thumbnail-information {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 0.76rem;
}

.thumbnail-information strong {
    color: var(--ink);
}

.thumbnail-download-preview {
    width: 100%;
    min-height: 42px;
    margin-top: 12px;
    border: 1px solid rgba(7, 94, 245, 0.18);
    border-radius: 11px;
    background: rgba(7, 94, 245, 0.08);
    color: #62728a;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: not-allowed;
}

.result-meta-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.result-meta-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.result-meta-item span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
}

.result-meta-item strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-format-group {
    margin-top: 16px;
}

.result-format-group h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 0.79rem;
}

.result-format-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.result-format-chip {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 10px;
    border: 1px solid rgba(7, 94, 245, 0.14);
    border-radius: 999px;
    background: rgba(7, 94, 245, 0.07);
    color: #345174;
    font-size: 0.7rem;
    font-weight: 850;
}

.result-format-chip.empty {
    border-style: dashed;
    background: transparent;
    color: var(--muted);
}

.playlist-result {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.playlist-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.playlist-result-heading span {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
}

.playlist-result-heading strong {
    display: block;
    margin-top: 2px;
    font-size: 0.89rem;
}

#result-playlist-count {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

.playlist-entry-list {
    display: grid;
    gap: 6px;
    max-height: 230px;
    overflow-y: auto;
}

.playlist-entry-item {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 9px;
    background: #f5f8fc;
}

.playlist-entry-position {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 950;
}

.playlist-entry-title {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-entry-duration {
    color: var(--muted);
    font-size: 0.69rem;
}

.analysis-only-notice {
    margin-top: 17px;
    padding: 11px 13px;
    border: 1px solid rgba(22, 189, 122, 0.18);
    border-radius: 11px;
    background: rgba(22, 189, 122, 0.07);
    color: #38715c;
    font-size: 0.72rem;
    font-weight: 750;
}

@media (max-width: 900px) {
    .analysis-result-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .analysis-result-header {
        display: grid;
    }

    .result-platform-badge {
        justify-self: start;
    }

    .result-meta-grid {
        grid-template-columns: 1fr;
    }

    .playlist-entry-item {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .playlist-entry-duration {
        display: none;
    }
}

/* CMG-PHASE-4B-B-R2-RESULT-CARD-END */
