/* 新闻卡片组件样式 */

.news-page #news-container { min-width: 0; }

/* 新闻分类导航 */
.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* btn-outline and btn-primary own neutral and selected button appearance. */

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-list h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.news-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    transition: background-color 0.3s ease;
    align-items: start;
    position: relative;
}

.news-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.news-card:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.news-card:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--sm-accent-rgb, 216, 222, 232), 0.08) 10%,
        rgba(var(--sm-accent-rgb, 216, 222, 232), 0.18) 50%,
        rgba(var(--sm-accent-rgb, 216, 222, 232), 0.08) 90%,
        transparent 100%
    );
}

.news-card-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    height: 168px; /* 固定高度，16:9比例 */
    flex-shrink: 0; /* 防止收缩 */
    background: rgba(255, 255, 255, 0.05); /* 添加背景色防止空白 */
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block; /* 消除图片底部空隙 */
    border-radius: 8px;
}

.news-card:hover .news-card-image img {
    transform: scale(1.02);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    gap: 0.5rem;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.no-image-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.no-image-placeholder:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(var(--sm-accent-rgb, 216, 222, 232), 0.18);
    color: rgba(255, 255, 255, 0.7);
}

.news-card:hover .no-image-placeholder {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(var(--sm-accent-rgb, 216, 222, 232), 0.18);
}

.news-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.5rem;
    padding: 0;
}

.news-category {
    background: rgba(29, 33, 39, 0.78);
    color: var(--sm-text, #f4f5f7);
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.news-card:hover .news-category {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.news-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.news-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--sm-accent, #d8dee8);
}

.news-summary {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.5rem 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8rem; /* 确保3行文本的最小高度 */
}

/* 空摘要时的样式 */
.news-summary:empty::before {
    content: "暂无摘要内容...";
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* 作者信息样式 */
.news-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.news-author i {
    color: var(--sm-text-muted, #aeb4bf);
    margin-right: 0.3rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.news-meta i {
    font-size: 0.8rem;
    color: var(--sm-text-muted, #aeb4bf);
}

/* 统计信息 */
.news-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--sm-accent, #d8dee8);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* 加载状态 */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.loading-indicator i {
    font-size: 1.2rem;
    color: var(--sm-accent, #d8dee8);
}

/* 无内容状态 */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-content-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.no-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* 结束提示 */
.end-message {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 分页控件样式 */
.news-pagination {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-dots {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    padding: 0 0.5rem;
    user-select: none;
}

.pagination-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 错误状态样式 */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-message p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.retry-btn {
    background: var(--sm-accent, #d8dee8);
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn:hover {
    background: #e8ecf2;
    transform: translateY(-2px);
}

.retry-btn i {
    font-size: 0.9rem;
}

/* 移动端资讯：分类横向浏览，正文优先，卡片保持紧凑。 */
@media (max-width: 768px) {
    .news-page .news-cards-container,
    .news-page .news-card-content {
        min-width: 0;
    }

    .news-page .news-categories {
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        margin-bottom: 20px;
        padding: 0 0 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        background: transparent;
        border: 0;
        border-radius: 0;
        backdrop-filter: none;
    }

    .news-page .category-btn {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        padding: 8px 14px;
        font-size: 14px;
        line-height: 1.4;
        white-space: nowrap;
    }

    .news-page .category-btn:hover,
    .news-page .category-btn.active {
        transform: none;
    }

    .news-page .news-pagination:empty { display: none; }

    .news-page .news-list h2 {
        margin: 0 0 16px;
        font-size: 18px;
        line-height: 1.5;
    }

    .news-page .news-summary {
        min-height: 0;
        margin: 0;
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow-wrap: anywhere;
    }

    .news-page .news-list {
        margin-top: 0;
    }

    .news-page .news-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 0;
        min-height: 0;
    }

    .news-page .news-card-image {
        width: 104px;
        height: 104px;
        border-radius: 8px;
    }

    .news-page .news-card .news-category {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 12px);
        padding: 3px 6px;
        font-size: 10px;
        line-height: 1.4;
        letter-spacing: 0;
        border-radius: 5px;
        box-shadow: none;
        overflow-wrap: anywhere;
    }

    .news-page .news-card-content {
        gap: 6px;
        padding: 0;
    }

    .news-page .news-title {
        margin: 0;
        font-size: 16px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    /* 无封面的文章只保留分类标签，不为占位图片保留整块空间。 */
    .news-page .news-card:not(:has(.news-card-image img)) {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .news-page .news-card-image:not(:has(img)) {
        width: auto;
        height: auto;
        min-height: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .news-page .news-card-image:not(:has(img)) .no-image-placeholder {
        display: none;
    }

    .news-page .news-card-image:not(:has(img)) .news-category {
        position: static;
        display: inline-block;
        max-width: 100%;
        font-size: 11px;
    }

    .news-page .news-meta {
        flex-flow: row wrap;
        align-items: center;
        gap: 4px 10px;
        min-width: 0;
        margin: 0;
        font-size: 12px;
        line-height: 1.5;
    }

    .news-page .news-meta span {
        gap: 4px;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .news-page .news-meta i {
        flex-shrink: 0;
        font-size: 11px;
    }

    .news-page .news-author {
        font-size: inherit;
    }

    .news-page .news-pagination {
        margin-top: 20px;
        padding: 16px 0 0;
    }

    .news-page .pagination-controls {
        justify-content: center;
        gap: 6px;
        margin-bottom: 8px;
    }

    .news-page .pagination-btn {
        min-width: 44px;
        height: 44px;
        padding: 8px 10px;
        font-size: 13px;
        gap: 5px;
    }

    .news-page .pagination-dots {
        padding: 0 2px;
    }

    .news-page .pagination-info {
        margin-top: 8px;
        font-size: 12px;
    }









    .news-page .error-message {
        padding: 24px 16px;
    }

    .news-page .error-icon {
        font-size: 32px;
    }

    .news-page .retry-btn {
        min-height: 44px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* One centered story leaves neighboring images visible on each available side. */
.news-page .featured-news {
    min-width: 0;
    margin: 0 0 36px;
    padding: 0;
}

.news-page .featured-news[hidden],
.news-page .featured-controls[hidden],
.news-page .featured-swipe-hint[hidden],
.news-page .featured-image-fallback[hidden] { display: none; }
.news-page .featured-news::after,
.news-page .featured-news h2::after { display: none; }

.news-page .featured-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.news-page .featured-heading h2 {
    margin: 0;
    color: var(--sm-text, #f4f5f7);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.news-page .featured-heading p {
    margin: 4px 0 0;
    color: var(--sm-text-muted, #aeb4bf);
    font-size: 12px;
}

.news-page .featured-swipe-hint {
    flex-shrink: 0;
    color: rgba(218, 224, 234, 0.48);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.news-page .featured-track {
    position: relative;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px max(28px, calc((100% - 760px) / 2)) 6px;
}

.news-page .featured-track::-webkit-scrollbar { display: none; }
.news-page .featured-track:focus-visible { outline: 1px solid rgba(230, 235, 243, 0.45); outline-offset: 3px; border-radius: 20px; }
.news-page .featured-track:has(.featured-card:only-child) { padding-inline: 0; }

.news-page .featured-card {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0;
    position: relative;
    height: clamp(350px, 32vw, 420px);
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(230, 234, 242, 0.035);
    scroll-snap-align: center;
}

.news-page .featured-story {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--sm-text, #f4f5f7);
    text-decoration: none;
}

.news-page .featured-story::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(8, 11, 17, .04) 12%, rgba(8, 11, 17, .2) 35%, rgba(8, 11, 17, .82) 68%, rgba(8, 11, 17, .96));
    pointer-events: none;
}

.news-page .featured-story:focus-visible { outline: 2px solid var(--sm-accent, #d8dee8); outline-offset: -4px; border-radius: inherit; }

.news-page .featured-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(216, 222, 232, 0.065);
}

.news-page .featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-page .featured-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 64px;
    gap: 10px;
    color: rgba(219, 225, 236, 0.42);
    background: linear-gradient(145deg, rgba(220, 227, 239, 0.025), rgba(220, 227, 239, 0.075));
    font-size: 12px;
    letter-spacing: 0.08em;
}

.news-page .featured-image-fallback i { font-size: 30px; opacity: 0.6; }

.news-page .featured-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
    margin-top: auto;
    padding: 24px;
}

.news-page .featured-media img { transition: transform 300ms ease; }
.news-page .featured-story:hover .featured-media img { transform: scale(1.025); }

.news-page .featured-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.news-page .featured-rank { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.news-page .featured-title { margin: 0; min-height: 2.9em; color: #fff; font-size: 22px; line-height: 1.45; font-weight: 600; }
.news-page .featured-title,
.news-page .featured-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.news-page .featured-summary { margin: 0; min-height: 3.2em; color: rgba(255, 255, 255, .76); font-size: 13px; line-height: 1.6; }
.news-page .featured-card-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: auto; padding-top: 3px; color: rgba(255, 255, 255, .6); font-size: 11px; line-height: 1.6; }
.news-page .featured-source { min-width: 0; max-width: 48%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-page .featured-views { margin-left: auto; white-space: nowrap; }

.news-page .featured-carousel { position: relative; isolation: isolate; }
.news-page .featured-carousel:not([data-single-story])::before,
.news-page .featured-carousel:not([data-single-story])::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 52px;
    background: linear-gradient(90deg, var(--sm-surface, #1a1a1a), rgba(var(--sm-surface-rgb, 26,26,26),.65) 32%, transparent);
    pointer-events: none;
}
.news-page .featured-carousel:not([data-single-story])::after {
    inset: 0 0 0 auto;
    transform: scaleX(-1);
}
.news-page .featured-controls { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.news-page .featured-position { min-width: 42px; color: var(--sm-text-muted, #aeb4bf); text-align: right; font-size: 11px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.news-page .featured-position[hidden] { display: none; }
.news-page .featured-nav {
    position: absolute;
    top: calc(50% - 24px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--sm-text, #f4f5f7);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 180ms ease;
}
.news-page .featured-nav[data-featured-step="1"] { left: auto; right: 0; }
.news-page .featured-nav:hover:not(:disabled) { opacity: .7; }
.news-page .featured-nav:focus-visible { outline: 2px solid var(--sm-accent, #d8dee8); outline-offset: -4px; }
.news-page .featured-nav:disabled { opacity: .16; cursor: default; }
.news-page .featured-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.news-page .featured-card--skeleton { background: transparent; }
.news-page .featured-card--skeleton .featured-body { position: absolute; inset: auto 0 0; box-sizing: border-box; }
.news-page .featured-track--loading { overflow: hidden; }
.news-page .featured-title-placeholder,
.news-page .featured-summary-placeholder { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.news-page .featured-title-placeholder { min-height: 63.8px; }
.news-page .featured-title-placeholder .sm-skeleton-line { height: 20px; }
.news-page .featured-summary-placeholder { min-height: 41.6px; }
.news-page .featured-kicker > .sm-skeleton-line { max-width: 90px; }
.news-page .featured-card-footer > .sm-skeleton-line { max-width: 180px; }
.news-page .featured-nav-placeholder { width: 44px; height: 44px; border-radius: 50%; }
.news-page .featured-position-placeholder { width: 48px; height: 12px; }

@media (max-width: 768px) {
    .news-page .featured-news { margin-bottom: 28px; }
    .news-page .featured-heading { gap: 12px; margin-bottom: 14px; }
    .news-page .featured-heading h2 { font-size: 18px; }
    .news-page .featured-track { gap: 12px; padding-inline: 24px; }
    .news-page .featured-card { height: 350px; border-radius: 16px; }
    .news-page .featured-body { padding: 18px 16px; gap: 8px; }
    .news-page .featured-title { font-size: 17px; }
    .news-page .featured-title-placeholder { min-height: 49.3px; }
    .news-page .featured-card-footer { gap: 4px 8px; }
    .news-page .featured-source { max-width: 62%; }
    .news-page .featured-views { margin-left: 0; }

}

@media (prefers-reduced-motion: reduce) {
    .news-page .featured-track { scroll-behavior: auto; }
    .news-page .featured-nav,
    .news-page .featured-body,
    .news-page .featured-media img { transition: none; }
}

/* Give article rows room to breathe without decorative divider lines. */
.news-page .news-card::after { display: none; }

.news-page .news-pagination { margin: 20px 0 0; padding: 16px 0 0; background: transparent; border: 0; box-shadow: none; }
.news-page .pagination-info { color: var(--sm-text-muted, #aeb4bf); font-size: 11px; letter-spacing: .02em; }

/* CSS-generated labels follow the page language. */
html:lang(en) .news-summary:empty::before { content: "No summary available..."; }

.news-page .news-card .news-category { border: 0; box-shadow: none; background: linear-gradient(115deg,rgba(197,68,82,.22),rgba(27,31,39,.78)); color: #f1e9eb; border-radius: 8px; font-size: 12px; font-weight: 500; padding: 5px 10px; backdrop-filter: blur(12px); }
.news-page .news-card:hover .news-category { border: 0; background: linear-gradient(115deg,rgba(197,68,82,.29),rgba(27,31,39,.85)); }

/* One accessible link covers each complete row; the title itself stays two lines. */
.news-page .news-card { cursor: pointer; }
.news-page .news-title { display: block; overflow: visible; min-width: 0; margin: 0; }
.news-page .news-title a::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 8px; }
.news-page .news-title a:focus-visible { outline: none; }
.news-page .news-title a:focus-visible::after { outline: 2px solid #c0cee1; outline-offset: 4px; }
.news-page .news-title-text,
.news-page .news-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; }
.news-page .news-summary { min-height: 0; }
.news-page .news-card-image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(5,9,15,.35),transparent 36%,transparent 55%,rgba(5,9,15,.55)); }
.news-page .news-card .news-category,
.news-page .news-card:hover .news-category { z-index: 1; top: 10px; left: 12px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; font-size: 11px; line-height: 1.5; font-weight: 500; text-shadow: 0 1px 7px rgba(0,0,0,.45); }
.news-page .news-image-views { position: absolute; right: 12px; bottom: 9px; z-index: 1; color: rgba(255,255,255,.86); font-size: 11px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 7px rgba(0,0,0,.45); }
.news-page .news-image-views i { font-size: 10px; margin-right: 4px; }
.news-page .news-card .news-meta { margin-top: 6px; }
@media (max-width: 768px) {
    .news-page .news-card:not(:has(.news-card-image img)) { grid-template-columns: 104px minmax(0,1fr); gap: 12px; }
    .news-page .news-card-image:not(:has(img)) { position: relative; width: 104px; height: 104px; overflow: hidden; border-radius: 8px; background: rgba(216,222,232,.065); }
    .news-page .news-card-image:not(:has(img)) .no-image-placeholder { display: flex; border: 0; }
    .news-page .news-card-image .no-image-placeholder { font-size: 10px; gap: 3px; }
    .news-page .news-card-image .no-image-placeholder i { font-size: 20px; }
    .news-page .news-card-image:not(:has(img)) .news-category,
    .news-page .news-card .news-category { position: absolute; top: 7px; left: 8px; font-size: 10px; }
    .news-page .news-image-views { right: 8px; bottom: 7px; font-size: 10px; }
}
.news-page .news-card { padding-inline:16px; }

.news-page .news-title,.news-page .featured-title { text-wrap:pretty; }
.news-page .news-summary { line-height:1.85;letter-spacing:.01em; }
.news-page .news-summary:empty { display:none; }
.news-page .featured-summary { line-height:1.75; }

/* The center story leads; neighboring stories ease into focus as they travel. */
.news-page .featured-card { --featured-focus:0; transform:scale(calc(.86 + var(--featured-focus)*.14)); opacity:calc(.55 + var(--featured-focus)*.45); transform-origin:center; transition:opacity 100ms linear; will-change:transform; }
.news-page .featured-track { padding-block:10px; }
.news-page .featured-image-fallback, .news-page .no-image-placeholder { border:0!important; outline:0; }
@media(prefers-reduced-motion:reduce) { .news-page .featured-card { transform:none;transition:none; } }

.news-page :is(.no-image-placeholder,.featured-image-fallback) { background: url('/assets/images/content-placeholder.svg') center/cover no-repeat; }
.news-page :is(.no-image-placeholder,.featured-image-fallback) > :is(i,span) { display:none; }

/* Leave a visible, close neighbor on both sides, including narrow phones. */
.news-page .featured-track { gap:0; padding-inline:max(54px,calc((100% - 720px)/2)); }
.news-page .featured-track--interactive { overflow:hidden;scroll-snap-type:none;scroll-behavior:auto;touch-action:pan-y;cursor:grab; }
.news-page .featured-track--interactive.is-dragging { cursor:grabbing;user-select:none; }
.news-page .featured-card { transform:scale(calc(.88 + var(--featured-focus)*.12));opacity:calc(.68 + var(--featured-focus)*.32); }
.news-page .featured-carousel:not([data-single-story])::before,
.news-page .featured-carousel:not([data-single-story])::after { width:28px; }
.news-page .featured-track--loading { justify-content:center; }
.news-page .featured-track--loading .featured-card:nth-child(2) { --featured-focus:1; }
@media(max-width:360px) { .news-page .featured-track { padding-inline:46px; } }
.news-page .featured-track:has(.featured-card:only-child) { padding-inline:0; }
@media(prefers-reduced-motion:reduce) { .news-page .featured-card { transform:none; } }

/* Pending rows keep the same image and reading-column edges as loaded stories. */
.news-page .news-list .sm-skeleton-news-row { padding:32px 16px;gap:24px; }
.news-page .news-list .sm-skeleton-news-row .sm-skeleton-media { height:168px;border-radius:8px; }
@media(max-width:768px) {
 .news-page .news-list .sm-skeleton-news-row { padding:16px;gap:12px; }
 .news-page .news-list .sm-skeleton-news-row .sm-skeleton-media { height:104px; }
}
.news-page .news-video-badge { position: absolute; inset: auto auto 12px 12px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; color: #fff; background: rgba(8,12,20,.76); backdrop-filter: blur(12px); font-size: 11px; line-height: 1.4; pointer-events: none; }
.news-page .news-video-badge i { font-size: 9px; }
@media (max-width: 768px) { .news-page .news-card-image .news-video-badge { inset: auto auto 6px 6px; min-height: 24px; padding: 3px 7px; gap: 5px; } }

/* Preserve the outgoing view while the article shell or saved list appears. */
html.news-detail-transition::view-transition-group(root) { animation-duration:280ms; animation-timing-function:cubic-bezier(.22,.68,0,1); }
html.news-detail-transition::view-transition-old(root) { animation:news-detail-leave 280ms cubic-bezier(.22,.68,0,1) both; }
html.news-detail-transition::view-transition-new(root) { animation:news-detail-enter 280ms cubic-bezier(.22,.68,0,1) both; }
html.news-detail-transition.news-detail-return::view-transition-old(root) { animation-name:news-detail-return-leave; }
html.news-detail-transition.news-detail-return::view-transition-new(root) { animation-name:news-detail-return-enter; }
@keyframes news-detail-leave { to { opacity:0; transform:translateY(-8px); } }
@keyframes news-detail-enter { from { opacity:0; transform:translateY(12px); } }
@keyframes news-detail-return-leave { to { opacity:0; transform:translateY(12px); } }
@keyframes news-detail-return-enter { from { opacity:0; transform:translateY(-8px); } }
@media(max-width:768px) {
    .news-page .news-summary { -webkit-line-clamp:1; line-clamp:1; }
    .news-page .news-image-views { display:none; }
}

/* Keep featured stories close to their search toolbar at every width. */
.news-page .featured-news { margin-bottom:8px; }
