/* ── Ticker strip ────────────────────────────────────────── */
.news-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 10px;
    overflow: hidden;
    height: 36px;
}

.news-ticker-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #F0B90B;
    background: rgba(240, 185, 11, 0.12);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.news-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: newsTickerScroll var(--ticker-duration, 80s) linear infinite;
    cursor: pointer;
}

.news-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes newsTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    color: #cbd5e1;
    font-size: 12.5px;
    transition: color 0.15s;
}

.ticker-item:hover { color: #f1f5f9; }

.ticker-favicon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
}

.ticker-title {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-time {
    color: #6b7280;
    font-size: 11px;
    flex-shrink: 0;
}

.ticker-sep {
    color: rgba(255, 255, 255, 0.12);
    padding: 0 6px;
    font-size: 16px;
    line-height: 1;
}

/* ── Filter bar ──────────────────────────────────────────── */
.news-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.news-filter-bar .form-control,
.news-filter-bar .form-select {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.news-filter-bar .form-control::placeholder { color: #6b7280; }

.news-filter-bar .form-control:focus,
.news-filter-bar .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-color: rgba(240, 185, 11, 0.4);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.12);
}

.news-filter-bar .form-select option {
    background: #1a2234;
    color: #e5e7eb;
}

.news-filter-search {
    flex: 1 1 180px;
    min-width: 120px;
    max-width: 260px;
}

.news-filter-source {
    flex: 0 1 150px;
    min-width: 110px;
}

.news-pills {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}

.intel-card .news-pill {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #9ca3af !important;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.intel-card .news-pill:hover { color: #e2e8f0 !important; }

.intel-card .news-pill.active {
    background: rgba(240, 185, 11, 0.16) !important;
    color: #F0B90B !important;
}

/* ── Status bar ──────────────────────────────────────────── */
.news-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 11.5px;
    margin-bottom: 14px;
}

/* ── Feed list & day groups ──────────────────────────────── */
.news-feed-list {
    /* no max-height — full page scroll */
}

.news-day-group {
    margin-bottom: 28px;
}

.news-day-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6b7280;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 10px;
}

/* ── News card ───────────────────────────────────────────── */
.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 7px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    overflow: hidden;
}

.news-card:hover {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(255, 255, 255, 0.03);
}

.news-card.expanded {
    border-color: rgba(96, 165, 250, 0.65);
    background: rgba(14, 28, 54, 0.55);
}

.news-card-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
}

.news-card-content {
    flex: 1;
    min-width: 0;
}

/* Meta row */
.news-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

.news-src-icon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    vertical-align: middle;
}

.news-src-initial {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: rgba(240, 185, 11, 0.12);
    color: #F0B90B;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-src-name {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

.news-meta-sep {
    color: rgba(255, 255, 255, 0.18);
    font-size: 12px;
}

.news-card-time {
    font-size: 11.5px;
    color: #6b7280;
}

.news-read-time {
    font-size: 11px;
    color: #6b7280;
}

.news-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
    border-radius: 3px;
    padding: 1px 5px;
}

/* Title & excerpt */
.news-card-title {
    font-family: "Inter", sans-serif;
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.42;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-family: "Inter", sans-serif;
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Thumbnail */
.news-card-right {
    flex-shrink: 0;
}

.news-card-thumb-wrap {
    width: 76px;
    height: 54px;
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.news-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-thumb-logo {
    object-fit: contain;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.news-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0;
}

/* Expanded section */
.news-card-expand {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.news-card-expand-text {
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.65;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

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

/* ── Feed footer ─────────────────────────────────────────── */
.news-feed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px;
    color: #6b7280;
    font-size: 12px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .news-card-thumb-wrap {
        width: 58px;
        height: 44px;
    }

    .news-card-title { font-size: 13px; }

    .news-filter-search { max-width: 100%; flex-basis: 100%; }
}

@media (max-width: 480px) {
    .news-card-thumb-wrap {
        width: 50px;
        height: 40px;
        border-radius: 5px;
    }

    .news-card-thumb-placeholder { font-size: 15px; }

    .news-filter-source { flex: 1 1 100%; }
}
