.source-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 2px;
    font-size: 10px;
    font-weight: normal;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    cursor: pointer;
    vertical-align: super;
    transition: all 0.2s ease;
    user-select: none;
}

.source-tag:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a6fd6;
    transform: scale(1.1);
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.source-link:hover {
    background: rgba(102, 126, 234, 0.15);
}

.source-icon {
    font-size: 14px;
}

.source-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.source-popup.show {
    opacity: 1;
}

.source-popup-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.source-popup.show .source-popup-content {
    transform: scale(1);
}

.source-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.source-popup-title {
    font-size: 14px;
    font-weight: 500;
}

.source-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.source-popup-close:hover {
    opacity: 1;
}

.source-popup-body {
    padding: 16px;
}

.source-popup-source-name {
    font-size: 12px;
    color: #999;
    margin: 0 0 4px 0;
}

.source-popup-article-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.source-popup-date {
    font-size: 12px;
    color: #666;
    margin: 0 0 12px 0;
}

.source-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.source-popup-link:hover {
    color: #5a6fd6;
}

.dark-mode .source-popup-content {
    background: #1a1a2e;
}

.dark-mode .source-popup-article-title {
    color: #e0e0e0;
}

.dark-mode .source-popup-date {
    color: #999;
}

.dark-mode .source-popup-link {
    color: #8b9cf4;
}

.dark-mode .source-popup-link:hover {
    color: #a0b0ff;
}

.dark-mode .source-tag {
    background: rgba(102, 126, 234, 0.2);
}

.dark-mode .source-link {
    background: rgba(102, 126, 234, 0.15);
}
