/* === SOURCES BUTTON === */
.sources-wrap {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
}
.sources-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fg-faint);
    padding: 0;
    white-space: nowrap;
    transition: color 0.15s;
}
.sources-btn:hover {
    color: var(--accent);
}

/* === SOURCES MODAL === */
.sources-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.sources-modal-overlay.visible {
    opacity: 1;
}

.sources-modal {
    background: var(--bg);
    border: 1px solid var(--border);
    max-width: 520px;
    width: 92%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sources-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-faint);
    flex-shrink: 0;
}
.sources-modal-title {
    font-family: -apple-system, system-ui, "Helvetica Neue", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
}
.sources-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--fg-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.3rem 0.4rem;
    margin: -0.3rem -0.4rem -0.3rem 0;
    transition: color 0.15s;
}
.sources-modal-close:hover {
    color: var(--fg);
}

.sources-modal-body {
    overflow-y: auto;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* === SOURCE CARD === */
.source-card {
    display: flex;
    gap: 0.7rem;
    padding: 0.6rem;
    text-decoration: none;
    color: var(--fg);
    border-bottom: 1px solid var(--border-faint);
    transition: background 0.15s;
}
.source-card:last-child {
    border-bottom: none;
}
.source-card:hover {
    background: rgba(var(--fg-rgb), 0.04);
}

.source-card-img {
    width: 80px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-faint);
}
.source-card-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-faint);
    font-size: 1.2rem;
    opacity: 0.4;
}

.source-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.source-card-title {
    font-family: "PT Serif", Georgia, serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--fg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.source-card-feed {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--fg-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* === MOBILE === */
@media (max-width: 600px) {
    .sources-modal {
        width: 100%;
        max-width: none;
        max-height: 90vh;
        margin: 0 0.5rem;
    }
    .source-card-img {
        width: 64px;
        height: 44px;
    }
}
