.news-section, .news-article-page {
    --news-accent: #086c8f;
    --news-tint: #eaf5fa;
    --news-cover-edge: rgba(117, 181, 220, .25);
}
[data-theme="dark"] .news-section, [data-theme="dark"] .news-article-page {
    --news-accent: #90dcf8;
    --news-tint: #152833;
}
.news-section { scroll-margin-top: 110px; }
.news-heading-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 17px; padding-bottom: 13px; border-bottom: 1px solid var(--pt-line);
}
.news-heading-row h1 {
    color: var(--text-main); margin: 0;
    min-width: 0;
    font: 800 clamp(20px, 3.3vw, 39px)/1.13 var(--font-display);
    text-wrap: balance;
    letter-spacing: -.045em;
}
.news-controls { display: flex; align-items: center; gap: 6px; flex: none; }
.news-controls[hidden] { display: none; }
.news-position {
    display: flex; align-items: baseline; gap: 6px; margin-right: 8px;
    color: var(--text-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.news-position b { color: var(--text-main); }
.news-controls button, .news-copy-ip {
    color: var(--text-main); background: var(--pt-surface); border: 1px solid var(--pt-line);
    font: inherit; font-weight: 700; cursor: pointer;
}
.news-controls button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.news-controls svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.news-controls button:disabled { opacity: .36; cursor: default; }
.news-controls button:not(:disabled):hover, .news-copy-ip:hover { border-color: var(--pt-text-accent); }
.news-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 22px;
    scrollbar-width: thin; scrollbar-color: var(--pt-ghost) transparent;
}
.news-section:has(.news-controls:not([hidden])) .news-track { scrollbar-width: none; }
.news-banner {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "copy visual"; min-width: 0; min-height: clamp(290px, 30vw, 410px);
    overflow: hidden; scroll-snap-align: start; border-radius: 24px;
    border: 1px solid var(--pt-line); color: var(--text-main);
    text-decoration: none;
    background: linear-gradient(128deg, var(--news-tint), transparent 58%), var(--bg-card);
}
.news-visual {
    grid-area: visual; position: relative; isolation: isolate; overflow: hidden;
    margin: 12px 12px 12px 0; border: 1px solid var(--news-cover-edge); border-radius: 16px;
    background: radial-gradient(ellipse at 72% 18%, #386e9b 0%, transparent 60%),
                radial-gradient(ellipse at 96% 100%, #42467c 0%, transparent 56%),
                linear-gradient(140deg, #122541, #173c57 62%, #16273f);
}
.news-visual::before, .news-visual::after { content: ""; position: absolute; pointer-events: none; }
.news-visual::before {
    inset: 0;
    background-image: linear-gradient(rgba(191, 226, 255, .11) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(191, 226, 255, .11) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(135deg, transparent 4%, #000 76%);
}
.news-visual::after {
    width: 58%; aspect-ratio: 1; top: 50%; left: 55%;
    transform: translate(-50%, -50%) rotate(-18deg);
    border: 1px solid rgba(165, 220, 255, .42); border-radius: 34%;
    box-shadow: 0 0 0 22px rgba(131, 202, 255, .1), 0 0 0 56px rgba(131, 202, 255, .07),
                inset 0 0 55px rgba(102, 196, 255, .18);
}
.news-visual:has(.news-cover)::before, .news-visual:has(.news-cover)::after { display: none; }
.news-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-banner-content {
    grid-area: copy; align-self: center; padding: clamp(24px, 4vw, 56px);
    min-width: 0; overflow-wrap: anywhere;
}
.news-date {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px;
    color: var(--text-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.news-date::before { content: ""; width: 18px; height: 1px; background: var(--pt-text-accent); }
.news-banner h2 {
    color: var(--text-main); margin: 0;
    font: 800 clamp(26px, 3.35vw, 50px)/1.1 var(--font-heading);
    letter-spacing: -.045em; text-wrap: pretty;
}
.news-banner p { max-width: 42ch; color: var(--text-muted); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.6; margin: 14px 0 0; }
.news-more {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 9px 13px;
    color: var(--news-accent); background: var(--bg-card); border: 1px solid var(--news-cover-edge);
    border-radius: 9px; font-weight: 800; font-size: 13px;
}
.news-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
a.news-banner:hover .news-more svg { transform: translateX(3px); }
a.news-banner:hover .news-cover { transform: scale(1.025); }
a.news-banner:focus-visible { outline-offset: -4px; }
.news-empty { min-height: 205px; }
.news-empty h2 { font-size: clamp(23px, 3vw, 37px); }
.news-server-info {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 12px; padding: 10px 15px;
    border: 1px solid var(--pt-line); border-radius: 13px; background: var(--pt-surface);
}
.news-stat { display: flex; align-items: center; gap: 9px; color: var(--text-main); }
.news-stat span { color: var(--text-muted); font-size: 12px; }
.news-stat strong { font-size: 14px; }
.news-online > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; }
.news-online i { width: 7px; height: 7px; border-radius: 50%; background: #8293a9; }
.news-online[data-online="true"] i { background: #24ba83; }
.news-copy-ip { margin-left: auto; padding: 7px 10px; border-radius: 8px; font-size: 12px; }
.news-copy-ip span { margin-left: 4px; }

.news-article-page { max-width: 1040px; margin: 0 auto; padding: 28px 16px 72px; }
.news-back {
    display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 15px; padding: 0 12px;
    border: 1px solid var(--pt-line); border-radius: 10px;
    background: var(--pt-surface); color: var(--pt-text-accent); font-size: 13px; font-weight: 800;
}
.news-article {
    border: 1px solid var(--pt-line); border-radius: 22px; overflow: hidden;
    background: var(--bg-card); color: var(--text-main); overflow-wrap: anywhere;
}
.news-article-head, .news-article-body { max-width: 790px; margin-inline: auto; padding-inline: clamp(22px, 4vw, 40px); }
.news-article-head { padding-block: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 38px); }
.news-article-head h1 {
    font: 800 clamp(29px, 5vw, 56px)/1.08 var(--font-heading);
    letter-spacing: -.045em; margin: 0; text-wrap: pretty;
}
.news-article-summary { color: var(--text-muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; margin: 16px 0 0; }
.news-article-media {
    margin: 0 clamp(12px, 3vw, 32px);
    border: 1px solid var(--news-cover-edge); border-radius: 16px; overflow: hidden; background: var(--news-tint);
}
.news-article-cover { display: block; width: 100%; max-height: 440px; aspect-ratio: 2.35; object-fit: cover; }
.news-article-body {
    padding-block: clamp(25px, 5vw, 46px) clamp(35px, 6vw, 62px);
    font-size: clamp(16px, 1.8vw, 18px); line-height: 1.75;
}
.news-article-head + .news-article-body { border-top: 1px solid var(--pt-line); }
.news-article-body :where(p, ul, ol, blockquote, pre, table, hr) { margin: 0 0 1.15em; }
.news-article-body > :last-child { margin-bottom: 0; }
.news-article-body :where(h1, h2, h3, h4, h5, h6) {
    margin: 1.35em 0 .45em; color: var(--text-main); line-height: 1.2; letter-spacing: -.025em;
}
.news-article-body > :first-child { margin-top: 0; }
.news-article-body :where(h1, h2) { font-size: clamp(23px, 3vw, 32px); }
.news-article-body :where(h3, h4, h5, h6) { font-size: 1.12em; }
.news-article-body :where(ul, ol) { padding-inline-start: 1.5em; }
.news-article-body li + li { margin-top: .35em; }
.news-article-body li > :where(ul, ol) { margin-block: .25em 0; }
.news-article-body a { color: var(--news-accent); text-decoration: underline; text-underline-offset: .17em; }
.news-article-body blockquote {
    padding: .85em 1.05em; border-inline-start: 3px solid var(--news-accent);
    border-radius: 0 9px 9px 0; background: var(--news-tint);
}
.news-article-body blockquote > :last-child { margin-bottom: 0; }
.news-article-body :where(pre, :not(pre) > code) { background: var(--news-tint); border: 1px solid var(--pt-line); border-radius: 7px; }
.news-article-body :not(pre) > code { padding: .1em .32em; font-size: .88em; }
.news-article-body pre { padding: .9em 1em; overflow-x: auto; white-space: pre; overflow-wrap: normal; font-size: .85em; }
.news-article-body table { display: block; overflow-x: auto; border-collapse: collapse; text-align: start; font-size: .9em; }
.news-article-body :where(th, td) { min-width: 7ch; border: 1px solid var(--pt-line); padding: .5em .75em; }
.news-article-body th { background: var(--news-tint); }
.news-article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.news-article-body hr { border: 0; border-top: 1px solid var(--pt-line); }
@media (max-width: 650px) {
    .news-heading-row { gap: 8px; }
    .news-position { margin-right: 2px; gap: 3px; }
    .news-controls button { width: 35px; height: 36px; }
    .news-track, .news-banner, .news-article { border-radius: 16px; }
    .news-banner { grid-template-columns: 1fr; grid-template-areas: "visual" "copy"; grid-template-rows: auto 1fr; }
    .news-visual { min-height: 136px; aspect-ratio: 2.6; margin: 8px 8px 0; border-radius: 11px; }
    .news-banner-content { align-self: start; padding: 20px; }
    .news-date { margin-bottom: 10px; }
    .news-banner h2 { font-size: clamp(24px, 6vw, 34px); }
    .news-banner p { margin-top: 9px; }
    .news-more { margin-top: 14px; }
    .news-empty { min-height: 0; }
    .news-empty .news-visual { min-height: 0; aspect-ratio: 4; }
    .news-server-info { gap: 10px 16px; }
    .news-stat { flex-wrap: wrap; gap: 4px 7px; }
    .news-copy-ip { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .news-more svg, .news-cover { transition: none; }
}

