.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: 16px;
    max-width: 780px;
    width: 100%;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #a09080;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.modal-close:hover { color: #3a3a3a; }

.modal .paper-venue { margin-bottom: 16px; }

.modal .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2418;
    line-height: 1.45;
    margin-bottom: 12px;
}

.modal .modal-authors {
    font-size: 0.9rem;
    color: #8a7a6a;
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal .modal-authors i { color: #c49a6c; margin-right: 4px; }

.modal .modal-tldr {
    background: #fdf6ec;
    border-left: 3px solid #c49a6c;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    color: #6a5a4a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal .modal-tldr strong { color: #c49a6c; }

.modal .modal-abstract {
    font-size: 0.92rem;
    color: #5a4a3a;
    line-height: 1.75;
    margin-bottom: 20px;
}

.modal .modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.modal .modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.modal .modal-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #faf8f3;
    border: 1px solid #ece4d8;
    border-radius: 8px;
    color: #5b4636;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal .modal-actions a:hover {
    background: #c49a6c;
    color: #fff;
    border-color: #c49a6c;
}

.modal .modal-actions .fav-btn {
    font-size: 1.2rem;
    margin-left: auto;
}
