@keyframes km-blink {
    0%   { opacity: 1; }
    50%  { opacity: 0.15; }
    100% { opacity: 1; }
}
@keyframes km-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(200,162,108,0.4); }
    50%      { box-shadow: 0 0 22px rgba(200,162,108,0.9); }
}

.km-widget {
    background: #15172e;
    border: 1px solid #986e44;
    border-radius: 6px;
    padding: 16px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 1em 0;
    line-height: 1.4;
}

.km-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid #2a2d4a;
    padding-bottom: 10px;
}

.km-live-dot {
    width: 11px;
    height: 11px;
    background: #c8a26c;
    border-radius: 50%;
    animation: km-blink 0.9s infinite, km-pulse 1.6s infinite;
    flex-shrink: 0;
}

.km-live-label {
    color: #c8a26c;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: km-blink 1.1s infinite;
}

.km-refresh {
    margin-left: auto;
    color: #8a7140;
    font-size: 11px;
}

.km-headline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #1e2040;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.km-headline:last-child {
    border-bottom: none;
}

.km-headline:hover {
    background: rgba(200,162,108,0.06);
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: 4px;
}

.km-headline-marker {
    color: #c8a26c;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
    line-height: 1;
}

.km-headline-text {
    display: block;
    color: #e2d2ad;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.km-headline:hover .km-headline-text {
    text-decoration: underline;
    color: #f0e4c8;
}

.km-category-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 4px;
    background: rgba(200,162,108,0.15);
    color: #c8a26c;
    border: 1px solid rgba(200,162,108,0.3);
}

.km-category-badge.missing {
    background: rgba(220,80,60,0.15);
    color: #e8725a;
    border-color: rgba(220,80,60,0.35);
}

.km-category-badge.positive {
    background: rgba(80,180,100,0.15);
    color: #6ecf82;
    border-color: rgba(80,180,100,0.3);
}

.km-category-badge.hatecrime {
    background: rgba(180,40,40,0.18);
    color: #f07070;
    border-color: rgba(180,40,40,0.4);
}

.km-category-badge.civil {
    background: rgba(100,140,220,0.15);
    color: #89aaee;
    border-color: rgba(100,140,220,0.3);
}

.km-headline-meta {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    font-size: 11px;
    color: #8a7140;
}

.km-verified {
    color: #e2d2ad;
    font-size: 11px;
    white-space: nowrap;
}

.km-timestamp {
    color: #6b5628;
    font-size: 11px;
}

.km-loading {
    color: #8a7140;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

.km-error {
    color: #b89a5a;
    text-align: center;
    padding: 14px;
    font-size: 12px;
    line-height: 1.6;
}

.km-error span {
    color: #6b5628;
    font-size: 11px;
}

.km-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #1e2040;
    font-size: 10px;
    color: #4a3a1f;
    text-align: right;
}
