:root { --max-w: 840px; --accent: #0056b3; --accent-hover: #003d82; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; max-width: var(--max-w); margin: 30px auto; padding: 0 15px; color: #222; }
h1 { font-size: 2em; margin-bottom: 20px; }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px 20px; margin-bottom: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-label { font-size: 0.82em; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.4em; font-weight: 700; color: var(--accent); }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.item { display: flex; gap: 20px; border-bottom: 1px solid #eee; padding-bottom: 20px; align-items: flex-start; }
.item-img-wrap { flex-shrink: 0; width: 170px; height: 110px; overflow: hidden; border-radius: 6px; background: #eee; }
.item-img { width: 100%; height: 100%; object-fit: cover; }
.item-content h2 { margin: 0 0 6px 0; font-size: 1.22em; line-height: 1.35; }
.item-content h2 a { text-decoration: none; color: #1a1a1a; }
.item-content h2 a:hover { color: var(--accent); }
.item-content p { margin: 0 0 8px 0; color: #555; font-size: 0.95em; line-height: 1.45; }
.item-content time { font-size: 0.85em; color: #888; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 40px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; font-size: 0.95em; }
.pagination a:hover { background: #f1f3f5; border-color: #ccc; }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: bold; }
.pagination .dots { border: none; padding: 8px 6px; color: #999; }
@media (max-width: 600px) {
    .item { flex-direction: column; }
    .item-img-wrap { width: 100%; height: 190px; }
}
:root { --max-w: 820px; --text-color: #222; --accent: #0056b3; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.7; color: var(--text-color); max-width: var(--max-w); margin: 30px auto; padding: 0 15px; }
img { max-width: 100%; height: auto; border-radius: 6px; }
.breadcrumbs { font-size: 0.85em; color: #666; margin-bottom: 20px; }
.breadcrumbs a { color: var(--accent); text-decoration: none; }
.article-header { margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
h1 { font-size: 2.1em; line-height: 1.25; margin: 10px 0; color: #111; }
.meta-info { font-size: 0.9em; color: #777; }
.main-figure { margin: 25px 0; }
.article-content { font-size: 1.08em; }
.article-content h2 { font-size: 1.55em; line-height: 1.3; margin-top: 1.6em; margin-bottom: 0.6em; color: #111; border-left: 4px solid var(--accent); padding-left: 12px; }
.article-content h3, h4, h5, h6 { font-size: 1.3em; line-height: 1.35; margin-top: 1.4em; margin-bottom: 0.5em; color: #222; }
.article-content h4 { font-size: 1.15em; margin-top: 1.2em; margin-bottom: 0.4em; color: #333; }
.article-content p { margin: 1em 0; }
.article-content ul, .article-content ol { margin: 1em 0 1em 1.5em; padding: 0; }
.article-content li { margin-bottom: 0.5em; }
.article-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.reactions-bar { display: flex; align-items: center; gap: 12px; margin: 30px 0 20px 0; padding: 15px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.react-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #ddd; background: #fff; border-radius: 20px; font-size: 0.9em; cursor: pointer; transition: 0.2s; user-select: none; }
.react-btn:hover { background: #f4f6f8; }
.react-btn.voted { border-color: var(--accent); color: var(--accent); font-weight: bold; background: #f0f7ff; }
.comments-box { margin-top: 35px; }
.comments-title { font-size: 1.3em; margin-bottom: 20px; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.comment-item { background: #fcfcfc; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.comment-header { display: flex; justify-content: space-between; font-size: 0.85em; margin-bottom: 6px; color: #777; }
.comment-author { font-weight: 600; color: #333; }
.comment-text { font-size: 0.98em; line-height: 1.45; color: #222; margin: 0; }
.random-box { margin-top: 40px; padding-top: 25px; border-top: 2px solid #eee; }
.random-title { font-size: 1.35em; margin-bottom: 20px; color: #111; border-left: 4px solid var(--accent); padding-left: 10px; }
.random-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.random-card { background: #fff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.random-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.random-img-link { display: block; width: 100%; height: 125px; background: #f0f0f0; overflow: hidden; }
.random-thumb { width: 100%; height: 100%; object-fit: cover; }
.random-card-body { padding: 10px 12px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.random-card-title { font-size: 0.95em; line-height: 1.35; margin: 0 0 8px 0; font-weight: 600; }
.random-card-title a { text-decoration: none; color: #222; }
.random-card-title a:hover { color: var(--accent); }
.random-card-date { font-size: 0.8em; color: #888; }
@media (max-width: 600px) {
    .random-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .random-img-link { height: 100px; }
    .random-card-title { font-size: 0.85em; }
}
.site-nav-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 25px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.site-nav-block .nav-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.site-nav-block .nav-item:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
}