:root {
    --bg: #000;
    --bg-deep: #0d0d0d;
    --bg-soft: #111;
    --bg-card: #111;
    --bg-card-hover: #1a1a1a;
    --border: #222;
    --border-soft: #1a1a1a;
    --text: #fff;
    --text-2: #ccc;
    --text-3: #999;
    --text-4: #888;
    --text-5: #777;
    --text-6: #666;
    --text-7: #555;
    --accent: #e63946;
    --accent-hover: #c1121f;
}

[data-theme="light"] {
    --bg: #f2f2f2;
    --bg-deep: #ffffff;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --border: #e3e3e3;
    --border-soft: #ececec;
    --text: #111111;
    --text-2: #444444;
    --text-3: #666666;
    --text-4: #777777;
    --text-5: #888888;
    --text-6: #999999;
    --text-7: #aaaaaa;
    --accent: #d62839;
    --accent-hover: #c1121f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background .3s, color .3s;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

.top-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 12px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-left { display: flex; align-items: center; }
.top-date { color: var(--text-4); }
.top-countries { display: flex; align-items: center; gap: 6px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--border); }
.top-countries a { color: var(--text-4); font-weight: 700; text-decoration: none; }
.top-countries a:hover { color: var(--accent); }
.top-links a { color: var(--text-4); margin-left: 14px; }
.top-links a:hover { color: var(--text); }

header { background: var(--bg-soft); padding: 14px 0; border-bottom: 3px solid var(--accent); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 34px; font-weight: 700; }
.logo span:first-child { color: var(--text); }
.logo span:last-child { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 15px; }
.updated { color: var(--text-4); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.theme-toggle { background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-4); font-size: 18px; transition: color .2s; }
.theme-toggle:hover { color: var(--accent); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: all .3s; }

.main-nav { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.nav-list li { border-right: 1px solid var(--border); }
.nav-list a { display: block; padding: 11px 16px; color: var(--text-2); font-weight: 500; font-size: 13px; }
.nav-list a:hover, .nav-list a.active { background: var(--accent); color: #fff; }
.nav-list a i { margin-right: 6px; }

.cat-nav { background: var(--bg-deep); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.cat-list { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; }
.cat-list::-webkit-scrollbar { display: none; }
.cat-list li { flex-shrink: 0; }
.cat-list a { display: block; padding: 9px 14px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.cat-list a:hover { color: var(--accent); }
.cat-list a.active { color: var(--accent); font-weight: 700; border-bottom: 2px solid var(--accent); }

.main-wrap { padding: 20px 15px; }

.content-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 15px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; }
.country-head { display: flex; align-items: center; gap: 10px; }
.country-flag { width: 42px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.back-link { color: var(--text-4); font-size: 13px; }
.back-link:hover { color: var(--accent); }
.time-filter { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 6px; padding: 4px; }
.time-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-info { font-size: 12px; color: var(--text-4); white-space: nowrap; }
.time-filter a { padding: 5px 14px; border-radius: 4px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.time-filter a:hover { color: var(--text); }
.time-filter a.active { background: var(--accent); color: #fff; }

.lenta { background: var(--bg-card); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.lenta-title { padding: 10px 14px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.lenta-tags { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.lenta-tags a { background: var(--bg-card-hover); color: var(--text-2); font-size: 12px; padding: 5px 10px; border-radius: 4px; transition: all .25s; }
.lenta-tags a:hover { background: var(--accent); color: #fff; }
.lenta-list { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.lenta-item { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--border-soft); transition: background .2s; }
.lenta-item:last-child { border-bottom: none; }
.lenta-item:hover { background: var(--bg-card-hover); }
.lenta-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--bg-card-hover); }
.lenta-thumb-ph { display: flex; align-items: center; justify-content: center; color: #fff; opacity: .7; }
.lenta-text { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.lenta-item:hover .lenta-text { color: var(--text); }

.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 44px; }
.sidebar .lenta { margin-bottom: 0; }
.banner { width: 100%; background: var(--bg-soft); border: 1px dashed var(--border); border-radius: 8px; height: 250px; display: flex; align-items: center; justify-content: center; color: var(--text-7); font-size: 12px; text-align: center; }
.banner-tall { height: 600px; }
.banner-300 { width: 300px; height: 250px; margin: 0 auto; }
.banner-link { display: block; width: 100%; height: 100%; }
.banner-img { width: 100%; height: 100%; object-fit: contain; background: var(--bg-deep); display: block; }
.story-banners { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.banner-block { margin-top: 26px; }
.banner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.banner-pair .banner-block { margin-top: 0; }
.banner-col .banner { height: auto; border: none; background: var(--bg-deep); }
.banner-col .banner-link { height: auto; }
.banner-col .banner-img { height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.lenta-more { font-size: 11px; color: var(--accent); font-weight: 600; margin-left: auto; }

.cluster-list { display: flex; flex-direction: column; }
.cluster-list.rot-fade { animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cluster {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border-left: 3px solid var(--accent);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.cluster-thumb { position: relative; display: block; width: 170px; height: 115px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg-card-hover); }
.cluster-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.cluster-thumb:hover img { transform: scale(1.03); }
.cluster-thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; opacity: .7; }
.cluster-body { flex: 1; min-width: 0; }
.cluster-title { font-size: 17px; line-height: 1.35; font-weight: 700; margin-bottom: 8px; }
.cluster-title a:hover { color: var(--accent); }
.cluster-desc { color: var(--text-3); font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.share-label { font-size: 13px; font-weight: 500; color: var(--text-3); }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 15px; transition: transform .15s, opacity .15s; text-decoration: none; }
.share-btn:hover { transform: translateY(-2px); opacity: .85; }
.share-fb { background: #1877f2; }
.share-x { background: #000; }
.share-viber { background: #7360f2; }
.share-wa { background: #25d366; }
.cluster-src { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.src-name { font-weight: 700; color: var(--accent); }
.src-time { color: var(--text-5); font-size: 11px; }
.src-date { color: var(--text-7); font-size: 11px; margin-left: auto; }

.cluster-others { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.cluster-others .other-src { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card-hover); color: var(--text-2); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 4px; transition: all .2s; }
.cluster-others .other-src:hover { background: var(--accent); color: #fff; }
.cluster-others .dot { width: 7px; height: 7px; }
.cluster-others .other-more { color: var(--accent); font-weight: 700; }
.cluster-others .other-more:hover { background: var(--accent); color: #fff; }
.cluster-count { font-size: 13px; color: var(--text-2); font-weight: 600; }

.cluster-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; flex-wrap: wrap; }
.cluster-meta a { color: var(--text-4); }
.cluster-meta a:hover { color: var(--accent); }

.cluster-detail { border-left-width: 0; flex-direction: column; }
.detail-title { font-size: 22px; line-height: 1.35; font-weight: 700; margin-bottom: 10px; }
.article-row { display: flex; gap: 14px; border-top: 1px solid var(--border); padding: 12px 0; }
.article-row:first-of-type { border-top: none; }
.article-thumb { position: relative; display: block; width: 130px; height: 90px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg-card-hover); }
.article-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.article-thumb:hover img { transform: scale(1.03); }
.article-body { flex: 1; min-width: 0; }
.row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.article-title { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.article-title a:hover { color: var(--accent); }
.article-desc { color: var(--text-3); font-size: 13px; line-height: 1.5; }

.all-list { display: flex; flex-direction: column; }
.all-item { display: flex; gap: 14px; background: var(--bg-card); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.all-item .article-body { flex: 1; min-width: 0; }
.all-item-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.all-title { font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.all-title a:hover { color: var(--accent); }
.all-desc { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.cat-badge { background: var(--bg-card-hover); color: var(--accent); font-size: 10px; padding: 2px 8px; border-radius: 3px; margin-left: auto; }
.cat-badge:hover { background: var(--accent); color: #fff; }

.calendar { padding: 10px 12px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-nav a { color: var(--accent); font-size: 15px; text-decoration: none; }
.cal-nav a:hover { color: var(--text); }
.cal-nav span { font-size: 13px; color: var(--text); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 10px; color: var(--text-4); padding: 2px 0; }
.cal-day { text-align: center; font-size: 12px; padding: 5px 0; background: var(--bg-card-hover); color: var(--text-2); border-radius: 4px; text-decoration: none; }
.cal-day:hover { background: var(--accent); color: #fff; }
.cal-day-news { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day-sel { outline: 2px solid var(--text); }
.cal-empty { padding: 5px 0; }

.sources-intro { color: var(--text-4); font-size: 13px; margin-bottom: 18px; line-height: 1.6; }
.privacy-body { max-width: 720px; line-height: 1.7; font-size: 14px; }
.privacy-body h2 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.privacy-body p { margin-bottom: 12px; color: var(--text-2); }
.privacy-body a { color: var(--accent); }
.marketing-link { color: var(--accent); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: 6px; padding: 16px; }
.contact-item i { font-size: 20px; color: var(--accent); margin-top: 2px; }
.contact-body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.contact-label { font-size: 11px; text-transform: uppercase; color: var(--text-4); letter-spacing: .5px; }
.contact-body a { color: var(--text); }
.contact-body a:hover { color: var(--accent); }
.contact-body span { color: var(--text-2); }
.contact-btn { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; padding: 6px 12px; background: var(--accent); color: #fff !important; font-size: 13px; font-weight: 500; border-radius: 5px; transition: background .2s; }
.contact-btn:hover { background: var(--accent-hover); }
.sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.source-card { background: var(--bg-card); border-left: 4px solid var(--accent); border-radius: 6px; padding: 14px; transition: all .25s; }
.source-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.source-card-top { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.source-card-stats { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-4); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; border-radius: 6px; transition: all .2s; }
.pagination a:hover { border-color: var(--accent); color: var(--text); }
.pagination a.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

.src-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.src-col { background: var(--bg-card); border-radius: 8px; overflow: hidden; }
.src-col-list { padding: 8px 14px; display: flex; flex-direction: column; }
.src-col-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border-soft); }
.src-col-item:last-child { border-bottom: none; }
.src-col-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.src-col-title { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.src-col-item:hover .src-col-title { color: var(--accent); }
.src-col-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 10px 14px; }
.src-col-sub-title { font-size: 12px; font-weight: 700; color: var(--accent); padding: 4px 0 6px; border-bottom: 2px solid var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.src-col-sub .src-col-item { padding-left: 0; padding-right: 0; }
.src-col-sub .lenta-thumb { width: 56px; height: 44px; }

.cat-grid { margin-top: 30px; }

.notice { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-3); border-radius: 8px; padding: 20px; text-align: center; }
.notice code { color: var(--accent); }

footer { background: var(--bg-soft); border-top: 3px solid var(--accent); margin-top: 30px; }
.brand-mk { color: var(--accent); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 25px; padding: 30px 15px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.footer-col p { font-size: 12px; color: var(--text-5); line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 12px; color: var(--text-3); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 12px 0; text-align: center; font-size: 12px; color: var(--text-6); }

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .src-cols { grid-template-columns: 1fr; }
    .banner-pair { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    header { position: sticky; top: 0; z-index: 100; padding: 10px 0; background: var(--bg-deep); }
    .cat-nav { top: 52px; }
    .logo { font-size: 24px; }
    .updated { display: none; }
    .hamburger { display: block; }
    .main-nav { position: fixed; top: 0; left: 0; height: 100%; width: 260px; transform: translateX(-100%); transition: transform .3s; z-index: 200; background: var(--bg-soft); overflow-y: auto; box-shadow: 4px 0 24px rgba(0,0,0,.6); }
    .main-nav.open { transform: translateX(0); }
    .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 150; }
    .nav-backdrop.show { display: block; }
    body.nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; }
    .nav-list li { border-right: none; border-bottom: 1px solid var(--border); }
    .nav-list a { padding: 14px 20px; font-size: 15px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .cluster-title { font-size: 15px; }
    .cluster-desc { font-size: 12px; }
    .cluster-thumb { width: 110px; height: 80px; }
    .article-thumb { width: 100px; height: 70px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .main-wrap { padding: 14px 12px; }
    .page-title { font-size: 19px; }
    .content-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .time-filter { max-width: 100%; overflow-x: auto; }
    .time-filter a { padding: 8px 14px; white-space: nowrap; }
    .lenta-thumb { width: 56px; height: 46px; }
    .lenta-text { font-size: 12px; }
    .lenta-item { gap: 8px; }
    .cluster { gap: 10px; padding: 12px 12px; }
    .cluster-thumb { width: 92px; height: 70px; }
    .cluster-title { font-size: 14px; margin-bottom: 5px; }
    .cluster-desc { display: none; }
    .cluster-src { flex-wrap: wrap; }
    .article-thumb { width: 84px; height: 62px; }
    .article-title { font-size: 14px; }
    .article-desc { display: none; }
    .article-row { gap: 10px; padding: 10px 0; }
    .all-item { padding: 12px 12px; }
    .all-item .article-thumb { width: 84px; height: 62px; }
    .all-desc { display: none; }
    .all-title { font-size: 14px; }
    .src-cols { gap: 12px; }
    .banner { height: 180px; }
    .banner-tall { height: 300px; }
    .footer-inner { grid-template-columns: 1fr; gap: 18px; padding: 24px 12px; }
    .pagination a { min-width: 40px; height: 40px; }
    .source-card { padding: 12px; }
    .sources-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
