.source-shell{
    width:100%;
    max-width:980px;
    margin:0 auto;
    padding:28px 20px 48px;
}

/* --- TOPBAR --- */

.source-topbar{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

/* --- CARD --- */

.source-article-card,
.source-fallback-card{
    width:100%;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:22px;
    overflow:hidden;
    box-shadow:var(--shadow);
}

/* --- HERO --- */

.source-hero-wrap{
    width:100%;
    background:#dde4ee;
    border-bottom:1px solid var(--line);
}

.source-hero-image{
    display:block;
    width:100%;
    aspect-ratio:16 / 8;
    object-fit:cover;
}

/* --- BODY --- */

.source-article-body{
    padding:30px;
}

.source-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
    font-size:.78rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--accent-2);
}

.source-title{
    margin:0 0 16px;
    font-size:clamp(1.45rem, 5vw, 2.1rem);
    line-height:1.08;
    letter-spacing:-.04em;
    font-weight:800;
    overflow-wrap:anywhere;
}

.source-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:26px;
    padding-bottom:18px;
    border-bottom:1px solid var(--line);
    color:var(--muted);
    font-size:.9rem;
}

.source-content{
    font-size:1.05rem;
    line-height:1.8;
    overflow-wrap:anywhere;
}

.source-content p{
    margin:0 0 1.2em;
}

.source-content img,
.source-content video,
.source-content iframe{
    max-width:100%;
    height:auto;
}

/* --- ACTIONS --- */

.source-bottom-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:26px;
    padding-top:16px;
    border-top:1px solid var(--line);
}

/* --- FALLBACK --- */

.source-fallback-card{
    padding:34px 28px;
    text-align:center;
}

.source-fallback-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
    padding:8px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--surface-soft);
    color:var(--muted);
    font-size:.8rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.source-fallback-title{
    margin:0 0 12px;
    font-size:clamp(1.4rem, 5vw, 1.9rem);
    line-height:1.08;
}

.source-fallback-text{
    max-width:600px;
    margin:0 auto 12px;
    color:var(--muted);
    font-size:.95rem;
    line-height:1.65;
}

.source-fallback-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

/* --- LANGUAGE DROPDOWN (FIXED) --- */

.source-lang-form{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:auto;
}

.source-lang-form select{
    height:34px;
    padding:0 30px 0 10px;
    border:1px solid var(--line-strong);
    border-radius:999px;
    background:
        var(--surface)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 10px center;
    font-size:.8rem;
    font-weight:600;
    cursor:pointer;
    appearance:none;
    flex:0 0 auto;
    width:auto;
    min-width:64px;
}

.source-lang-form button{
    height:34px;
    padding:0 12px;
    font-size:.8rem;
}

/* --- BUTTON FIX (NO MOBILE STRETCH) --- */

.source-topbar .btn,
.source-bottom-actions .btn,
.source-fallback-actions .btn{
    flex:0 0 auto;
    width:auto;
}

/* --- TABLET --- */

@media (max-width:860px){
    .source-shell{
        padding:22px 16px 40px;
    }

    .source-article-body,
    .source-fallback-card{
        padding:22px 18px;
    }

    .source-hero-image{
        aspect-ratio:16 / 9;
    }
}

/* --- MOBILE --- */

@media (max-width:640px){
    .source-shell{
        padding:14px 10px 30px;
    }

    .source-article-card,
    .source-fallback-card{
        border-radius:16px;
    }

    .source-topbar,
    .source-bottom-actions,
    .source-fallback-actions{
        flex-direction:row;
        gap:8px;
        align-items:center;
        flex-wrap:wrap;
    }

    .source-topbar .btn,
    .source-bottom-actions .btn,
    .source-fallback-actions .btn{
        padding:8px 12px;
        font-size:.8rem;
    }

    .source-lang-form{
        width:auto;
    }

    .source-lang-form select{
        width:auto;
        min-width:60px;
    }

    .source-article-body,
    .source-fallback-card{
        padding:18px 14px;
    }

    .source-content{
        font-size:.95rem;
        line-height:1.7;
    }
}

/* --- SMALL DEVICES --- */

@media (max-width:420px){
    .source-title{
        letter-spacing:-.02em;
    }

    .source-content{
        font-size:.93rem;
    }
}

@media (max-width:640px){
    .source-topbar{
        display:grid;
        grid-template-columns:repeat(4, minmax(0, 1fr));
        gap:8px;
    }

    .source-topbar .btn,
    .source-topbar .source-lang-form{
        width:100%;
        min-width:0;
    }

    .source-topbar .btn{
        padding:8px 4px;
        font-size:.72rem;
        white-space:nowrap;
    }

    .source-topbar .source-lang-form select{
        width:100%;
        min-width:0;
        height:34px;
        padding-left:8px;
        padding-right:24px;
        font-size:.72rem;
    }
}