.news-page-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.news-page-top {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.news-page-title {
    margin: 0;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.news-search-wrap {
    flex: 1 1 320px;
}

.news-search-input,
.news-source-select {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 0 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

html[data-theme="light"] .news-search-input,
html[data-theme="light"] .news-source-select {
    background: #fff;
}

.news-search-input:focus,
.news-source-select:focus {
    border-color: rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.06);
}

.news-filter-wrap {
    width: 220px;
    max-width: 100%;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.12);
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(255, 0, 0, 0.05);
}

.news-card-image {
    position: relative;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.news-card-image--placeholder {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.85), rgba(60,60,60,0.85));
}

.news-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.06) 100%);
}

.news-card-body {
    padding: 16px 16px 18px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.86rem;
}

.news-card-source-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.news-card-source-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.05);
    font-size: 0.85rem;
    flex: 0 0 28px;
}

.news-card-source {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-time {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.news-card-title {
    margin: 0 0 12px;
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.news-card-desc {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    min-height: 74px;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    font-family: "Manrope", "Inter", Arial, Helvetica, sans-serif;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 0, 0.16);
}

.news-card-link-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.22);
    flex: 0 0 10px;
}

.load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.load-more-count {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.news-empty,
.news-error {
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    color: var(--muted);
    text-align: center;
    background: rgba(255,255,255,0.04);
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .news-page-title {
        font-size: 1.7rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-title {
        font-size: 1.25rem;
    }
}