*{
    box-sizing:border-box;
}

:root{
    --bg:#f3f5f8;
    --surface:#ffffff;
    --surface-soft:#f8fafc;
    --line:#d9e0e8;
    --line-strong:#c7d0db;
    --text:#0f172a;
    --muted:#5b6472;
    --accent:#0f172a;
    --accent-2:#1d4ed8;
    --ok:#16a34a;
    --bad:#dc2626;
    --shadow:0 18px 50px rgba(15,23,42,0.08);
    --radius:18px;
    --radius-sm:12px;
    --max:1360px;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    background:linear-gradient(to bottom, #eef2f7 0%, #f7f9fc 220px, var(--bg) 100%);
    color:var(--text);
}

img{
    display:block;
    width:100%;
    height:auto;
    object-fit:cover;
}

a{
    color:inherit;
    text-decoration:none;
}

a:hover{
    text-decoration:none;
}

.page-shell{
    max-width:var(--max);
    margin:0 auto;
    padding:28px 24px 48px;
}

.hero-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.8fr) minmax(320px, 0.9fr);
    gap:24px;
    margin-bottom:28px;
}

.hero-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:calc(var(--radius) + 6px);
    overflow:hidden;
    box-shadow:var(--shadow);
}

.hero-media-link{
    display:block;
}

.hero-media{
    aspect-ratio:16 / 8.2;
    background:#dde4ee;
}

.hero-content{
    padding:24px;
}



.hero-title{
    margin:0 0 14px;
    font-size:2rem;
    line-height:1.08;
    letter-spacing:-0.04em;
    font-weight:800;
}

.hero-title a:hover,
.news-row-title a:hover,
.mini-title a:hover{
    color:var(--accent-2);
}

.meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px 14px;
    color:var(--muted);
    font-size:0.84rem;
    line-height:1.4;
}

.meta span,
.meta a{
    line-height:inherit;
}

.meta span:first-child{
    
    letter-spacing:0.04em;
}

.meta a{
    color:inherit;
    text-decoration:underline;
    text-decoration-color:rgba(15,23,42,0.2);
    text-underline-offset:2px;
}

.video-tag{
    display:inline;
    padding:0;
    border:none;
    border-radius:0;
    background:none;
    color:var(--accent-2);
    font-size:inherit;
    font-weight:400;
    line-height:inherit;
    text-transform:uppercase;
    letter-spacing:.04em;
    vertical-align:baseline;
}

.hero-actions,
.item-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:96px;
    padding:11px 16px;
    border-radius:999px;
    border:1px solid transparent;
    font-size:0.92rem;
    font-weight:700;
    transition:all .2s ease;
}

.btn-dark{
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
}

.btn-dark:hover{
    background:#1e293b;
    border-color:#1e293b;
}

.btn-light{
    background:var(--surface);
    color:var(--text);
    border-color:var(--line-strong);
}

.btn-light:hover{
    background:var(--surface-soft);
}

.btn-large{
    min-width:160px;
    padding:13px 20px;
}

.side-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.section-head h2{
    margin:0;
    font-size:1rem;
    line-height:1.2;
    font-weight:800;
    letter-spacing:-0.02em;
}

.mini-card{
    display:grid;
    grid-template-columns:110px 1fr;
    gap:14px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:14px;
}

.mini-thumb-wrap{
    display:block;
}

.mini-thumb{
    height:82px;
    border-radius:10px;
    background:#dde4ee;
}

.mini-body{
    min-width:0;
}

.mini-title{
    margin:0 0 8px;
    font-size:1rem;
    line-height:1.3;
    font-weight:750;
}

.content-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.6fr) 330px;
    gap:24px;
    align-items:start;
}

.content-main,
.content-side{
    min-width:0;
}

.news-row{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:18px;
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:16px;
    margin-bottom:16px;
    box-shadow:0 10px 30px rgba(15,23,42,0.04);
    opacity:1;
    transform:translateY(0);
    transition:opacity .2s ease, transform .2s ease;
}

.news-row.new{
    opacity:0;
    transform:translateY(8px);
}

.news-row-media{
    display:block;
}

.news-row-media img{
    width:100%;
    height:auto;
    display:block;
    aspect-ratio:16 / 9;
    object-fit:cover;
    border-radius:12px;
    background:#dde4ee;
}

.news-row-content{
    min-width:0;
}

.news-row-title{
    margin:0 0 10px;
    font-size:1.28rem;
    line-height:1.2;
    letter-spacing:-0.025em;
    font-weight:780;
}

.sidebar-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:18px;
    margin-bottom:16px;
    box-shadow:0 10px 30px rgba(15,23,42,0.04);
}

.sidebar-text{
    margin:0;
    color:var(--muted);
    line-height:1.65;
    font-size:0.94rem;
}

.sidebar-list{
    list-style:none;
    margin:0;
    padding:0;
}

.sidebar-list li + li{
    border-top:1px solid var(--line);
}

.sidebar-list a{
    display:block;
    padding:12px 0;
    font-weight:650;
}

.sidebar-list a:hover{
    color:var(--accent-2);
}

.load-more-wrap{
    display:flex;
    justify-content:center;
    padding-top:8px;
    margin-top:24px;
}

.news-row.no-image{
    grid-template-columns:1fr;
    padding:20px 22px;
}

.news-row.no-image .news-row-title{
    font-size:1.42rem;
}

.news-row.has-image{
    grid-template-columns:250px 1fr;
}

.mini-card.no-image{
    grid-template-columns:1fr;
}

.hero-card.no-image .hero-content{
    padding:34px;
}

.hero-card.no-image .hero-title{
    font-size:2.35rem;
}

#articleList{
    display:flex;
    flex-direction:column;
    gap:6px;
}

#loadMoreBtn{
    cursor:pointer;
}

#loadMoreBtn:disabled{
    opacity:0.6;
    cursor:default;
}

@media (max-width:1180px){
    .hero-grid,
    .content-grid{
        grid-template-columns:1fr;
    }

    .content-side{
        display:grid;
        grid-template-columns:repeat(3, 1fr);
        gap:16px;
    }

    .sidebar-card{
        margin-bottom:0;
    }
}

@media (max-width:860px){
    .hero-title{
        font-size:1.55rem;
    }

    .news-row,
    .news-row.has-image{
        grid-template-columns:1fr;
    }

    .news-row-media img{
        height:auto;
    }

    .content-side{
        grid-template-columns:1fr;
    }
}

@media (max-width:640px){
    .page-shell{
        padding:18px 14px 36px;
    }

    .hero-content{
        padding:18px;
    }

    .mini-card{
        grid-template-columns:92px 1fr;
        padding:12px;
    }

    .mini-thumb{
        height:72px;
    }

    .news-row{
        padding:12px;
    }

    .news-row-title{
        font-size:1.08rem;
    }

    .hero-actions,
    .item-actions{
        width:100%;
    }

    .hero-actions .btn,
    .item-actions .btn{
        flex:1 1 140px;
    }
}

@media (min-width:861px){
    .hero-card.has-image{
        display:flex;
        flex-direction:column;
    }

    .hero-card.has-image .hero-content{
        order:1;
    }

    .hero-card.has-image .hero-media-link{
        order:2;
    }
}