/* ===== News listing grid — dota1x6 chrome ===== */
.news-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-base, #0a1823);
    border-radius: 2px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.85),
                inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.9),
                inset 0 0 0 1px rgba(251, 140, 7, 0.32);
}

.news-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.news-card-banner {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.news-card-svg {
    width: 100%;
    height: auto;
    display: block;
}

.news-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 2px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.news-card-body {
    padding: 16px 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-strong);
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.57);
    transition: color 200ms;
}
.news-card:hover .news-card-title { color: var(--color-primary-500); }

.news-card-excerpt {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.news-card-date {
    font-size: 12px;
    color: var(--color-text-subtle);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.news-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-card-tag {
    font-size: 11px;
    color: var(--color-primary-300);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 480px) {
    .news-listing-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* News detail page — dota1x6 chrome */
.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
    text-decoration: none !important;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 200ms;
}

.news-back-link:hover {
    color: var(--color-primary-500);
}

.news-article-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    position: relative;
}

.news-article-banner {
    padding: 0 0 16px;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-article-category {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 2px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.news-article-date {
    font-size: 12px;
    color: var(--color-text-subtle);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.news-article-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-text-strong);
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* News page - dark theme */
.news-header {
    background: var(--bg-surface-elevated);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    text-align: center;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.news-title {
    color: var(--text-heading);
    font-size: 2.2em;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.news-subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
}

.news-container {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

.news-grid {
    display: grid;
    gap: 30px;
    padding: 0;
    max-width: 1920px;
    margin: 0 auto;
}

.news-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.news-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-surface-elevated);
}

.news-title-banner {
    width: 100%;
    min-height: 130px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    max-width: 1920px;
    margin: 0 auto;
}

.news-title-text {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    color: var(--text-heading);
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 20px 0;
    flex-wrap: wrap;
    padding: 12px 15px;
    background: var(--bg-surface-elevated);
    border-radius: 10px;
}

.news-meta-banner {
    background: transparent;
    box-shadow: none;
    border-left: none;
}

.news-category {
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9em;
}

.news-author {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.news-item-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    border: 1px solid var(--border-primary);
}

.news-body {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 20px;
}

/* News blocks */
.news-block {
    margin: 25px 0;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--text-muted);
    background: var(--bg-surface-elevated);
}

.news-block-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-family: var(--font-display, sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-strong, #fff);
}

.news-block-content {
    padding-left: 10px;
    margin-top: -10px;
    color: #eef2f7;
}

/* Block type colors */
.news-block-info { border-left-color: var(--color-info); background: rgba(59, 130, 246, 0.35); }
.news-block-warning { border-left-color: var(--color-warning); background: rgba(245, 158, 11, 0.35); }
.news-block-danger { border-left-color: var(--color-negative); background: rgba(239, 68, 68, 0.35); }
.news-block-success { border-left-color: var(--color-positive); background: rgba(34, 197, 94, 0.35); }
.news-block-primary { border-left-color: var(--accent); background: rgba(251, 140, 7, 0.35); }
.news-block-items { border-left-color: #a78bfa; background: rgba(167, 139, 250, 0.35); }
.news-block-heroes { border-left-color: #fb923c; background: rgba(251, 146, 60, 0.35); }
/* Нейтральный тёмный блок — для секций где цветные акценты выглядят перегружено
   (Обновление UI, разделы «Другое» с длинным текстом). Контраст с фоном страницы
   гарантирует читаемость и под скролл-областями с белым фоном сверху.
   Без скругления и без боковой цветной полоски — выглядит сдержанно. */
.news-block-dark {
    background: rgba(15, 20, 28, 0.65);
    border-left: none;
    border-radius: 0;
}

/* Подзаголовки внутри :::dark блока (плашки UI: No Multicast, No Rearm…) — h3,
   потому что **bold** конвертер склеивает с предыдущим параграфом через nl2br.
   h3 — блочный элемент, всегда с новой строки. */
.news-block-dark h3 {
    color: #ffffff;
    font-family: 'Reaver', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 18px 0 4px;
    padding: 0;
    border: none;
}
.news-block-dark h3:first-child { margin-top: 4px; }

/* Подзаголовки плашек (No Multicast, No Rearm, ...) — обычный жирный текст
   как блочный h4 чтобы всегда был на новой строке (markdown-конвертер склеивает
   inline **bold** с предыдущим параграфом). */
.news-block-dark h4.plaque-title {
    color: #ffffff;
    font-family: inherit;
    font-size: 1em;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin: 14px 0 2px;
    padding: 0;
    border: none;
}

/* Спойлеры для скриншотов в патчноуте — клик по summary раскрывает картинку.
   Используется в :::dark Обновление UI чтобы не занимать много места по умолчанию. */
.news-spoiler {
    margin: 6px 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
}
.news-spoiler > summary {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    list-style: none;
    user-select: none;
    transition: color 0.15s;
}
.news-spoiler > summary::-webkit-details-marker { display: none; }
.news-spoiler > summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 8px;
    color: #ff5005;
    transition: transform 0.15s;
}
.news-spoiler[open] > summary::before { transform: rotate(90deg); }
.news-spoiler > summary:hover { color: #ffffff; }
.news-spoiler > img,
.news-spoiler > p > img {
    display: block;
    margin: 0 auto 10px;
    padding: 0 12px;
    max-width: calc(100% - 24px);
}

/* Tight block spacing inside main body and "additional info" section */
.news-body .news-block,
.news-additional-content .news-block { margin: 8px 0; }
.news-body .news-block:first-child,
.news-additional-content .news-block:first-child { margin-top: 0; }
.news-body .news-block:last-child,
.news-additional-content .news-block:last-child { margin-bottom: 0; }

/* Dota patch cards */
.changes-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0 20px 0;
    max-width: 800px;
}

.dota-card {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    box-shadow: var(--card-shadow);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-secondary);
    background: var(--bg-surface-elevated);
}

.card-img {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    margin-right: 15px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--text-primary);
    margin: 0;
}

.card-content {
    padding: 15px;
}

.card-content ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.card-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.buff { color: var(--color-positive); font-weight: 500; }
.nerf { color: var(--color-negative); font-weight: 500; }
.neutral-change { color: var(--text-muted); font-weight: 500; }

.hero-card .card-header { background: rgba(99, 102, 241, 0.2); }
.hero-card .card-title { color: var(--accent-hover); }
.item-card .card-header { background: rgba(167, 139, 250, 0.2); }
.item-card .card-title { color: #c4b5fd; }
.neutral-card .card-header { background: rgba(59, 130, 246, 0.2); }
.neutral-card .card-title { color: #93c5fd; }

.general-changes {
    background: var(--bg-surface-elevated);
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid var(--border-primary);
}

.general-changes h2 {
    margin-top: 0;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.general-content ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.general-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.news-body h1, .news-body h2, .news-body h3 {
    color: var(--color-text-strong, #fff);
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 25px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.news-body h1::after,
.news-body h2::after,
.news-body h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: var(--color-primary-500, #fb8c07);
}

.news-body h1 { font-size: 16px; }
.news-body h2 { font-size: 14px; }
.news-body h3 { font-size: 13px; }

.item-block {
    background: rgba(167, 139, 250, 0.08);
    border-left: 3px solid #a78bfa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-block img {
    display: block;
    margin: 0 0 10px 0;
    border-radius: 5px;
}

.news-body ul { padding-left: 20px; margin: 15px 0; }
.news-body li { margin-bottom: 8px; }

.news-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

/* Compact horizontal stat tables for news content (rating breakdowns etc.) */
.news-rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-family: var(--font-display, sans-serif);
    font-size: 12px;
    background: var(--color-bg-surface-2, #13283a);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.news-rating-table caption {
    caption-side: top;
    text-align: left;
    padding: 8px 12px;
    color: var(--color-text-muted, #9098a6);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-rating-table th,
.news-rating-table td {
    padding: 8px 10px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    font-variant-numeric: tabular-nums;
}

.news-rating-table th:last-child,
.news-rating-table td:last-child {
    border-right: none;
}

.news-rating-table thead th {
    color: var(--color-text-muted, #9098a6);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-rating-table tbody th {
    color: var(--color-text-muted, #9098a6);
    font-weight: 600;
    text-align: left;
    background: rgba(0, 0, 0, 0.12);
    font-size: 11px;
}

.news-rating-table tbody td {
    color: var(--color-text-strong, #fff);
    font-weight: 700;
    font-size: 13px;
}

.news-rating-table .rating-pos { color: #22c55e; }
.news-rating-table .rating-neg { color: #ef4444; }

.no-news {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
    margin: 0 20px;
}

.no-news-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.admin-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.admin-link:hover {
    background: var(--accent-hover);
    color: white;
    text-decoration: none;
}

/* Additional info section */
.news-additional-section {
    margin: 25px 0;
    padding: 18px 0;
}

.news-additional-title {
    color: var(--text-heading);
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-secondary);
}

.news-additional-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Structured hero change cards */
.hero-changes-section {
    margin: 25px 0;
}

/* Dota-2 patchnote-style headers (см. dota2.com/patches).
   Шрифт Reaver грузится с CDN Steam, fallback на serif.
   Структура заголовка: оранжевый border-left + uppercase Reaver + letter-spacing. */
@font-face {
    font-family: 'Reaver';
    src: url('https://cdn.steamstatic.com/apps/dota2/fonts/Reaver-SemiBold.woff') format('woff'),
         url('https://cdn.steamstatic.com/apps/dota2/fonts/Reaver-Regular-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Reaver';
    src: url('https://cdn.steamstatic.com/apps/dota2/fonts/Reaver-Bold.woff') format('woff'),
         url('https://cdn.steamstatic.com/apps/dota2/fonts/Reaver-Regular-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

.hero-changes-title,
.item-changes-title,
.ability-changes-title,
.skill-changes-title,
.innate-changes-title,
.news-block-dark .news-block-title {
    color: #ffffff;
    font-family: 'Reaver', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 32px 0 20px;
    padding: 12px 20px;
    border-left: 2px solid #ff5005;
    border-bottom: none;
    line-height: 1.1;
}

/* :::dark блоки (Исправления, Геймплей) лежат в .news-block с padding:15px,
   из-за чего красная полоска заголовка была сдвинута на 15px правее, чем у
   секций «Изменения героев/предметов» (их контейнер без padding). Подтягиваем
   заголовок влево на величину этого padding — полоски выравниваются по одной оси. */
.news-block-dark .news-block-title {
    margin-left: -15px;
}

/* ── Донат-секция в патчноуте ─────────────────────────────────────────── */
.donate-changes-section {
    margin: 25px 0;
}
.donate-changes-card {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 18px 20px;
}
.donate-changes-line {
    color: #eef2f7;
    margin: 0 0 12px;
    line-height: 1.6;
}
.donate-changes-line:last-of-type {
    margin-bottom: 18px;
}
.donate-changes-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: var(--gradient-cta, linear-gradient(135deg, #f3813c, #e66c0f));
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    font-family: var(--font-display, sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 12px rgba(230, 108, 15, 0.55), 0 8px 30px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.18s ease, box-shadow 0.18s ease;
}
.donate-changes-cta:hover {
    filter: brightness(1.05);
    box-shadow: 0 0 14px rgba(251, 140, 7, 0.6), 0 1px 12px rgba(230, 108, 15, 0.55), 0 8px 30px rgba(0, 0, 0, 0.45);
    color: #fff !important;
}
.donate-changes-cta-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease;
}
.donate-changes-cta:hover .donate-changes-cta-icon {
    transform: translateX(3px);
}

.hero-cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-change-card {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
}

.hero-change-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.12);
    border-bottom: 1px solid var(--border-secondary);
}

.hero-change-icon {
    border-radius: 4px;
    flex-shrink: 0;
}

.hero-change-name {
    color: #f5f5f5;
    font-family: 'Reaver', Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
}

.hero-change-name:hover {
    color: var(--color-primary-300, #fdac4d);
}

.hero-change-list,
.item-change-list,
.ability-change-list,
.skill-change-list {
    margin: 0;
    padding: 10px 14px;
    list-style: none;
}

/* Неофициальная подсказка под списком изменений — короткая ремарка,
 * не часть механики. Никаких ярких полос/бейджей: курсив + приглушённый
 * цвет + лёгкий фон, чтобы блок читался как «дополнение между делом», а
 * не как ещё один пункт патчноута. */
.news-dev-note {
    margin: 6px 14px 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--color-text-muted, #9098a6);
    font-style: italic;
}

.hero-change-list li,
.item-change-list li,
.ability-change-list li,
.skill-change-list li {
    position: relative;
    padding-left: 16px;
    color: var(--color-text-default, #e3e8ef);
    margin-bottom: 4px;
    line-height: 1.4;
}

.hero-change-list li:last-child,
.item-change-list li:last-child,
.ability-change-list li:last-child,
.skill-change-list li:last-child {
    margin-bottom: 0;
}

/* ▸ маркер по умолчанию (для нейтральных пунктов без [buff]/[nerf]) */
.hero-change-list li::before,
.item-change-list li::before,
.ability-change-list li::before,
.skill-change-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary-500, #fb8c07);
    font-weight: 700;
}

/* Если у пункта есть +/− иконка [buff]/[nerf], свой ▸ не нужен */
.skill-change-list li:has(.news-change-plus)::before,
.skill-change-list li:has(.news-change-minus)::before,
.hero-change-list li:has(.news-change-plus)::before,
.item-change-list  li:has(.news-change-plus)::before,
.ability-change-list li:has(.news-change-plus)::before,
.hero-change-list li:has(.news-change-minus)::before,
.item-change-list  li:has(.news-change-minus)::before,
.ability-change-list li:has(.news-change-minus)::before {
    display: none;
}

/* +/− иконки для [buff]/[nerf] (рендерится через renderNewsChange) */
.news-change-plus,
.news-change-minus {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display, sans-serif);
    font-weight: 800;
    font-size: 1.05em;
    line-height: 1.4;
    width: 14px;
    text-align: left;
}
.news-change-plus  { color: var(--color-positive, #22c55e); }
.news-change-minus { color: var(--color-negative, #ef4444); }

/* Ability sub-blocks within hero cards */
.hero-ability-block {
    margin: 10px 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.hero-ability-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.08);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
}

.hero-ability-icon {
    border-radius: 4px;
    flex-shrink: 0;
}

.hero-ability-name {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.95em;
}

.hero-ability-block .hero-change-list {
    margin: 0;
    padding: 8px 12px 8px 32px;
}

.hero-ability-block .hero-change-list li {
    margin-bottom: 4px;
}

/* Talent tree within hero cards (Dota-style) */
.talent-changes {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), rgba(245, 158, 11, 0.02));
    border-top: 1px solid rgba(251, 191, 36, 0.15);
}

.talent-changes-title {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.talent-changes-title::before {
    content: '\2726';
    font-size: 1em;
}

.talent-tree {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Vertical center connector line */
.talent-tree::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 17px;
    bottom: 17px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.1));
    transform: translateX(-50%);
    border-radius: 1px;
}

.talent-row {
    display: grid;
    grid-template-columns: 1fr 38px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
}

.talent-row:not(:last-child) {
    border-bottom: 1px solid rgba(251, 191, 36, 0.06);
}

.talent-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.talent-left {
    text-align: right;
}

.talent-right {
    text-align: left;
}

.talent-node {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.talent-level-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 50px rgba(251, 191, 36, 0.1), 0 0 8px rgba(251, 191, 36, 0.15);
}

.talent-old {
    color: var(--color-negative, #ef4444);
    font-size: 0.82em;
    line-height: 1.4;
    text-decoration: line-through;
    opacity: 0.7;
}

.talent-new {
    color: var(--color-positive, #22c55e);
    font-size: 0.85em;
    line-height: 1.4;
    font-weight: 500;
}

/* Structured item & skill change cards (skills wrapped in same chrome as items) */
.item-changes-section,
.skill-changes-section {
    margin: 25px 0;
}

/* .item-changes-title / .skill-changes-title — стиль см. выше в общей группе с hero-/ability-changes-title */

.item-cards-list,
.skill-cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.item-change-card,
.skill-change-card {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
}

.item-change-header,
.skill-change-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.12);
    border-bottom: 1px solid var(--border-secondary);
}

.item-change-icon,
.skill-change-icon {
    border-radius: 4px;
    flex-shrink: 0;
}

.item-change-name,
.skill-change-name {
    color: #f5f5f5;
    font-family: 'Reaver', Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* .item-change-list — см. объединённое правило выше (hero/item/ability), здесь дублей нет */

/* Structured ability change cards */
.ability-changes-section {
    margin: 25px 0;
}

/* .ability-changes-title — стиль см. выше в общей группе с hero-/item-changes-title */

.ability-cards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ability-change-card {
    background: var(--bg-surface);
    border-radius: 8px;
    overflow: hidden;
}

.ability-change-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.12);
    border-bottom: 1px solid var(--border-secondary);
}

.ability-change-icon {
    border-radius: 4px;
    flex-shrink: 0;
}

.ability-change-name {
    color: #22c55e;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
}

/* .ability-change-list — см. объединённое правило выше (hero/item/ability) */

/* Season rewards leaderboard */
.season-rewards-section {
    margin: 25px 0;
}

.season-rewards-title {
    color: var(--text-heading);
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.reward-group {
    margin-bottom: 24px;
}

.reward-group + .reward-group {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-primary);
}

.reward-group-title {
    color: var(--text-secondary);
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.reward-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    transition: background 0.15s;
}

.reward-row:hover {
    background: var(--bg-surface-elevated);
}

.reward-extended {
    margin-top: 8px;
}

.news-body-after-rewards,
.news-closing-note,
.tournament-section {
    margin: 25px 0;
}

.reward-extended-summary {
    cursor: pointer;
    padding: 8px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.95em;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
}

.reward-extended-summary::-webkit-details-marker { display: none; }

.reward-extended-summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.15s;
}

.reward-extended[open] .reward-extended-summary::before {
    transform: rotate(90deg);
}

.reward-extended-summary:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

.reward-extended[open] .reward-extended-summary {
    margin-bottom: 4px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.reward-top-1 {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}
.reward-top-1 .reward-rank {
    color: #ffd700;
    font-weight: 700;
}

.reward-top-2 {
    background: rgba(192, 192, 192, 0.08);
    border-color: rgba(192, 192, 192, 0.3);
}
.reward-top-2 .reward-rank {
    color: #c0c0c0;
    font-weight: 700;
}

.reward-top-3 {
    background: rgba(205, 127, 50, 0.08);
    border-color: rgba(205, 127, 50, 0.3);
}
.reward-top-3 .reward-rank {
    color: #cd7f32;
    font-weight: 700;
}

.reward-rank {
    min-width: 32px;
    color: var(--text-muted);
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

.reward-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.reward-avatar-placeholder {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-secondary);
}

.reward-nickname {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.reward-nickname:hover {
    color: var(--accent-hover);
}

.reward-stat {
    color: var(--text-secondary);
    font-size: 0.9em;
    white-space: nowrap;
}

.reward-coins {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

@media (max-width: 768px) {
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-content { padding: 20px; }

    .admin-link {
        bottom: 20px;
        right: 20px;
        padding: 12px 16px;
    }

    .hero-cards-list,
    .item-cards-list,
    .ability-cards-list {
        grid-template-columns: 1fr;
    }

    .talent-row {
        grid-template-columns: 1fr 32px 1fr;
        gap: 6px;
    }

    .talent-level-num {
        width: 30px;
        height: 30px;
        font-size: 0.7em;
    }

    .talent-old,
    .talent-new {
        font-size: 0.75em;
    }

    .reward-row {
        gap: 8px;
        padding: 6px 10px;
    }

    .reward-rank {
        min-width: 28px;
        font-size: 0.8em;
    }

    .reward-coins {
        min-width: 50px;
        font-size: 0.8em;
    }
}

/* Innate abilities section */
.innate-changes-section {
    margin-top: 24px;
}

.innate-changes-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.innate-group {
    margin-bottom: 20px;
}

.innate-group-label {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
}

.innate-label-enabled {
    background: rgba(34, 197, 94, 0.12);
    color: var(--color-positive);
}

.innate-label-disabled {
    background: rgba(239, 68, 68, 0.12);
    color: var(--color-negative);
}

.innate-hero-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.innate-hero-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 8px;
    background: var(--bg-surface);
    text-decoration: none;
    transition: background 0.2s;
}

.innate-hero-chip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.innate-hero-chip-disabled {
    opacity: 0.7;
}

.innate-hero-icon {
    border-radius: 4px;
    flex-shrink: 0;
}

.innate-hero-name {
    font-weight: 600;
    font-size: 0.88em;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Promo code section */
.promo-section {
    margin-top: 20px;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 10px;
    border: 1px solid;
}

.promo-active {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.promo-expired {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

.promo-card-icon {
    font-size: 2em;
    line-height: 1;
    flex-shrink: 0;
}

.promo-card-body {
    flex: 1;
    min-width: 0;
}

.promo-card-title {
    color: var(--text-secondary);
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.promo-code-value {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-positive);
    cursor: pointer;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px dashed rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    display: inline-block;
    margin: 4px 0 8px;
    transition: background 0.2s;
    user-select: all;
}

.promo-code-value:hover {
    background: rgba(34, 197, 94, 0.2);
}

.promo-code-value:active {
    background: rgba(34, 197, 94, 0.3);
}

.promo-card-details {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9em;
}

.promo-detail-coins {
    color: var(--color-warning);
    font-weight: 600;
}

.promo-detail-sep {
    color: var(--text-muted);
}

.promo-detail-remaining {
    color: var(--text-secondary);
}

.promo-card-subtitle {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-top: 2px;
}

.promo-expired .promo-card-title {
    color: var(--color-negative);
}

.news-inline-icon {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 17px;
    margin: 0 2px;
    border-radius: 2px;
}
/* Иконки способностей квадратные (88x88), а не landscape как у предметов
 * (88x64). Без отдельного размера движок растягивает их в landscape и они
 * выглядят сплющенными. */
.news-inline-icon--ability {
    width: 22px;
    height: 22px;
}

@media (max-width: 480px) {
    .promo-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 14px;
    }

    .promo-card-details {
        justify-content: center;
    }
}
