html,
body {
    margin: 0;
    padding: 0;
    --bg: #0b1020;
    --panel: #111827;
    --panelBorder: #1e2a3f;
    --panelBorder2:rgb(17, 121, 46)f;
    --shadow: rgba(0, 0, 0, 0.35);
    --accent: #5af78e;
    --accent2: #9d5cff;
    --text: #e7f5ff;
    --muted: #9bb0c9;
    --padding1: 12px;
    --padding2: 24px;
    --padding0_5: 6px;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 90px 90px, 18px 18px, 18px 18px;
}

#wrap {
    margin: 0 auto;
    width: 960px;
    max-width: 95%;
}

header {
    background: linear-gradient(135deg, #181f33 0%, #101728 100%);
    padding: 10px 12px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text);
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px var(--shadow);
    border-bottom: 2px solid var(--accent);
    font-family: "SFMono-Regular", "Menlo", Consolas, "Liberation Mono", "IBM Plex Mono", monospace;
}

.subheader {
    font-weight: 500;
    color: var(--accent);
}

h1 {
    font-size: 32px;
    color: var(--text);
    margin-top: var(--padding2);
    padding: 0;
    margin-bottom: 0;
    letter-spacing: -0.01em;
}

.h1info {
    font-size: 0.75rem;
    font-weight: normal;
    color: var(--muted);
}

.title-row {
    display: flex;
    justify-content:space-between;
}

.mascot-img {
    display: block;
    height: 64px;
    width: auto;
}

@media (max-width: 600px) {
    .title-row {
        grid-template-columns: 1fr auto;
        align-items: center;
        min-height: 56px;
    }
    .mascot-slot {
        height: 48px;
    }
    .mascot-img {
        max-height: 48px;
    }
}

.breadcrumb {
    font-size: 0.7rem;
    margin-top: var(--padding0_5);
    color: var(--muted);
}

.content {
    margin-top: var(--padding1);
}

.lenta {
    margin-top: var(--padding2);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "SFMono-Regular", "Menlo", Consolas, "Liberation Mono", "IBM Plex Mono", monospace;
}

#footer {
    margin-top: 100px;
    text-align: center;
    padding: 15px;
    font-size: 0.75rem;
    color: var(--muted);
    background: #0f1526;
    border: 1px solid var(--panelBorder);
    border-radius: 8px;
}

#licounter {
    width: 100px;
    text-align: center;
}

.lenta h2 {
    font-size: 1rem;
    padding: var(--padding0_5);
    background-color: #161f30;
    color: var(--text);
    border-radius: 6px;
    border: 1px solid var(--panelBorder);
}

.lenta h2 a {
    color: var(--text);
}

.lenta a {
    text-decoration: none;
    color: var(--text);
}

.lenta .article {
    margin-top: var(--padding2);
}

.lenta-item {
    padding: var(--padding1);
    margin-top: var(--padding2);
    border: 1px solid var(--panelBorder);
    border-radius: 10px;
    background: var(--panel);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 8px 24px var(--shadow);
}

.lenta-item-current  {
    border: 2px solid var(--panelBorder2);
}

.lenta-item__meta {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: var(--padding0_5);
    text-decoration: none;
}

.lenta-item__id {
    font-weight: 600;
    color: var(--accent);
}

.lenta-item__date {
    font-size: 0.8rem;
    color: var(--muted);
}

.lenta-item__content {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}
.article video {
    display: none;
}

.pagination {
   margin-top: var(--padding1); 
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   align-items: center;
}

.pagination a {
    font-size: 0.7em;
    text-decoration: none;
    background: #1c2740;
    color: var(--text);
    border-radius: 4px;
    padding: 6px 10px;
    line-height: 1.6rem;
    border: 1px solid var(--panelBorder);
    font-family: "SFMono-Regular", "Menlo", Consolas, "Liberation Mono", "IBM Plex Mono", monospace;
}

.pagination span {
    font-size: 0.7em;
    padding: 6px 8px;
    color: var(--muted);
    font-family: "SFMono-Regular", "Menlo", Consolas, "Liberation Mono", "IBM Plex Mono", monospace;
}

.pagination .dots {
    background: transparent;
    border: none;
}

.pagination .current {
    padding-left: 12px;
    padding-right: 12px;
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.9em;
    font-weight: 700;
}

/** common **/
.spaceBetween {
    display: flex;
    justify-content: space-between;
}

/** article **/
.articleDate {
    font-size: 0.75rem;
    margin-top: var(--padding0_5);
    color: var(--muted);
}

.backlink {
    margin-top: var(--padding1);
}

.backlink a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: "SFMono-Regular", "Menlo", Consolas, "Liberation Mono", "IBM Plex Mono", monospace;
}

.backlink a:hover {
    text-decoration: underline;
}
